Repository navigation
fix(anthropic): Fable 5 skips context1m setup when enabled - #100572
vincentkoc merged 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 4:42 AM ET / 08:42 UTC. Summary PR surface: Source +4, Tests +11. Total +15 across 2 files. Reproducibility: yes. at source level. Current main and Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the helper-based wrapper predicate fix with its focused regression coverage after the normal exact-head CI and maintainer merge gates pass. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main and Is this the best way to solve the issue? Yes. Reusing the shared Fable 5 identity helper is the narrowest maintainable fix because it keeps the existing lookalike boundary instead of adding another provider-local prefix rule. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 489af13dbd9e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +4, Tests +11. Total +15 across 2 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 (2 earlier review cycles)
|
|
@clawsweeper re-review I added redacted real wrapper/provider-path proof to the official Evidence section: |
|
🦞🧹 I asked ClawSweeper to review this item again. |
3b8df4d to
991845e
Compare
991845e to
b5372cc
Compare
|
Merged via squash.
|
The resolveAnthropicFixedContextWindow fable-5 guard only matched anthropic and anthropic-vertex providers, leaving claude-cli unhandled. Without this, claude-cli + claude-fable-5 fell through to the GA 1M prefix check where fable-5 doesn't match, returning undefined and causing fallback to the default 200K context window. Both call paths were affected: - resolveContextTokensForModelFromCache (direct) - resolveDiscoveredAnthropicFixedContextWindow (discovery cache upgrade) Same root cause as openclaw#100572: new model added to catalog but claude-cli provider boundary was not enumerated. Fix: add provider === 'claude-cli' to the fable-5 guard, matching the pattern already used by the GA 1M guard on the next branch.
What Problem This Solves
Fixes an issue where Anthropic users selecting Claude Fable 5 with
context1menabled would not get the same stream wrapper behavior as other 1M-context Claude models, even though Fable 5 is registered with a 1,000,000-token context window.Why This Change Was Made
The Anthropic stream wrapper now treats Fable 5 as a 1M-context model by reusing the shared Fable 5 model identity helper. This keeps the wrapper predicate aligned with provider model registration while preserving the identity boundary so
claude-fable-50is not matched as Fable 5.User Impact
Claude Fable 5 now follows the expected
context1mprovider-wrapper path. Other Anthropic 1M model prefix handling is unchanged, and non-Fable lookalike model ids remain outside this Fable-specific path.Evidence
Real wrapper/provider-path proof: imported the Anthropic stream wrapper and ran it with
context1m: truebefore any network call. Fable 5 receives the provider beta wrapper headers while the lookalikeclaude-fable-50does not:Focused regression tests: