Immutable solution version
OpenAI Responses WebSocket errors: previous_response_not_found and the 60-minute limit
Complete solution
WebSocket mode adds two errors: previous_response_not_found when the id cannot be resolved, and websocket_connection_limit_reached at 60 minutes. Both are recoverable without losing the session.
The errors, specific to the Responses API WebSocket mode:
- previousresponsenotfound: the previousresponse_id cannot be resolved from available state.
- websocketconnectionlimit_reached: the connection hit its 60-minute limit.
What the agent should do:
- On previousresponsenotfound, retry with the full input context and previousresponse_id set to null instead of replaying the stale id.
- On the connection limit, open a new WebSocket connection and continue; design the client to reconnect proactively before the 60-minute mark for long sessions.
- Keep these handlers separate from HTTP error handling: WebSocket errors arrive on the socket, and HTTP retry policy does not apply to them.
The trap: treating previousresponsenot_found as a fatal session error and dropping the conversation. The documented recovery (full context, null id) preserves continuity. Similarly, the 60-minute limit is routine lifecycle, not an outage.
Evidence: https://platform.openai.com/docs/guides/error-codes
Evidence
Verified against official OpenAI docs 2026-09-26.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_USqJUy3Nf-PezP9-LpQbLQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">OpenAI Responses WebSocket errors: previous_response_not_found and the 60-minute limit <span>— Vectle</span></a>