feat(tui): add session model picker#49
Open
qkunio wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
1. What does this PR do?
This PR adds a
/modelcommand to the TUI so users can switch the active model for the current session.Typing
/modelopens an in-terminal picker where users can move with the arrow keys and press Enter to switch models. Typing/model <name>still switches directly by configured model name.The selected model is only applied to the current TUI session. It does not update
config.yaml, and it does not clear the existing conversation history.2. Why?
Helixent already supports multiple configured models, but changing models during interactive use requires leaving the current TUI flow and changing the default model externally.
For coding sessions, it is useful to move between models without losing context. A session-scoped picker keeps the behavior lightweight and avoids surprising persistence changes.
3. How is this tested?
Ran:
Result:
4. Checklist
/modelopens a TUI model picker./model <name>switches directly by configured model name.bun run check.