Repository navigation
fix(claude): fill the unset Sonnet tier with claude-sonnet-5-5 - #6874
Conversation
Claude Code 2.1.294+ resolves the `sonnet` alias to claude-sonnet-5-5, but the native tier table still pinned an unset Sonnet slot to claude-sonnet-5, so subscription launches through `ocx claude` hid Sonnet 5.5 from the picker. Refs lidge-jun#6873
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request has been marked Ready for Review. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The Sonnet default update is limited to the unset subscription tier, while explicit overrides and the 1M marker remain intact. No concrete merge-blocking issue remains. Pre-merge checks |
|
Summary
ocx claudefills an unset Sonnet tier slot fromCLAUDE_CODE_NATIVE_TIERS(src/claude/context-windows.ts). That table still saidclaude-sonnet-5, soANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5[1m]was injected and the stock Claude Code/modelpicker bound its Sonnet row to Sonnet 5, hiding Sonnet 5.5.sonnet:{default:"claude-sonnet-5-5",...}(opusclaude-opus-5-5and fableclaude-fable-5-1are unchanged). This bumps the Sonnet entry and the version note in the doc comment to match.claude-sonnet-5-5is already registered at 1M inANTHROPIC_MODEL_CONTEXT_WINDOWS, so the slot keeps its[1m]marker. An explicitly configuredtierModels.sonnetstill wins, includingclaude-sonnet-5.claude-sonnet-5-5[1m]. The cases about another provider's row, a cappedanthropicrow and amodelMapentry now targetclaude-sonnet-5-5, the id the default slot actually uses, so they keep testing the same behavior.Closes #6873
Verification
bun test tests/claude-integration/claude-context-windows.test.ts tests/claude-integration/claude-management-api.test.ts: 80 pass, 0 fail.bun test tests/claude-integration/claude-cli.test.ts tests/server/system-env.test.ts tests/gui/claude-manual-env.test.ts tests/claude-integration/claude-subagent-model-force.test.ts: 134 pass, 0 fail.bun run typecheck: exit 0.bun run structure:check: passed. The docs mapped tosrc/claude/(structure/runtime.md,structure/clients/claude-desktop.md) were reviewed and do not state the tier defaults, so they need no change.bun run privacy:scan: passed.bun run test(Bun 1.4.0 runner viaOCX_TEST_RUNNER_BUN, Ubuntu 26.04 on WSL2): 43926 pass, 21 fail, 152 skip. None of the 21 failures are in code this PR touches:origin/devworktree:tests/ci-workflows/assert-mergeable-review.test.ts(9,jqis not installed locally),tests/codex-integration/codex-missing-home.test.ts(3),tests/codex-integration/codex-inject-missing-config.test.ts(1) andtests/codex-integration/codex-home-wsl-local-state.test.ts(1; it asserts behavior "outside WSL" and this machine is WSL).bun test tests/lib/plugin-loader.test.ts tests/cli/cli-access-audio-live.test.tsgave 59 pass, 0 fail.devhead (04861658a), 0 commits behind.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
claude-sonnet-5-5as the default Sonnet model for subscription launches when no Sonnet model is specified. Other model defaults remain unchanged.