From 01320c040056f21caaa01c1e302b49730f0908e6 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 13 Feb 2026 15:04:20 -0600 Subject: [PATCH] fix: Store model aliases instead of hardcoded model IDs The /model command was mapping aliases (sonnet, opus, haiku) to specific model IDs (claude-sonnet-4-5, etc) and saving those to config. This prevented automatic adoption of newer model versions. Claude CLI already resolves aliases to the latest version, so just store the alias directly. Co-Authored-By: Claude Opus 4.6 --- claude_coordinator/commands.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/claude_coordinator/commands.py b/claude_coordinator/commands.py index 2346593..4f5bd58 100644 --- a/claude_coordinator/commands.py +++ b/claude_coordinator/commands.py @@ -262,24 +262,11 @@ class ClaudeCommands(commands.Cog): ephemeral=True ) return - - # Map model names to Claude CLI model identifiers - model_mapping = { - "sonnet": "claude-sonnet-4-5", - "opus": "claude-opus-4-6", - "haiku": "claude-3-5-haiku" - } - - if model_name not in model_mapping: - await interaction.response.send_message( - f"❌ Invalid model: {model_name}. Use: sonnet, opus, or haiku", - ephemeral=True - ) - return - + # Update project config with new model + # Store the alias (sonnet/opus/haiku) - Claude CLI resolves to latest version old_model = project.model - project.model = model_mapping[model_name] + project.model = model_name # Save configuration self.config.save()