codex - 💡(How to fix) Fix Autocompaction fails [1 comments, 2 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#17508Fetched 2026-04-12 13:27:26
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4unlabeled ×2commented ×1

Error Message

autocompaction gets stuck at this and sends error: 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 the Codex App are you using (From “About Codex” dialog)?

Version 26.409.20454 (1462)

What subscription do you have?

pro

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

<img width="1102" height="753" alt="Image" src="https://github.com/user-attachments/assets/3dcae9c3-59f4-4ba9-a75e-9f203531f0df" />

autocompaction gets stuck at this and sends error: 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: 019d7927-56b7-7110-99a9-05daa49544de

in this thread max context is 760k, also happens at 1mm

This is not consistent. sometimes happens sometimes doesn't. sometimes if you keep prompting it you can even get it going again.

What is the expected behavior?

finish autocompaction

Additional information

Bug has been around for a while

extent analysis

TL;DR

Investigate and adjust the autocompaction process to handle large context sizes, such as 760k or 1mm, to prevent the stream from disconnecting before completion.

Guidance

  • Verify if the issue is specific to the thread with ID 019d7927-56b7-7110-99a9-05daa49544de or if it occurs with other threads having large context sizes.
  • Check the Codex App's configuration and settings to see if there are any limitations or thresholds for autocompaction, especially for large context sizes.
  • Attempt to reproduce the issue with a smaller context size to determine if the issue is indeed related to the size of the context.
  • Consider implementing a retry mechanism or adjusting the timeout settings for the autocompaction process to handle intermittent disconnections.

Notes

The issue seems to be related to the size of the context, but the exact cause is unclear. The fact that the issue is not consistent and can sometimes be resolved by prompting again suggests that it may be related to a timeout or a resource limitation.

Recommendation

Apply workaround: Adjust the autocompaction process to handle large context sizes, such as increasing the timeout or implementing a retry mechanism, as the root cause of the issue is unclear and may require further investigation.

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