Skip to content

fix: remove /provider alias, use /model as canonical command#9

Merged
yanmxa merged 3 commits into
genai-io:mainfrom
zhujian7:fix/add-provider-slash-command
May 15, 2026
Merged

fix: remove /provider alias, use /model as canonical command#9
yanmxa merged 3 commits into
genai-io:mainfrom
zhujian7:fix/add-provider-slash-command

Conversation

@zhujian7
Copy link
Copy Markdown
Contributor

@zhujian7 zhujian7 commented May 14, 2026

Summary

  • Remove /provider as an alias for /model slash command
  • Update all "Use /provider to connect" messages to "/model"
  • /model is now the single canonical command for managing provider connections

Related issue(s)

N/A


🤖 Generated with Claude Code

The app displays "No provider connected. Use /provider to connect."
but /provider was not a registered command, causing "Unknown command"
errors. Register /provider as an alias that routes to the same
handler as /model.

Assisted by Claude

Signed-off-by: zhujian <jiazhu@redhat.com>
@zhujian7
Copy link
Copy Markdown
Contributor Author

/cc @yanmxa

@yanmxa
Copy link
Copy Markdown
Member

yanmxa commented May 14, 2026

image

@yanmxa
Copy link
Copy Markdown
Member

yanmxa commented May 14, 2026

Hi @zhujian7, thanks for the fix! 🙏

Quick context: since provider config is tightly coupled to the model (each model implies its provider + connection setup), we previously deprecated /provider and consolidated everything under /model to keep the slash command surface small and the mental model consistent — pick a model, provider follows.

That said, the message at internal/app/input/slash_command.go:629 ("Use /provider to connect.") is a real bug — it points at a command that no longer exists. The preferred fix is updating that prompt (and any other stale /provider references) to /model, rather than re-adding the alias.

Would you be up for repurposing the PR that way? Thanks again! 🙌

@zhujian7
Copy link
Copy Markdown
Contributor Author

@yanmxa PTAL

@zhujian7 zhujian7 changed the title 🐛 fix: add /provider as alias for /model command fix: remove /provider alias, use /model as canonical command May 15, 2026
Two spots were missed when removing the /provider alias:
- cmd/gen/main.go --help output still listed /provider
- internal/app/run.go error path still pointed users at /provider

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@yanmxa yanmxa merged commit a015860 into genai-io:main May 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants