You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex resume fails for specific sessions with "stream disconnected before completion", while new sessions work normally #8256
When using codex resume to continue certain existing sessions, the session fails almost immediately with errors like:
Conversation interrupted - tell the model what to do differently.
stream disconnected before completion: Transport error: error decoding response body
However, starting a brand new session with codex or /new works reliably with the same model, network, proxy, and authentication.
Key observations:
Only specific existing sessions are affected.
New sessions created with the same Codex version and model work normally.
The failure appears during session resume / history replay, not during normal request handling.
The same environment can successfully make API calls to https://api.openai.com through the configured proxy (verified with curl).
Killing and restarting local SSH tunnels does not change the behavior.
Creating a new session and manually copying the relevant context from the old session works as a workaround.
This suggests a bug related to session resume, history replay, or context reconstruction for certain sessions, rather than a networking or authentication issue.
codex resume should reliably restore and continue an existing session, or gracefully fall back to a summarized context if the full history cannot be replayed.
At minimum, resuming a session should not fail due to corrupted or partial history data.
Additional information
The problem is not resolved by restarting the CLI, SSH session, or proxy.
The problem does not occur for newly created sessions.
The issue appears consistent with a session-level bug rather than an account- or network-level issue.
Workaround: start a new session and manually paste relevant context from the old session.
If helpful, I can provide affected session IDs or logs with sensitive information redacted.
Do you use multiple accounts (e.g. switch between ChatGPT login and an API Key) or switch between the standard OpenAI provider & models and custom providers & models? Have you been able to discern any other pattern about the sessions that are failing to resume?
Activity
github-actions commentedon Dec 18, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Dec 18, 2025
Thanks for reporting.
Do you use multiple accounts (e.g. switch between ChatGPT login and an API Key) or switch between the standard OpenAI provider & models and custom providers & models? Have you been able to discern any other pattern about the sessions that are failing to resume?
etraut-openai commentedon Mar 29, 2026
This bug report hasn't received any upvotes or additional posts in three months. Closing.