Skip to content

fix(cli): only prompt for API keys the active config references#3945

Merged
esengine merged 1 commit into
main-v2from
fix/prompt-referenced-keys
Jun 11, 2026
Merged

fix(cli): only prompt for API keys the active config references#3945
esengine merged 1 commit into
main-v2from
fix/prompt-referenced-keys

Conversation

@esengine

Copy link
Copy Markdown
Owner

A fresh DeepSeek-only install prompted for MIMO_API_KEY on every launch, because promptMissingKeys walked all preset providers (config.Default() ships deepseek-flash/pro + mimo-pro/flash) instead of the ones the session can actually use. Users assumed they'd installed the wrong tool (#3939, discussion #3920).

providersWithMissingKeys now restricts the prompt to providers referenced by default_model, [agent].planner_model, and the subagent model settings:

  • DeepSeek-only user → asked once for DEEPSEEK_API_KEY, never for Mimo.
  • Set planner_model = "mimo-pro"MIMO_API_KEY is prompted, as before.
  • Setup's explicit provider selection (configureKeys over the user's picks) is unchanged, and the chat banner still warns when the active model's key is missing.

Tests cover both directions (unreferenced preset silent, referenced planner prompted).

Closes #3939

promptMissingKeys walked every preset provider, so a fresh DeepSeek-only
install asked for MIMO_API_KEY on each launch — confusing enough that
users assumed they had installed the wrong tool (#3939).

Restrict the prompt to providers named by default_model, planner_model,
and the subagent model settings. Merely-available presets stay silent;
the chat banner still warns when a user switches to a model whose key is
missing, and setup's explicit provider selection is unchanged.

Closes #3939
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 04:28
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development tui Terminal UI / CLI (internal/cli, internal/control) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 11, 2026
@esengine esengine merged commit dc6a1e3 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the fix/prompt-referenced-keys branch June 11, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tui Terminal UI / CLI (internal/cli, internal/control)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First run prompts for MIMO_API_KEY even when only DeepSeek is used

1 participant