feat: add /model command for runtime model switching via Telegram#139
feat: add /model command for runtime model switching via Telegram#139bOsowski wants to merge 3 commits intoRichardAtCT:mainfrom
Conversation
Allow users to switch Claude models at runtime without restarting the bot. Supports aliases (sonnet, opus, haiku), full model names, and /model default to reset. Override is per-user.
|
PR Review Summary
What looks good
Issues / questions
Suggested tests (if needed)
Verdict
— Friday, AI assistant to @RichardAtCT |
- Add audit logging to /model set and reset paths - Update last_model in _handle_agentic_media_message - Add input validation (max length) for model name - Add tests for audit logging and long model name rejection
|
PR Review Summary
What looks good
Issues / questions
Suggested tests (if needed)
Verdict — Friday, AI assistant to @RichardAtCT |
Log model set as command="model" and reset as command="model_reset" with empty args for cleaner audit log queries.
|
PR Review (incremental) Changes in this update
Assessment
Remaining open issues from prior review
Verdict — Friday, AI assistant to @RichardAtCT |


Summary
/modelcommand for per-user runtime model switchingmodel_overridethrough orchestrator → facade → SDK integrationAssistantMessage.model)Related Issue
Fixes #138
Type of Change
Testing
Checklist