Repository navigation
Conversation
…aude 5 on claude-cli The claude-cli backend shells out to Claude Code itself, which honors --effort for mandatory-adaptive Claude 5 models (verified on Claude Code 2.1.202 with claude-fable-5: low/medium/high/xhigh/max all accepted and validated). The off-only thinking profile guards "Claude CLI routes unsupported by Claude Code", which cannot apply to Claude Code itself -- and the same resolver already treats claude-cli as native via includeNativeMax. Exempt CLAUDE_CLI_BACKEND_ID from the off-lock in both the runtime resolveThinkingProfile hook and the lightweight provider-policy path, and update tests to expect the full ladder on claude-cli. Other providers (Bedrock, Vertex, OpenRouter, ...) keep the off-lock. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed July 8, 2026, 10:54 PM ET / 02:54 UTC. Summary PR surface: Source -6, Tests +30. Total +24 across 4 files. Reproducibility: yes. Current-main source inspection shows both the runtime hook and lightweight provider-policy hook return the off-only profile for Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Keep the provider-owned fix in both thinking-policy surfaces, preserve the off-lock for non-Claude-Code routes, and land only after maintainers accept the default shift and coordinate with the related Claude CLI catalog work. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source inspection shows both the runtime hook and lightweight provider-policy hook return the off-only profile for Is this the best way to solve the issue? Yes, this is the best-shaped code fix because it updates both provider-owned policy surfaces that feed runtime and lightweight session policy. Updating only the CLI argv mapper or only one policy hook would leave UI/default validation drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 30b3a7cdeda9. Label changesLabel justifications:
Evidence reviewedPR surface: Source -6, Tests +30. Total +24 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles) |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing: upstream already resolved the Fable 5 case.
The only remaining delta is unlocking Mythos 5 as well, which I could not verify empirically (invite-gated), so I would rather not push it. Thanks! |
Related: #101453
What Problem This Solves
Fixes an issue where users running Claude Fable 5 or Claude Mythos 5 through the
claude-clibackend would only seeoffin the thinking-level menu (/think), with nolow/medium/high/xhigh/maxselectable — while the same models on the nativeanthropicprovider expose the full effort ladder. Effort control was silently unavailable for subscription (Claude Code CLI) users on these models.Why This Change Was Made
The off-only profile (
CLAUDE_CLI_OFF_THINKING_PROFILE) is an opt-out for "Claude CLI routes unsupported by Claude Code" — but theclaude-clibackend is Claude Code, which honors--effortfor mandatory-adaptive Claude 5 models, and the backend already maps every thinking level onto--effort(mapClaudeCliThinkingLevelToEffort). This PR exemptsCLAUDE_CLI_BACKEND_IDfrom the off-lock in the two places that resolve thinking profiles (the runtimeresolveThinkingProfilehook and the lightweight provider-policy path), mirroring howincludeNativeMaxin the same resolver already treatsclaude-clias native-capable. Non-goal: all other providers (Bedrock, Vertex, OpenRouter, …) keep the off-lock unchanged.User Impact
Users on the
claude-clibackend can now select every effort level for Fable 5 and Mythos 5 (defaulthigh), matching the native Anthropic API experience. No configuration changes required.Evidence
Claude Code CLI
2.1.202honors--effortforclaude-fable-5at every level (subscription OAuth):So the off-lock's compatibility premise no longer holds for the CLI route. (Mythos 5 was not directly testable — invite-gated — but it rides the identical CLI
--effortmechanism.)Local validation on this branch:
vitest run extensions/anthropic/provider-policy-api.test.ts extensions/anthropic/index.test.ts— 49/49 passed (updated expectations included)oxfmt --checkandoxlintclean on all touched files🤖 Generated with Claude Code