[PR #14659] cmd/config: register verbose flag in LaunchCmd #61468

Open
opened 2026-04-29 16:33:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14659
Author: @majiayu000
Created: 3/6/2026
Status: 🔄 Open

Base: mainHead: fix/launch-verbose-flag


📝 Commits (1)

  • d2f5708 cmd/config: register verbose flag in LaunchCmd

📊 Changes

2 files changed (+6 additions, -0 deletions)

View changed files

📝 cmd/config/integrations.go (+1 -0)
📝 cmd/config/integrations_test.go (+5 -0)

📄 Description

Summary

  • Register the verbose flag on LaunchCmd so that the interactive chat flow (which reads and sets this flag) works correctly when launched via ollama launch

Problem

Running a model through ollama launch triggers: Error running model: flag accessed but not defined: verbose. The interactive chat code (generateInteractive / chat) accesses cmd.Flags().GetBool("verbose"), but LaunchCmd never registered that flag.

Test plan

  • Added verbose flag existence check to TestLaunchCmd/flags_exist
  • All existing cmd/config tests pass

Fixes #14654


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14659 **Author:** [@majiayu000](https://github.com/majiayu000) **Created:** 3/6/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/launch-verbose-flag` --- ### 📝 Commits (1) - [`d2f5708`](https://github.com/ollama/ollama/commit/d2f5708c80a73a156f481db98201f1504bea18c8) cmd/config: register verbose flag in LaunchCmd ### 📊 Changes **2 files changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/config/integrations.go` (+1 -0) 📝 `cmd/config/integrations_test.go` (+5 -0) </details> ### 📄 Description ## Summary - Register the `verbose` flag on `LaunchCmd` so that the interactive chat flow (which reads and sets this flag) works correctly when launched via `ollama launch` ## Problem Running a model through `ollama launch` triggers: `Error running model: flag accessed but not defined: verbose`. The interactive chat code (`generateInteractive` / `chat`) accesses `cmd.Flags().GetBool("verbose")`, but `LaunchCmd` never registered that flag. ## Test plan - Added `verbose` flag existence check to `TestLaunchCmd/flags_exist` - All existing `cmd/config` tests pass Fixes #14654 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:33:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#61468