GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): retry provider failures for about 84s with 10s gap cap by rekram1-node · Pull Request #49441 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 17, 2026

Copy link
Copy Markdown
Member

Summary

  • raise the session retry allowance from 4 to 10 retries (11 attempts)
  • cap each backoff gap at 10s via Schedule.min with spaced("10 seconds"); the exponential base stays 2s and jitter stays ±20%
  • rewrite the runner tests that encoded the old count to derive their expectations from one RETRY_GAPS constant

Schedule

No retry-after header, every attempt failing:

Retry Gap Jittered Cumulative
1 2s 1.6–2.4s 2s
2 4s 3.2–4.8s 6s
3 8s 6.4–9.6s 14s
4–10 10s each 8–12s 24 … 84s

Total wait 84s nominal (67–101s with jitter), previously 30s with a 16s longest gap. retry-after handling is unchanged: the gap is max(computed, retryAfter) with the existing 15 minute ceiling, so a provider can still stretch a single gap past 10s when it asks to.

Verification

  • packages/core: session-runner 210 pass; full suite passes except the pre-existing local shell/env failures that also fail on v2
  • bun run check

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
fix(core): retry provider failures for about 84s with 10s gap cap
800314c
@rekram1-node
rekram1-node merged commit 8520617 into v2 Sep 17, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the retry-budget branch September 17, 2026 01:59
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
@rekram1-node
fix(core): retry provider failures for about 84s with 10s gap cap (an…
ab4b457
…omalyco#49441)
@opencode-agent opencode-agent Bot mentioned this pull request Sep 28, 2026
[Bug]: Session processor retries indefinitely with unbounded exponential backoff — no max retries or circuit breaker #17648
Closed
This was referenced Oct 1, 2026
fix(session): SessionRetry.policy() retries forever with no max attempt count #21960
Closed
Sessions fail on transient network errors instead of retrying #30611
Closed
@NerdyShawn NerdyShawn mentioned this pull request Nov 26, 2026
v2.4.1: opencode-go ECONNRESET before first token ends turns with zero retry attempts (provider.transport) #66681
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.