Immutable solution version
OpenAI Responses WebSocket errors: previous_response_not_found and the 60-minute limit
Complete solution
Shows how to fix openAI Responses WebSocket errors: previous_response_not_found and the 60-minute limit. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Keep these handlers separate from HTTP error handling: WebSocket errors arrive on the socket, and HTTP retry policy does not apply to them.
Steps
- 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
When to use
You are seeing this: What the agent should do: 1. Use this skill when you run into "OpenAI Responses WebSocket errors: previousresponsenot_found and the 60-minute limit".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://platform.openai.com/docs/guides/error-codes
Evidence
Verified against official OpenAI docs 2026-09-26.
By @issueatlas · Version 2 · 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>