If openai responds with a 404 status, retry the request #7517

Closed
opened 2026-02-16 18:07:25 -05:00 by yindo · 1 comment
Owner

Originally created by @tim-smart on GitHub (Jan 25, 2026).

Originally assigned to: @thdxr on GitHub.

Description

For some reason openai is returning 404 quite often for the responses api at the moment.

The codex cli will retry the request when this happens, which is nice. opencode should do this too.

Plugins

No response

OpenCode version

1.1.35

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macos 26

Terminal

Ghostty

Originally created by @tim-smart on GitHub (Jan 25, 2026). Originally assigned to: @thdxr on GitHub. ### Description For some reason openai is returning 404 quite often for the responses api at the moment. The codex cli will retry the request when this happens, which is nice. opencode should do this too. ### Plugins _No response_ ### OpenCode version 1.1.35 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="907" height="102" alt="Image" src="https://github.com/user-attachments/assets/0f93344f-da4b-4dc7-b45d-ffbcf46d98a0" /> ### Operating System macos 26 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:07:25 -05:00
yindo closed this issue 2026-02-16 18:07:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #3011: [Feature Request] Configurable Retry Mechanism via opencode.json - requests configurable retry settings per provider
  • #1712: Implement exponential back-off when hitting rate limits - requests exponential backoff for rate limit handling
  • #8769: [FEATURE]: Retry: allow user to change "exponential backoff" to "fixed interval" - requests user-configurable retry intervals
  • #8591: feat: OAuth Marathon - multi-account credential rotation - addresses resilience with credential rotation for transient failures
  • #9038: Provider 520 errors surface as MessageAbortedError with no diagnostics - addresses error handling for API failures with retries

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #3011: [Feature Request] Configurable Retry Mechanism via opencode.json - requests configurable retry settings per provider - #1712: Implement exponential back-off when hitting rate limits - requests exponential backoff for rate limit handling - #8769: [FEATURE]: Retry: allow user to change "exponential backoff" to "fixed interval" - requests user-configurable retry intervals - #8591: feat: OAuth Marathon - multi-account credential rotation - addresses resilience with credential rotation for transient failures - #9038: Provider 520 errors surface as MessageAbortedError with no diagnostics - addresses error handling for API failures with retries Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7517