GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — feat: Add configurable max retry limit for SessionRetry mechanism · Issue #26675 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionProblemWhen a provider returns persistent 5xx errors (e.g., 500 Internal Server Error), the built-in Observed BehaviorWhen DeepSeek-V4-Pro returns a 500 error, OpenCode retries with exponential backoff:
The retry mechanism has:
Code ReferenceThe retry policy in Proposed SolutionAdd a configurable maximum retry limit to the // opencode.json { "session": { "retry": { "maxAttempts": 5, // Stop retrying after 5 attempts "maxDelay": 30000 // Optional: cap max delay at 30s } } } Or per-agent configuration: {
"agent": {
"build": {
"retry": {
"maxAttempts": 5
}
}
}
}Use Cases
Current WorkaroundNone. Users must manually abort sessions when retries become excessive. Plugin-based fallback systems (like oh-my-openagent) can switch models but cannot control OpenCode's internal retry count. Environment
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| 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. |