feat: implement interactive model picker for CLI chat#58
Merged
cidrblock merged 4 commits intoJun 22, 2026
Merged
Conversation
- Updated the CLI chat command to allow model selection via an interactive picker when the --model option is omitted. - Added `selectModel` function to manage model selection and daemon state. - Introduced `promptModelPicker` for displaying available models and handling user input. - Created tests for model selection and input parsing to ensure functionality and error handling. - Updated documentation to reflect changes in command usage.
- Changed the mock implementation of DaemonState in select-model tests to use a function instead of an object for better clarity and consistency. - Ensured that the listModels method returns a resolved promise with an empty array or predefined models as needed for various test cases.
- Updated the `selectModel` function to return both the selected model and the associated DaemonState, allowing for reuse without restarting the daemon. - Modified the CLI chat command to accept the new state parameter from the model picker. - Adjusted tests to verify that the model and state are correctly returned and utilized.
cidrblock
approved these changes
Jun 22, 2026
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.
selectModelfunction to manage model selection and daemon state.promptModelPickerfor displaying available models and handling user input.Ref : https://redhat.atlassian.net/browse/AAP-79615