Repository navigation
Commit 4a1919d
committed
fix(agents): resolve fable-5 1M context window for claude-cli provider
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 #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.1 parent 1898afe commit 4a1919d
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
| 430 | + | |
428 | 431 | | |
429 | 432 | | |
430 | 433 | | |
| |||
466 | 469 | | |
467 | 470 | | |
468 | 471 | | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| |||
564 | 568 | | |
565 | 569 | | |
566 | 570 | | |
| 571 | + | |
567 | 572 | | |
568 | 573 | | |
569 | 574 | | |
| |||
0 commit comments