You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add some persistant retries instead of service unavailable error #131
make the thing shake down the provider like it owes it money and keep persisting till cancelled with esc or ctrl c
some providers are unreliable you know.
agentty already retries 503s and other temporary errors on its own: 6 tries with growing waits (0.5 s up to 45 s, about 90 s in total), longer waits for rate limits, and it honours Retry-After. Esc stops it any time.
Retrying forever by default is risky, because some errors only look temporary: a wrong model, a broken proxy, or a server that accepts the connection and fails every request. It would hammer those all night.
I'll add an opt-in setting to keep retrying temporary and rate-limit errors until you press Esc. Errors that can't fix themselves (bad key, quota, not found) will still stop right away.
Done on master (43f9806): Settings > General > "Keep retrying on errors". With it on, temporary errors and rate limits retry until it works or you press Esc, about once a minute after the first few tries. It'll be in the next release.
Activity
1ay1 commentedon Nov 16, 2026
agentty already retries 503s and other temporary errors on its own: 6 tries with growing waits (0.5 s up to 45 s, about 90 s in total), longer waits for rate limits, and it honours
Retry-After. Esc stops it any time.Retrying forever by default is risky, because some errors only look temporary: a wrong model, a broken proxy, or a server that accepts the connection and fails every request. It would hammer those all night.
I'll add an opt-in setting to keep retrying temporary and rate-limit errors until you press Esc. Errors that can't fix themselves (bad key, quota, not found) will still stop right away.
settings: keep retrying on errors (#131)
1ay1 commentedon Nov 16, 2026
Done on master (43f9806): Settings > General > "Keep retrying on errors". With it on, temporary errors and rate limits retry until it works or you press Esc, about once a minute after the first few tries. It'll be in the next release.