Refine /model list to be context-aware of the active provider and profile #4283
+145
−41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
The core of this change is to make the user experience more seamless and intuitive. Currently, when a user selects a specific model_provider (e.g., openrouter) or launches a session with a --profile, the /model command continues to display the default built-in GPT-5 presets.
This creates a confusing and inelegant user experience. The UI should intelligently adapt to the user's chosen context. If I've explicitly configured my session for a specific provider, the model list should present me with relevant options for that context, rather than forcing me to navigate a list of models that are not applicable to my current session.
This PR aligns the TUI's behavior with the user's configuration, ensuring the interface is always relevant, focused, and "silky smooth."
What Changed
not changed.
Scope and Impact
Implementation Notes
Configure (standard approach)
Build
Launch
Environment
Validation
Why It Matters
Follow‑ups (optional)