Error running remote compact task: timeout waiting for child process to exit
What version of Codex CLI is running?
codex-cli 0.114.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4
What platform is your computer?
Linux 5.15.0-171-generic x86_64 unknown
What terminal emulator and version are you using (if applicable)?
XSHELL
What issue are you seeing?
• Explored
└ Read rtos_sip_log.h, rtos_sip_log.c
Search sAPI_enableDUMP\|sAPI_Debug( in sc_application.c
■ Error running remote compact task: timeout waiting for child process to exit
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
• Feedback uploaded. Please open an issue using the following URL:
Or mention your thread ID 019ce5d4-3285-7cd0-afee-e42820ed3ec7 in an existing issue.
› HI
■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.
› HI
■ Conversation interrupted - tell the model what to do differently. Something went wrong? Hit /feedback to report the issue.
› Run /review on my current changes
What steps can reproduce the bug?
Uploaded thread: 019ce5d4-3285-7cd0-afee-e42820ed3ec7
What is the expected behavior?
Response but no more until Ctrl+c
Additional information
_No response_
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
#14860
I’m also hitting this on Linux with the latest stable CLI, and it is breaking resume/continuation of long-running threads.
Environment
0.118.0@openai/codexgpt-5.4Problem
Long-running interactive sessions repeatedly fail with:
Error running remote compact task: timeout waiting for child process to exit<img width="790" height="67" alt="Image" src="https://github.com/user-attachments/assets/26fd706f-78fb-4a64-ac87-6f3442ef828f" />
This is not isolated to one repo. It has happened across unrelated projects on the same machine and can leave the affected thread effectively unusable.
What I observed locally
~/.codex/log/codex-tui.log.019d77ed-a71a-72a1-9a6f-7d2587adb2c4Representative log details
From
~/.codex/log/codex-tui.log:codex_core::compact_remote: remote compaction failed ... compact_error=timeout waiting for child process to exitOne representative instance logged:
last_api_response_total_tokens=238609all_history_items_model_visible_bytes=788672failing_compaction_request_model_visible_bytes=803365model_context_window_tokens=Some(258400)Why this looks like a Codex bug rather than local corruption
0.118.0is already the latest stable npm release here.Impact
codex resume <session-id>is not dependable once the thread is affected.Partial workaround
I lowered
model_auto_compact_token_limitin~/.codex/config.tomlso compaction happens earlier on future turns/threads. That may reduce recurrence, but it does not reliably recover already-affectedthreads.
Requested improvement
resumemore resilient for already-affected threads.I have a ready fix for the compaction failure path reported here, but
openai/codexis currentlycollaborators_onlyfor PR creation, so I cannot open the PR directly from my account.Branch:
minanagehsalalma:fix/remote-compact-timeout-recoveryCommit:
ea2504064Compare: https://github.com/openai/codex/compare/main...minanagehsalalma:fix/remote-compact-timeout-recovery?expand=1
This patch addresses both the misleading timeout surfaced in this issue and the large-session remote compaction timeout path tracked in #14860.
What the patch does:
CodexErr::RequestTimeoutValidation I ran locally:
compact_remote: 25 passed, 1 ignoredcompact_resume_fork: 4 passedrequest_compression: 4 passedPrebuilt binary handoff:
Credit:
Routing note:
If a collaborator is willing, please open the PR from the compare link above so it can be reviewed and linked back to these issues.
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.