Skip to content

chore: replace deprecated claude-sonnet-4-5 with claude-sonnet-5-5 - #5084

Merged
aheritier merged 1 commit into
mainfrom
replace_deprecated_sonnet_model
Dec 1, 2026
Merged

aheritier merged 1 commit into
mainfrom
replace_deprecated_sonnet_model

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

Summary

Anthropic retired claude-sonnet-4-5 (claude-sonnet-4-5-20250929) on November 30, 2026 in favor of claude-sonnet-5-5 (Claude model deprecations), and models.dev removed it from the anthropic catalog, causing models-live-check to fail.

  • Refresh pkg/modelsdev/embedded/snapshot.json and snapshot_date.txt via task update-models
  • Update all 28 affected examples/*.yaml files, agent-schema.json, Go doc comments, generic unit tests, and canonical docs/** examples from claude-sonnet-4-5 to claude-sonnet-5-5
  • Use active claude-sonnet-4-6, claude-sonnet-5, or claude-haiku-4-5 in provider tests and docs where standard /v1/messages, token-based thinking_budget, sampling (temperature/top_p), or dated-ID alias resolution is specifically under test
  • Remove the retired Anthropic_Sonnet45 VCR cassette test case from e2e/debug_title_test.go
  • Leave frozen legacy config schemas (pkg/config/v4–v15), historical CHANGELOG.md entries, and pre-4.6 version-boundary predicate tests untouched

@aheritier
aheritier requested a review from a team as a code owner December 1, 2026 10:57
Copilot AI balanced review requested due to automatic review settings December 1, 2026 10:57
rumpl
rumpl previously approved these changes Dec 1, 2026
@rumpl
rumpl enabled auto-merge December 1, 2026 10:59
@aheritier aheritier added area/config For configuration parsing, YAML, environment variables area/docs Documentation changes area/models LLM model integrations and model providers area/providers/anthropic For features/issues/fixes related to the usage of Anthropic models kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix) labels Dec 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the model-reference updates.

No open issues 🎉

What changed in this PR

Updates Docker Agent’s examples, documentation, and test fixtures to replace retired Claude Sonnet 4.5 references with active models, addressing catalog drift while preserving model-specific test behavior.

Changes:

  • Moves canonical examples and general-purpose fixtures to Sonnet 5.5.
  • Uses compatible active models for token-thinking, sampling, standard Messages, and dated-alias examples and tests.
  • Updates the embedded snapshot timestamp and removes the retired Sonnet 4.5 title-generation test and cassette.
File Description
pkg/​userconfig/​userconfig_test.go Updates default-model serialization fixtures.
pkg/​tui/​page/​chat/​background_agents_test.go Updates the sidebar model fixture.
pkg/​teamloader/​teamloader.go Updates the alias example in a comment.
pkg/​teamloader/​teamloader_test.go Updates model-loading and auxiliary-model fixtures.
pkg/​teamloader/​strict_test.go Updates strict-loading model fixtures.
pkg/​runtime/​model_switcher_test.go Updates thinking-support and token-label fixtures.
pkg/​rag/​strategy/​semantic_embeddings.go Updates the chat-model example in documentation comments.
pkg/​modelsdev/​store.go Uses Haiku in the alias-resolution comment.
pkg/​modelsdev/​store_test.go Uses Haiku for dated-alias tests.
pkg/​modelsdev/​embedded/​snapshot_date.txt Advances the embedded catalog timestamp.
pkg/​modelinfo/​thinking_levels_test.go Updates the non-OpenAI model fixture.
pkg/​modelinfo/​modelinfo_test.go Updates model-identification and family fixtures.
pkg/​model/​provider/​rulebased/​client_test.go Updates routing model fixtures.
pkg/​model/​provider/​providers/​fallback_requests_test.go Uses Sonnet 4.6 for legacy request-shape coverage.
pkg/​model/​provider/​providers/​claude5_requests_test.go Uses Sonnet 4.6 for legacy Bedrock coverage.
pkg/​model/​provider/​openai/​claude_structured_output_test.go Updates the custom-provider Claude fixture.
pkg/​model/​provider/​model_defaults_test.go Updates the Bedrock no-thinking fixture.
pkg/​model/​provider/​gateway_test.go Updates the Anthropic gateway fixture.
pkg/​model/​provider/​factory_test.go Updates the custom-provider factory fixture.
pkg/​model/​provider/​bedrock/​client_test.go Uses Sonnet 4.6 for token-thinking and sampling tests.
pkg/​model/​provider/​anthropic/​tool_deferrals_test.go Updates deferred-tool models while retaining distinct API paths.
pkg/​model/​provider/​anthropic/​thinking_binding_test.go Uses Sonnet 4.6 for token-thinking binding coverage.
pkg/​model/​provider/​anthropic/​task_budget_test.go Uses Sonnet 5 for standard-path tests.
pkg/​model/​provider/​anthropic/​recovered_content_test.go Uses Sonnet 4.6 for standard-path recovery tests.
pkg/​model/​provider/​anthropic/​features_integration_test.go Updates legacy thinking and replay fixtures.
pkg/​model/​provider/​anthropic/​fallbacks_test.go Uses Haiku for token-budget incompatibility tests.
pkg/​model/​provider/​anthropic/​client_test.go Updates the empty-message validation fixture.
pkg/​model/​provider/​anthropic/​beta_client.go Updates a structured-output documentation comment.
pkg/​model/​provider/​anthropic/​beta_client_test.go Updates context-limit fixtures.
pkg/​config/​requirements_test.go Updates provider-requirement fixtures.
pkg/​config/​model_config_clone_test.go Updates the model-cloning fixture.
pkg/​config/​model_alias.go Uses Haiku in the alias-resolution comment.
pkg/​config/​model_alias_test.go Updates alias and custom-endpoint fixtures.
pkg/​config/​latest/​validate_test.go Updates model references in validation tests.
pkg/​config/​latest/​types.go Updates the shorthand configuration comment.
pkg/​config/​latest/​capabilities_test.go Updates the gateway-bypass round-trip fixture.
pkg/​config/​flavors_test.go Updates model fixtures and flavor expectations.
pkg/​config/​config_test.go Updates gateway and credential-check fixtures.
pkg/​config/​compaction_test.go Updates compaction configuration fixtures.
pkg/​config/​auto_test.go Updates the user-default model fixture.
pkg/​codingharness/​provider_test.go Updates the Claude Code model argument expectation.
examples/​todo.yaml Updates the todo agent to Sonnet 5.5.
examples/​silvia.yaml Updates the example agent model.
examples/​shared_plan.yaml Updates coordinator and architect models.
examples/​session_context.yaml Updates the session-context agent model.
examples/​search.yaml Updates the web-search agent model.
examples/​readonly.yaml Updates read-only and editor agent models.
examples/​notion-expert.yaml Updates the Notion agent model.
examples/​monorepo_prompt_files.yaml Updates the monorepo assistant model.
examples/​moby.yaml Updates the Moby documentation agent model.
examples/​handoff.yaml Updates coordinator and summarizer models.
examples/​github-toon.yaml Updates the GitHub agent model.
examples/​force_handoff.yaml Updates both pipeline agent models.
examples/​filesystem_allow_deny.yaml Updates filesystem permission example models.
examples/​fetch_headers.yaml Updates the authenticated-fetch agent model.
examples/​fetch_escape_html.yaml Updates the legacy-encoding fetch agent model.
examples/​fetch_domain_filtering.yaml Updates domain-filtering example models.
examples/​fetch_docker.yaml Updates the web-content agent model.
examples/​fallback_models.yaml Updates active and commented fallback examples.
examples/​env_placeholders.yaml Updates the environment-placeholder agent model.
examples/​diag.yaml Updates the diagnostic agent model.
examples/​context_hooks.yaml Updates the context-hook agent model.
examples/​compose-secrets.yaml Updates the Compose secrets example model.
examples/​coding_harnesses.yaml Updates orchestrator and Claude Code models.
examples/​coding_harness_background_agents.yaml Updates the harness orchestrator model.
examples/​code_mode.yaml Updates the Code Mode agent model.
examples/​background_worktrees.yaml Updates coordinator and worker models.
examples/​background_agents.yaml Updates coordinator and code-analysis models.
examples/​42.yaml Updates the example agent model.
e2e/​testdata/​cassettes/​TestDebug_Title/​Anthropic_Sonnet45.yaml Deletes the retired model’s recorded interaction.
e2e/​debug_title_test.go Removes the Sonnet 4.5 title test case.
docs/​tools/​transfer-task/​index.md Updates the developer-agent example.
docs/​tools/​rag/​index.md Updates shared-index agent examples.
docs/​tools/​plan/​index.md Updates collaborative planning examples.
docs/​tools/​model-picker/​index.md Updates selectable models and matching instructions.
docs/​tools/​mcp/​index.md Updates the MCP developer-assistant example.
docs/​tools/​mcp-catalog/​index.md Updates the catalog-discovery agent example.
docs/​tools/​lsp/​index.md Updates language-server agent examples.
docs/​tools/​background-agents/​index.md Updates the parallel-harness orchestrator example.
docs/​STYLE.md Sets Sonnet 5.5 as the canonical example model.
docs/​providers/​orcarouter/​index.md Updates the qualified upstream model example.
docs/​providers/​opencode-zen/​index.md Replaces the Sonnet 4.5 model-table entry.
docs/​providers/​bedrock/​index.md Updates token-thinking examples and explanatory text.
docs/​providers/​anthropic/​index.md Updates token-budget and thinking-display examples.
docs/​index.md Updates introductory configuration and Python examples.
docs/​guides/​troubleshooting/​index.md Updates context-window and fallback guidance.
docs/​guides/​tips/​index.md Updates general examples and uses Haiku for alias pinning.
docs/​guides/​thinking/​index.md Updates token-thinking examples and support guidance.
docs/​guides/​headless/​index.md Updates the headless review-agent example.
docs/​guides/​go-sdk/​index.md Updates the Anthropic client example.
docs/​guides/​durable-runtime-quickstart/​index.md Updates the durable-runtime client example.
docs/​guides/​compaction/​index.md Updates compaction configuration examples.
docs/​getting-started/​set-up-a-model/​index.md Updates explicit model-selection examples.
docs/​getting-started/​quickstart/​index.md Updates starter agent configurations.
docs/​features/​sessions/​index.md Updates the primary model in title-generation guidance.
docs/​features/​remote-mcp/​index.md Updates the multi-server agent example.
docs/​features/​mcp-mode/​index.md Updates MCP-exposed agent examples.
docs/​features/​harnesses/​index.md Updates Claude Code and orchestrator examples.
docs/​features/​code-mode/​index.md Updates the documented Code Mode example.
docs/​features/​cli/​index.md Updates model flags, aliases, and sample output.
docs/​configuration/​tools/​index.md Updates tool-model and developer-assistant examples.
docs/​configuration/​structured-output/​index.md Updates the classifier model example.
docs/​configuration/​routing/​index.md Updates routing targets and sample logs.
docs/​configuration/​overview/​index.md Updates models and switches the provider budget to effort.
docs/​configuration/​models/​index.md Updates model examples and Sonnet thinking configuration.
docs/​configuration/​hooks/​index.md Updates the canonical model-ID example.
docs/​configuration/​hcl/​index.md Updates equivalent YAML, HCL, and routing examples.
docs/​configuration/​commands/​index.md Updates command-enabled agent examples.
docs/​configuration/​agents/​index.md Updates agent, fallback, and permission examples.
docs/​concepts/​multi-agent/​index.md Updates coordination and delegation examples.
docs/​concepts/​models/​index.md Updates models, removes sampling, and uses thinking effort.
docs/​concepts/​agents/​index.md Updates basic agent and fallback examples.
cmd/​root/​setup_test.go Updates the setup wizard’s Claude Code model fixture.
agent-schema.json Updates schema examples and thinking-display documentation.

Review effort: Balanced

@rumpl
rumpl added this pull request to the merge queue Dec 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 1, 2026
@aheritier aheritier added the status/needs-rebase PR has merge conflicts or is out of date with main label Dec 1, 2026
@aheritier

Copy link
Copy Markdown
Collaborator Author

👋 This PR has merge conflicts with the base branch. Please rebase or merge the latest base branch and resolve them. I've moved it to draft and added ; it'll be picked back up automatically once the conflicts are cleared.

@aheritier

Copy link
Copy Markdown
Collaborator Author

👋 This PR has merge conflicts with the base branch. Please rebase or merge the latest base branch and resolve them. I've moved it to draft and added status/needs-rebase; it'll be picked back up automatically once the conflicts are cleared.

Anthropic retired `claude-sonnet-4-5` (`claude-sonnet-4-5-20250929`) on
November 30, 2026 in favor of `claude-sonnet-5-5`, and `models.dev` has
dropped it from the `anthropic` catalog, breaking `models-live-check`.

- Refresh `pkg/modelsdev/embedded/snapshot.json` (`task update-models`)
- Replace `claude-sonnet-4-5` with `claude-sonnet-5-5` across all 28
  affected `examples/*.yaml` files, `agent-schema.json`, canonical docs,
  and generic unit tests
- Use active `claude-sonnet-4-6`, `claude-sonnet-5`, or `claude-haiku-4-5`
  in tests and docs that specifically exercise non-beta `/v1/messages`,
  token-based `thinking_budget`, sampling parameters, or dated-ID alias
  pinning
- Remove the retired `Anthropic_Sonnet45` VCR cassette case from
  `TestDebug_Title`

Signed-off-by: Arnaud Héritier <arnaud.heritier@docker.com>
@aheritier
aheritier force-pushed the replace_deprecated_sonnet_model branch from 3ee9661 to b8e7889 Compare December 1, 2026 13:54
Copilot AI balanced review requested due to automatic review settings December 1, 2026 13:54
@aheritier aheritier removed the status/needs-rebase PR has merge conflicts or is out of date with main label Dec 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the model-reference updates.

No open issues 🎉

Review effort: Balanced

@aheritier
aheritier added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 2bf1c7a Dec 1, 2026
26 of 47 checks passed
@aheritier
aheritier deleted the replace_deprecated_sonnet_model branch December 1, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config For configuration parsing, YAML, environment variables area/docs Documentation changes area/models LLM model integrations and model providers area/providers/anthropic For features/issues/fixes related to the usage of Anthropic models kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants