Repository navigation
fix(server): honor custom Claude model options - #22792
juliusmarminge wants to merge 7 commits into
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
# Conflicts: # apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
|
Note Generated by claude-opus-5-5 This can be closed: it's already fixed on The attached script applies this PR's 13 new adapter tests to current To reproduce, run
Result |
|
Closing this draft: it has sat unfinished and #16672, which it was for, is closed. |
Problem
Custom Claude model Thinking selections were saved but omitted from SDK launch settings and process identity. Reproduced on main 74541bab17 through an isolated web dev server and real Claude Code 2.1.303. Explicit effort was already preserved by 76f57f9b84.
Change
Compile SDK launch settings and query identity with the existing instance-scoped custom model catalog, preserving built-in mappings and explicit effort fallback. Fixes #16672.
Scope and approval
Fixes #16672
Triaged bug via the automated issue flow.
Evidence index and commands · 10-row behavior matrix · 223-test log. Final head b3f248adfd adds test fixtures only; its production tree exactly matches the after-runtime SHA. Additional SDK harness fixtures cover custom defaults/validation, boolean options, and prompt effort on send/steer.
Verification
Two added behavioural regressions fail on main and pass with the fix: custom Thinking Off reaches SDK settings with effort High preserved; unchanged Thinking reuses a query, and both toggle directions replace it. The implementation step passed 223 focused tests, targeted lint/formatting, and server typecheck. Final independent reviews at the current head returned MERGE from Codex GPT-6.1 Sol and Claude Opus 5.5. Proof audit pass 2 returned SUFFICIENT for all 10 matrix rows and independently reproduced 223 passing tests. The Claude reviewer also checked base production against the new tests: 11 fail on base; two deliberate controls pass.
Evidence
Real browser → isolated dev server → real Claude SDK. Custom dated Sonnet model saves effort High and Thinking Off. Before: query.open has effort high and showThinkingSummaries:true, no alwaysThinkingEnabled. After: false → true → false launches supply the selected boolean and keep effort high; all custom turns complete. The built-in Haiku control supplies alwaysThinkingEnabled:false before the fix; its upstream request returns unknown-provider.
No UI/render paths change. What else changed: custom option descriptors now supply parent launch, query identity, and prompt effort compilation; built-in mappings and existing subagent catalog behavior are retained.
Unverified: macOS, Windows, Electron shell, mobile, relay/tunnel, dynamic upstream catalog refresh; built-in Haiku upstream completion. This uses configured custom model capabilities, not the broader live catalog proposal in #16583.
Model/harness: GPT-6.1 Sol through Codex in T3 Code.