Skip to content

Intermittent OpenAI streamed server_error (sequence_number:2) with gpt-5.3-codex; retries degrade session #16214

@chindris-mihai-alexandru

Description

Description

Using OpenCode 1.2.15 with openai/gpt-5.3-codex, I intermittently get streamed JSON errors like:

{"type":"error","sequence_number":2,"error":{"type":"server_error","code":"server_error","message":"An error occurred while processing your request... [retrying in 2s attempt #2]"}}

When this happens, retries may continue but session quality degrades (manual intervention often needed).

Environment

  • OpenCode: 1.2.15
  • OS: macOS
  • Model: openai/gpt-5.3-codex
  • Config changes already applied:
    • provider.openai.options.timeout = 600000
    • compaction = { auto: true, prune: true, reserved: 15000 }

Steps to reproduce

  1. Start with debug logs enabled: opencode --log-level DEBUG --print-logs
  2. Use openai/gpt-5.3-codex
  3. Run medium/long coding prompts (tool use involved)
  4. Intermittently receive the streamed server_error envelope above

Expected

  • Robust handling/recovery for transient streamed provider errors
  • Clear surfaced diagnostics for retry classification and provider error details
  • Session should not degrade/stall after repeated transient server_error events

Actual

  • Intermittent streamed server_error
  • Retry attempts occur, but session can still degrade or require manual continue/retry

Related issues checked

I checked similar issues first:

This report is specifically about the OpenAI streamed error payload with sequence_number:2 + server_error on gpt-5.3-codex.

Notes

OpenAI status has had multiple Codex/Responses elevated-error incidents recently, so this might be a combination of upstream transient faults + client-side retry UX/resilience behavior.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions