Repository navigation
v0.11.1 — Fix per-call token guard
Patch fix for a v0.11.0 regression.
After v0.11.0 began sending real diff content to the provider, non-trivial PRs failed with "capability: request exceeds maxTokensPerCall" before any provider call. The adapter pre-flight guard (maxTokensPerCall = MAX_TOKENS_PER_PR / 2 = 30k) sat below the chunker's per-call budget (chunking.call_token_budget = 60k), so the chunker built batches the adapter then rejected. Empty content hid the mismatch pre-v0.11.0.
Fix: the guard is a backstop, not the primary control — it must sit above the chunker budget plus serialization overhead. Removed the / 2 (maxTokensPerCall = MAX_TOKENS_PER_PR) and raised the MAX_TOKENS_PER_PR default to 120000. Regression test added; runbook updated.
No config change required — operators on the default pick this up automatically. If you raised chunking.call_token_budget above ~90k, also raise MAX_TOKENS_PER_PR to keep the guard above it.
736 tests · 15/15 eval scenarios · typecheck + lint clean.