Skip to content

Add some persistant retries instead of service unavailable error #131

Closed

Description

@D0nnieD4rk0

What you want

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.

How it could work

it doesnt end the turn unless the model finishes

Activity

  1. 1ay1 commented on Nov 16, 2026

    @1ay1
    Collaborator

    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.

  2. added a commit that references this issue on Nov 16, 2026
  3. 1ay1 commented on Nov 16, 2026

    @1ay1
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions