fix: refresh stale default Anthropic model names#7
Merged
SeanWeiSean merged 1 commit intoMay 18, 2026
Merged
Conversation
Three places fall back to stale Anthropic model ids when the user hasn't supplied one. As of 2026 Anthropic ships Opus 4.7 and Sonnet 4.6, and the modern naming convention drops the date suffix (docs/reference/teamsbotconfig.md already uses claude-sonnet-4-6). - deployer/config.py: claude-opus-4-6 -> claude-opus-4-7 - deployer/windows_setup.py: claude-opus-4-6 -> claude-opus-4-7 - desktop/renderer/src/views/SetupWizard.vue: claude-sonnet-4-20250514 -> claude-sonnet-4-6 User-supplied MODEL_NAME and wizard input still take precedence; behavior unchanged for users who already configured a model.
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.
Description
Three places in the codebase hard-code stale Anthropic model ids as fallback defaults when the user hasn't supplied one. As of 2026 Anthropic ships Opus 4.7 and Sonnet 4.6, and the modern naming convention drops the date suffix (the repo's own
docs/reference/teamsbotconfig.mdalready usesclaude-sonnet-4-6, so this aligns the fallbacks with the docs).These are pure fallback defaults —
MODEL_NAMEenv var and the wizard's Model Name field still take precedence, so behavior is unchanged for anyone who has already configured a model.Related Issue
None.
Changes
deployer/config.py:75claude-opus-4-6claude-opus-4-7deployer/windows_setup.py:1556claude-opus-4-6claude-opus-4-7desktop/renderer/src/views/SetupWizard.vue:222claude-sonnet-4-20250514claude-sonnet-4-6Total diff: 3 files / +3 / -4 (one extra
-is from Prettier auto-collapsing a two-line ternary once the new string was short enough to fit on one line).Type of Change
Testing
cd desktop/renderer && npm run test) — 8 files / 139 tests, all greenDEFAULT_CONFIGload check —python3 -m py_compileclean on both.pyfiles; importedDEFAULT_CONFIGand assertedmodel_name == "claude-opus-4-7"✓claude-opus-4-6orclaude-sonnet-4-20250514cd desktop && npm run build) — not run locally (no Windows toolchain on this dev machine); CIpr-build.ymlwill gateChecklist
claude-sonnet-4-6); this PR aligns code with docs