Skip to content

fix(cli): set provider and model atomically#2885

Merged
tusharmath merged 10 commits intomainfrom
model-atomicity
Apr 8, 2026
Merged

fix(cli): set provider and model atomically#2885
tusharmath merged 10 commits intomainfrom
model-atomicity

Conversation

@tusharmath
Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 8, 2026
@tusharmath tusharmath changed the title feat(cli,ui): set provider and model atomically via model fix(cli): set provider and model atomically Apr 8, 2026
self.on_model_selection(None).await?;
}
SlashCommand::Provider => {
self.on_provider_selection().await?;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provider selection can be dropped and aliased to login.

@github-actions github-actions bot added the type: fix Iterations on existing features or infrastructure. label Apr 8, 2026
"/help" => Ok(SlashCommand::Help),
"/model" => Ok(SlashCommand::Model),
"/provider" => Ok(SlashCommand::Provider),
"/provider" | "/login" => Ok(SlashCommand::Login),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The /provider command is now mapped to SlashCommand::Login, but this is incorrect. The Provider slash command variant was removed (lines 398-401), but /provider should either:

  1. Be removed entirely as an available command, or
  2. Map to SlashCommand::Model (since provider selection is now part of model selection)

Mapping it to login will confuse users who type /provider expecting to switch providers but instead get the login flow.

// Remove this line:
"/provider" | "/login" => Ok(SlashCommand::Login),

// Should be:
"/login" => Ok(SlashCommand::Login),
Suggested change
"/provider" | "/login" => Ok(SlashCommand::Login),
"/login" => Ok(SlashCommand::Login),

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@tusharmath tusharmath merged commit 6a0f7f7 into main Apr 8, 2026
10 checks passed
@tusharmath tusharmath deleted the model-atomicity branch April 8, 2026 10:58
@tusharmath tusharmath removed the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants