Refund iteration budget on API error for fallback chain
Cluster 77305 · agent. Data as of
Nothing open on GitHub. Fix merged in #121543. Check it covers your case.
The short answer
- Known?
- Yes. 5 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #121543. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #121543. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and PRs address a bug where API call errors incorrectly consume the subagent iteration budget, leaving the fallback chain with insufficient iterations. The proposed fix refunds the budget when a fallback activates after an API error.
Open issues0
Open PRs0
Fixes on record
-
#121543 fix(agent): truncation retries grow the output budget (clamped to model limit); tools-available continuation; refund fallback call
files:
agent/context_compressor.py,agent/conversation_loop.py,agent/turn_context_compaction.py,agent/turn_empty_response.py,agent/turn_final_response.py,agent/turn_iteration_prep.py,agent/turn_truncation.py,tests/agent/test_empty_response_fallback_refund.py,tests/agent/test_partial_stream_continuation_prompt.py,tests/agent/test_run_agent.py,tests/agent/test_truncated_tool_call_boost.py
3 PRs closed without merging
From the close comments: done elsewhere 2 · other 1
-
#77354 fix(agent): refund iteration budget when fallback activates after API failure (#77305) · done elsewhere →
3ac22a3,#77305,#121543 -
#78275 fix(agent): refund iteration budget on API failure so fallback chain gets fair chance (#77305) · done elsewhere →
#77305 -
#88867 fix(agent): roll back both iteration gates on empty-response fallback (#77305) · other →
3ac22a3,#121543,#77305
Closed issues · 1
- Closed#77305fix(delegation): failed API calls consume the subagent iteration budget, starving the fallback chain
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.40: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- agent
- Merged PRs
- #121543
- Closed issues
- 1
- Attempts
- 3 PRs closed without merging
- Fix link checked
- 24 Sep 2026