Skip to content

fix(chat): raise MAX_CONSECUTIVE_TRUNCATIONS 5 → 20#59

Merged
DIodide merged 1 commit into
stagingfrom
fix/bump-truncation-cap
Apr 29, 2026
Merged

fix(chat): raise MAX_CONSECUTIVE_TRUNCATIONS 5 → 20#59
DIodide merged 1 commit into
stagingfrom
fix/bump-truncation-cap

Conversation

@DIodide

@DIodide DIodide commented Apr 29, 2026

Copy link
Copy Markdown
Owner

Bumps the consecutive-truncation safety cap so long agentic runs that legitimately hit the token cap multiple iterations in a row aren't bailed out prematurely. Worst-case spend is still bounded (now ~20× output budget instead of ~5×), well below the existing MAX_TOOL_ITERATIONS=120 ceiling.

Truncation retries were bailing out too aggressively on long agentic
runs that legitimately hit the cap several iterations in a row. 20
gives the model more room to make progress while still bounding
worst-case spend.
@DIodide DIodide merged commit a40f92b into staging Apr 29, 2026
4 checks passed
@DIodide DIodide deleted the fix/bump-truncation-cap branch April 29, 2026 01:20
DIodide added a commit that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant