codex - 💡(How to fix) Fix The context window is too small --- Auto Compact on Terminal is completely broken [5 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20272Fetched 2026-04-30 06:30:50
View on GitHub
Comments
5
Participants
3
Timeline
15
Reactions
0
Author
Timeline (top)
commented ×5labeled ×4mentioned ×2subscribed ×2

Error Message

Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

OpenAI Codex (v0.125.0)

What subscription do you have?

Pro ($100)

Which model were you using?

gpt-5.5

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact) ■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.

• Feedback uploaded. Please open an issue using the following URL:

https://github.com/openai/codex/issues/new?template=3-cli.yml&steps=Uploaded%20thread:%20019d7c15-4ba8-7231-bc1c-7513d08cfdee

Or mention your thread ID 019d7c15-4ba8-7231-bc1c-7513d08cfdee in an existing issue.

■ Error running remote compact task: stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses/compact)

What steps can reproduce the bug?

Uploaded thread: 019d7c15-4ba8-7231-bc1c-7513d08cfdee

What is the expected behavior?

Auto compact is completely broken. Claude had this issue months ago and Codex is way behind on this fix. Model is good but if im unable to use it then I will move back to Claude.

Additional information

No response

extent analysis

TL;DR

The issue is likely related to a networking or server-side problem causing the stream to disconnect before completion when sending a request to the Codex API.

Guidance

  • Verify the stability of your internet connection to ensure it's not causing the disconnections.
  • Check if the issue persists across different terminal emulators or platforms to isolate the problem.
  • Consider reporting the issue using the provided GitHub link or thread ID, as the problem may be related to a known bug that needs to be addressed by the Codex team.
  • Look into any existing issues or discussions related to the "auto compact" feature and its known problems, as mentioned in the context of Claude having a similar issue.

Example

No specific code example can be provided due to the nature of the issue, which seems to be more related to the service or network rather than a coding error.

Notes

The exact cause of the disconnection is not specified, and without more details about the environment or the specific steps leading up to the error, it's challenging to provide a precise solution. The issue might be transient or related to a temporary server-side problem.

Recommendation

Apply workaround: Given the information, the best course of action seems to be reporting the issue as suggested, using the provided link or thread ID, to bring it to the attention of the Codex development team, as they may have a fix or workaround for this known issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix The context window is too small --- Auto Compact on Terminal is completely broken [5 comments, 3 participants]