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
Session retry loops forever — no max attempt cap or configurable limit #25733
SessionRetry.policy() in retry.ts retries retryable errors indefinitely with no maximum attempt count. The policy() function stops only when retryable() returns undefined (non-retryable error). Once an error is classified as retryable, the schedule retries forever.
This is the same underlying problem described in #21960, #17648, and #12234.
Steps to reproduce
Use a provider that returns persistent 429/overloaded errors (e.g., GitHub Copilot weekly limit exhausted)
Send any message
Observe the session retrying forever with exponential backoff
Expected behavior
Configurable max retry attempts (e.g., experimental.max_retries)
After max attempts exhausted, session should stop and surface the error
Backward compatible: existing behavior preserved when not configured
Suggested fix location
packages/opencode/src/config/config.ts - add experimental.max_retries to schema
packages/opencode/src/session/retry.ts - add max attempt check in policy()
Activity
github-actions commentedon May 4, 2026
This issue might be a duplicate of existing issues. Please check:
SessionRetry.policy()retries forever with no max attempt count — same root cause and fix locationIf your issue is distinct, please clarify how it differs from the above. Otherwise, consider adding your input to one of the existing threads.
github-actions commentedon Jul 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.