Skip to content

chore(models): upgrade Claude to claude-sonnet-5 - #421

Merged
gkhngyk merged 1 commit into
mainfrom
chore/claude-sonnet-5
Jul 14, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
chore/claude-sonnet-5

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Tracking's selectable Claude model moves from claude-sonnet-4-6 to claude-sonnet-5 (web/src/config/prompt-options.ts) — newly created prompts and prompt edits now track against Sonnet 5.
  • The in-product agent (web/src/lib/agent/model.ts) moves to claude-sonnet-5 as well; its stale docstring (which claimed consistency with the brief-generation flow — briefs actually run on DEFAULT_SUGGESTION_MODEL) is corrected to reference the tracking flow.
  • All label/color maps (insights, citations, prompt detail, competitors, platform-labels, tracking provider map) gain the claude-sonnet-5 entry while keeping the claude-sonnet-4-6 / claude-opus-4-6 / claude-haiku-4-5 entries so historical prompt_results rows stay correctly labeled in charts and filters.

Notes

  • Existing prompts that carry claude-sonnet-4-6 in their models array keep tracking against it — the id remains valid on the Anthropic API, so nothing breaks. They migrate to claude-sonnet-5 when the user re-edits them (the picker only offers the new id) or when a plan change triggers alignPromptsToPlanForOrg.
  • Plan gating is unaffected: only Starter sets allowedModels, and it's [] (no Claude either way).
  • Optional follow-up: a one-off backfill to rewrite claude-sonnet-4-6 → claude-sonnet-5 in existing prompts' models arrays, if we want the fleet to migrate immediately instead of lazily.

Related Issue

N/A — small model-version bump requested directly.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🧹 Chore / refactor
  • 📝 Documentation
  • 🚨 Breaking change

How to Test

  1. Create a new prompt → the Claude option shows "Claude Sonnet 5"; save and confirm prompts.models stores claude-sonnet-5.
  2. Run tracking for a prompt with the Claude model → prompt_results.model_used is claude-sonnet-5 and Insights/Citations label it "Claude".
  3. Open a brand with pre-existing claude-sonnet-4-6 results → charts/filters still label them correctly.
  4. Use the agent chat → responses come from claude-sonnet-5 (visible in Anthropic console usage).

Checklist

  • My code follows the project's style guidelines (Prettier clean)
  • I have performed a self-review of my code
  • npx tsc --noEmit passes
  • npm test passes (45/45)
  • Manually tested in the dashboard

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.
@gkhngyk
gkhngyk merged commit 088d171 into main Jul 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant