feat: add model selection and difficulty tier management#11
Conversation
- Introduced `/models` command in Telegram bot to allow users to select models for different difficulty tiers. - Implemented `openModelTiersPanel` method to facilitate direct access to model tier selection. - Created dynamic options for model family selection in settings UI, allowing users to pick models for light, medium, and hard tasks. - Enhanced task splitting logic to propagate parent difficulty to child tasks. - Added unit tests to ensure proper handling of task difficulties and model selection. - Developed commands for setting model families and tier models, ensuring persistence across sessions. - Implemented model matching logic to improve user experience when selecting models based on input queries.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46986b2ad0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| if (matches.length === 1) { | ||
| const m = matches[0]; | ||
| await this.modelManager.setPreferredFamily(m.family); |
There was a problem hiding this comment.
Write /model changes to the configuration that shadows them
When the user has set CoClaw.model.family through VS Code/Telegram settings, ModelManager.getPreferredFamily() always returns that configuration value before the global memento. This /model <family> path only updates the memento, so the command reports a successful switch while subsequent requests keep using the configured workspace/global setting instead. Persist the change to CoClaw.model.family as well, or explicitly clear that setting before relying on setPreferredFamily().
Useful? React with 👍 / 👎.
/modelscommand in Telegram bot to allow users to select models for different difficulty tiers.openModelTiersPanelmethod to facilitate direct access to model tier selection.