Skip to content

fix(api): env-tunable 529 retry budget - #350

Merged
dahai80 merged 1 commit into
mainfrom
fix/349-529-retry-budget
Nov 26, 2026
Merged

dahai80 merged 1 commit into
mainfrom
fix/349-529-retry-budget

Conversation

@dahai80

@dahai80 dahai80 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Closes #349. MAX_529_RETRIES was hardcoded at 3 while other retryable errors got DEFAULT_MAX_RETRIES=10 — headless -p workers converted short 529 cascades into hard task failures that claude code rode out. Adds FUSION_CODE_MAX_529_RETRIES (default 3, invalid/negative values fall back with a debug log). Interactive behavior unchanged; headless dispatches raise the budget. 5 new tests.

🤖 Generated with Claude Code

MAX_529_RETRIES was hardcoded at 3 while other retryable errors got
DEFAULT_MAX_RETRIES=10, so headless -p workers died on short 529
cascades that claude code rode out. Expose FUSION_CODE_MAX_529_RETRIES
(fallback: default 3, invalid/negative values fall back with a debug
log). Default behavior unchanged for interactive use.

Closes #349

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit b2716d5 into main Nov 26, 2026
1 check passed
@dahai80
dahai80 deleted the fix/349-529-retry-budget branch November 26, 2026 10:52
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.

Headless runs give up on 529 after 3 retries while claude code retries ~10 — workers die in transient capacity cascades

1 participant