Compaction error
Resolved 💬 4 comments Opened Mar 17, 2026 by tkp666 Closed Jun 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.115.0
What subscription do you have?
every time the auto-compact run, the codex report the error, every time!
Which model were you using?
gpt-5.4
What platform is your computer?
Ubuntu
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)
What steps can reproduce the bug?
Uploaded thread: 019cfb14-d697-7f82-b5ec-7185da2d58d8
What is the expected behavior?
_No response_
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
same here after the latest update.
here is my thread id:
019d2006-08a1-73d3-885b-c4e27fe89477not every time though. tried 3 times on one thread — no luck. forked it to the new one, and compaction went through
same here after the latest update.
here is my thread id: 019d41ce-f40a-7920-b9fb-869e8185bde7
codex-cli 0.116.0
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
Plus gpt-5.4 medium
Thanks for reporting this problem. Until recently, Codex used a separate endpoint and server-side logic for compaction. We recently switched to a more robust approach where the compaction logic is moved locally using the same endpoint as normal turns. This eliminates "remote compaction" errors and increases the stability and reliability of compaction operations. If you see further problems with compaction, please use
/feedbackand open a new bug report.