Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(models): default Claude Sonnet 5.5 to its shipped medium effort #14193

Closedzachweyland(GitHub profile, opens in a new tab)wants to merge 10 commits intomain fromrefs/pull/14193/headopened View on GitHub

Claude Sonnet 5.5 inherits Sonnet 5's High effort default, so T3 explicitly requests more effort than Claude Code's shipped Medium default. Give Sonnet 5.5 its own capability profile, preserving explicit choices, Ultrathink, and the fixed 1M context window. Existing threads without an explicit effort use Medium on their next turn.

Maintainer takeover of #14193, preserving @zachweyland's implementation and commits. Merged main without rewriting contributor history. The installed Claude Code 2.1.303 Linux binary independently confirms default_effort: "medium"; the author's earlier catalog evidence remains in the conversation.

Verification at 5225a3fab0:

  • Model selection suite: 6 → 7 tests, one existing test extended. Reversing the profile mapping: 2 failed, 5 passed; restored: 7 passed.
  • ModelManifest and ClaudeModelCatalog: 18 passed (25 focused tests total).
  • Server typecheck passed (Effect suggestions only); targeted lint and formatting passed.
  • Fresh independent full-diff reviews by Claude Opus 5.5 and Codex GPT-6-Sol: one round, no code findings.
  • Live isolated web dev app: same thread, viewport and selection on actual main versus this head, without selecting an effort.

Before — main defaults to High:

Before: Sonnet 5.5 defaults to High

After — takeover head defaults to Medium:

After: Sonnet 5.5 defaults to Medium

Not verified: a real provider turn on this head, macOS, Windows, iOS, Android, or Electron desktop. The shared server catalog supplies the client default. GitHub CI and the outstanding product-default approval/change request must be checked before merging; this takeover does not waive that gate. Unmerged.

Takeover: GPT-6.1-Sol in Codex through T3 Code; tests: GPT-6-Astra; reviews: Claude Opus 5.5 and GPT-6-Sol.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs Human Approval

      Macroscope's review found this PR requires human approval — This changes the production default reasoning effort for Claude Sonnet 5.5 from High to Medium, affecting existing requests without an explicit effort selection. The surrounding model profile and explicit-option behavior remain bounded, but the default change has direct product behavior impact.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Note

      Reviews paused

      It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

      • Last reviewed commit: f9c3757b9c50768b7f4388e97b9cd2c4eeca5e40
      • Latest commit, not reviewed: e54c9c9ecba5f4a1475e406ec677bf29e5518be4

      Use the following commands to manage reviews:

      • @coderabbitai resume to resume automatic reviews.
      • @coderabbitai review to trigger a single review.

      Use the checkboxes below for quick actions:

      • ▶️ Resume reviews
      • 🔍 Trigger review

      No actionable comments were generated in the recent review.

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: eb8af6a7-1088-4e13-a661-2c3bc0984b51
      📥 Commits

      Reviewing files that changed from the base of the PR and between ff396f11a90d8e5e61dd47ccdd3489d7aaa8422b and f9c3757b9c50768b7f4388e97b9cd2c4eeca5e40.

      📒 Files selected for processing (1)
      • apps/server/src/provider/model-manifest.json

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

      Walkthrough

      The provider model manifest adds a Sonnet 5.5 profile with reasoning options and a fixed context window. The Claude Sonnet 5.5 model entry now uses this profile.

      Changes: Sonnet 5.5 profile

      Layer / File(s)Summary
      Define and assign the Sonnet 5.5 profile
      apps/server/src/provider/model-manifest.json
      The profile adds a Reasoning selector with low, medium, high, extra-high, max, and ultrathink options. It sets a fixed 1,000,000-token context window. The model entry uses the new profile, and the manifest timestamp is updated.
      Priority: Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Suggested reviewers: arturict, juliusmarminge

      Merge Risk: Minimal · up to f9c37

      Sonnet 5.5 now selects medium effort by default without an identified regression; the change is ready to merge after normal checks.

      Architecture risk: Low · up to f9c37

      The change affects 1 system.

      Changed systems: apps/server

      Architecture concerns No architecture-level concerns identified.

      Review details

      Systems and components

      • observed — apps/server (service) was modified; 1 changed file maps to changed impact.

      Before / after behavior

      • observed — Modified behavior in apps/server/src/provider/model-manifest.json: The manifest’s updatedAt value advances from 2026-10-07T19:00:00Z to 2026-10-07T21:00:00Z.
      • observed — Modified behavior in apps/server/src/provider/model-manifest.json: Adds the sonnet-5-5 profile with a Reasoning selector whose default is medium and whose options are low, medium, high, xhigh, max, and ultrathink. Ultrathink is prompt-injected and maps to null for Claude Code; the adapter sets a fixed context window of 1,000,000 tokens.
      • observed — Modified behavior in apps/server/src/provider/model-manifest.json: Claude Sonnet 5.5 now uses the sonnet-5-5 profile instead of sonnet-5.

      Important

      Pre-merge checks failed

      Please resolve all errors before merging. Addressing warnings is optional.

      Failed Failed checks: 1 error · 1 warning
      Check nameStatusExplanationResolution
      ApprovabilityErrorNeeds maintainer review under the product-default rule. In apps/server/src/provider/model-manifest.json, the new sonnet-5-5 profile marks medium as the effort default (lines 472-488), and `claud…A maintainer must review the product-default change in apps/server/src/provider/model-manifest.json before approval.
      Description checkWarningThe description explains the problem, change, verification results, limitations, and takeover context. It does not provide the required explicit maintainer approval evidence for the scope, and it stat…Add the required Scope and approval information. Link the triaged issue or approval discussion and include the explicit maintainer approval comment, or explain why this focused configuration change qualifies for the approval exemption.
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title is concise, specific, and accurately describes the main change: setting Claude Sonnet 5.5 to its shipped medium effort default.
      Full details: Approvability

      Explanation

      Needs maintainer review under the product-default rule. In apps/server/src/provider/model-manifest.json, the new sonnet-5-5 profile marks medium as the effort default (lines 472-488), and claude-sonnet-5-5 now uses that profile (lines 686-692). The existing profile selected high, so users who do not choose an effort will receive a different effort. This changes a setting default.

      Resolution

      A maintainer must review the product-default change in apps/server/src/provider/model-manifest.json before approval.

      Full details: Description check

      Explanation

      The description explains the problem, change, verification results, limitations, and takeover context. It does not provide the required explicit maintainer approval evidence for the scope, and it states that the approval gate remains outstanding.

      Resolution

      Add the required Scope and approval information. Link the triaged issue or approval discussion and include the explicit maintainer approval comment, or explain why this focused configuration change qualifies for the approval exemption.

      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. Note

      This comment is posted by Julius' dot

      Please attach the Claude Code 2.1.284 catalog excerpt or probe that establishes medium as Sonnet 5.5's default, and show the resulting T3 selection. #14152 describes high as the upstream default, while this PR and #14148 report medium. Resolving that discrepancy will establish whether this is a correction under the problem and scope rule.

    5. You asked for three things: the catalog value, what T3 actually selects, and why #14152 said high. Here they are.

      Reproduce the catalog excerpt

      The value lives in the installed binary's model table. On the version T3 gates Sonnet 5.5 behind (minVersion: 2.1.284), which is also what claude currently resolves to here:

      claude --version   # 2.1.284 (Claude Code)
      sha256sum ~/.local/share/claude/versions/2.1.284
      # 5cd90aabd83f8a15136c35aa37bb1d92b348993573316643dc3fe4e04afbf88f
      rg -ao '\{id:"claude-sonnet-5-5".{0,900}?\},\{id' ~/.local/share/claude/versions/2.1.284

      The entry (byte offset 198719101) ends with:

      context:{window:1e6,native_1m:!0,...},max_output_tokens:{default:128000,upper:128000},
      pricing:"tier_2_10",capabilities:["effort","max_effort","xhigh_effort",...],
      default_effort:"medium",image_limits:{...},advisor_rank:3

      Not a stale-build artifact. Current stable 2.1.287 (linux-x64 binary, sha256 3920489a5109cff5786a1a392c25277408ff22bc796d5edb9c16a60e5a1718f0) has the same values: claude-sonnet-5-5 = medium, claude-sonnet-5 = high, claude-opus-5-5 = medium.

      Why #14152 said high, and why that is only true of Sonnet 5

      Same binary, the resolver for a model's default effort:

      function ge(e){return Xa(Ue(e))?.default_effort??"high"}

      Models that predate the field fall through to the hard-coded "high"; models that carry the field use it. Per-entry values, verbatim from the binary (identical on 2.1.284 and current stable 2.1.287):

      modelentryeffective default
      claude-sonnet-4-6field absenthigh (fallback)
      claude-sonnet-5default_effort:"high"high
      claude-sonnet-5-5default_effort:"medium"medium
      claude-opus-5default_effort:"high"high
      claude-opus-5-5default_effort:"medium"medium

      So "Sonnet 5.5 defaults to high like Sonnet 5" was true of every Sonnet through 5, and 2.1.284 moved 5.5 down to medium to match Opus 5.5. The discrepancy is between the old model and the new one, not between sources.

      Why this matters for T3 specifically

      T3 passes the resolved picker value to the CLI. getProviderOptionCurrentValue (packages/shared/src/model.ts:81) takes the profile's isDefault, ClaudeAdapter.ts:4852 runs it through resolveClaudeCatalogEffort, and the spawn appends --effort. An explicit flag outranks the CLI's own default, so under the current sonnet-5 profile a T3 session runs 5.5 at high while every other 2.1.284 client runs it at medium. The diff adds a sonnet-5-5 profile so the flag matches the shipped default.

      Resulting T3 selection (live)

      Three throwaway threads on a running server, started without touching the effort picker, read from the startSession span attributes (claude.query.model, claude.query.effort). Each returned a completed assistant turn, so these are live selections, not aborted spawns.

      started (UTC)claude.query.modelclaude.query.effortexpected
      2026-10-01T18:28:50Zclaude-opus-5-5mediumcorrect (own opus-5-5 profile)
      2026-10-01T18:29:01Zclaude-sonnet-5-5highthe bug (reuses sonnet-5 profile)
      2026-10-01T18:29:16Zclaude-sonnet-5highcorrect (sonnet-5 profile)

      claude-sonnet-5-5 selecting high is the bug, on the exact model, through the real codepath. claude-opus-5-5 selecting medium shows the mechanism already does the right thing when a model has its own medium profile. This PR gives sonnet-5-5 the profile it was missing, the same one Opus 5.5 already has, so the flag resolves to medium through that identical chain.

    6. juliusmarminge added labelsmacroscope-review

    7. Pre-merge checks failed. Please resolve the failing checks before merging.

    8. juliusmarminge assignedjuliusmarminge

    9. Taking over this one as maintainer for batch claude-02. I will preserve the original branch, rebuild only what is needed against current main, and verify the shipped Medium default and resulting selection. No merge is planned.

    10. Note

      Written by gpt-6.1-sol on behalf of Maria

      merged current main (f40c7c6435) into the original branch at e54c9c9ecba5f4a1475e406ec677bf29e5518be4, preserving @zachweyland's commits. resolved the manifest timestamp conflict by advancing it. the diff against main remains two files: the sonnet 5.5 profile/default and existing-file regression coverage. no unrelated changes were added or original behavior dropped.

      the original catalog evidence answers the high/medium discrepancy: sonnet 5 is high, sonnet 5.5 is medium. independently confirmed again with installed claude code 2.1.310 (linux binary sha256 b73676430af12f97316a798b8371f81d640f90a58bdcb8f3ce56a835bb47df56):

      {id:"claude-sonnet-5-5", ... default_effort:"medium", ...}

      verification this run:

      • main's manifest with the regression assertions: 2 failed, 2 passed, with high returned instead of medium.
      • fixed manifest: all 14 tests passed across model selection, model manifest and claude model catalog. explicit high, older sonnet high, and ultrathink behavior remain covered.
      • vp run check:changed passed through blacksmith: format, lint, both knip checks, graphql, affected typechecks and adjacent tests. its baseline was current main; the remote snapshot was given that comparison history explicitly.
      • two independent gpt-6.1-sol reviews of this head found no code issues.
      • github checks watched to completion: no failures; macroscope correctness passed. approvability is skipped pending human approval; coderabbit reports success with review paused.

      unverified: fresh before/after ui evidence and a real claude turn. the real dev app was opened with playwright/system chrome, but the claude picker is disabled because this vm has no claude authentication. the earlier screenshots in the description were not recaptured and do not verify this head. desktop/mobile and other operating systems were not exercised. the dev server and blacksmith worker have been stopped.

      the branch is conflict-free. the existing product-default approval requirement and coderabbit's older change request remain for maintainer review; i have not dismissed them or invoked a review bot. no merge performed.

    11. Note

      🤖 Claude Opus 5.5 responding on behalf of Theo

      Closing. This PR has been open for more than 3 weeks, and main has moved a long way since then. If the change still matters, open a fresh PR from current main.

Sign in to join this conversation.