Skip to content

feat(agent-runtime): add opt-in infinite provider retry - #759

Merged
vastsa merged 1 commit into
mainfrom
feat/infinite-provider-retry
Sep 21, 2026
Merged

vastsa merged 1 commit into
mainfrom
feat/infinite-provider-retry

Conversation

@vastsa

@vastsa vastsa commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Problem

Unstable relays can stay down for hours. After the ADR 0206 ten-retry budget the turn fails and the user has to click Continue by hand (#385).

Solution

Add an opt-in Settings switch (infiniteProviderRetry, default off):

  • Settings → AI → Defaults → 「无尽重试」 / Retry until success
  • Runtime skips only the retry-count ceiling for admitted network/transient failures and 429
  • Backoff, Retry-After, abort/Stop, classification, and one-shot completions stay unchanged
  • Active retry row shows when unbounded
  • Main session, builtin subagents, and headless launch resolver all carry the policy

Testing

  • Runtime/subagent unit tests: bounded default unchanged; infinite mode claims past both budgets
  • Desktop settings write validation and AI Defaults UI presence
  • host-core settings.set boolean round-trip and invalid-value reject
  • host-runtime launch resolver forwards the flag

Notes

Addresses #385. Completes the settings surface that #476 left as a follow-up.

Expose a Settings → AI switch so retryable network and transient provider
failures can keep retrying until success. Default stays the bounded ten-retry
budget; abort, backoff, and classification are unchanged.
Copilot AI lite review requested due to automatic review settings September 21, 2026 02:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit d4d3b7e into main Sep 21, 2026
4 of 5 checks passed
@vastsa
vastsa deleted the feat/infinite-provider-retry branch September 21, 2026 11:16
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.

2 participants