Repository navigation
chore(models): upgrade Claude to claude-sonnet-5 - #421
Merged
Merged
Conversation
Tracking's selectable Claude option and the in-product agent move from claude-sonnet-4-6 to claude-sonnet-5. Label/color maps gain the new slug while keeping the old ones so historical prompt_results rows stay correctly labeled. Existing prompts that carry claude-sonnet-4-6 keep tracking against it (the id remains valid on the Anthropic API); newly created or re-edited prompts pick up claude-sonnet-5.
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.
Summary
claude-sonnet-4-6toclaude-sonnet-5(web/src/config/prompt-options.ts) — newly created prompts and prompt edits now track against Sonnet 5.web/src/lib/agent/model.ts) moves toclaude-sonnet-5as well; its stale docstring (which claimed consistency with the brief-generation flow — briefs actually run onDEFAULT_SUGGESTION_MODEL) is corrected to reference the tracking flow.claude-sonnet-5entry while keeping theclaude-sonnet-4-6/claude-opus-4-6/claude-haiku-4-5entries so historicalprompt_resultsrows stay correctly labeled in charts and filters.Notes
claude-sonnet-4-6in theirmodelsarray keep tracking against it — the id remains valid on the Anthropic API, so nothing breaks. They migrate toclaude-sonnet-5when the user re-edits them (the picker only offers the new id) or when a plan change triggersalignPromptsToPlanForOrg.allowedModels, and it's[](no Claude either way).claude-sonnet-4-6→claude-sonnet-5in existing prompts'modelsarrays, if we want the fleet to migrate immediately instead of lazily.Related Issue
N/A — small model-version bump requested directly.
Type of Change
How to Test
prompts.modelsstoresclaude-sonnet-5.prompt_results.model_usedisclaude-sonnet-5and Insights/Citations label it "Claude".claude-sonnet-4-6results → charts/filters still label them correctly.claude-sonnet-5(visible in Anthropic console usage).Checklist
npx tsc --noEmitpassesnpm testpasses (45/45)