Remote compaction and long-running tasks consistently fail across Codex Desktop/Work, VS Code, and WSL CLI
What version of the Codex App are you using (From “About Codex” dialog)?
codex-cli 0.147.0-alpha.6.6
What subscription do you have?
pro
What platform is your computer?
windows 10
What issue are you seeing?
Summary
Codex consistently fails during both manual and automatic context compaction.
The same failure also occurs during moderately long-running tasks even when the context window is only around 20–30% utilized.
This reproduces across multiple Codex surfaces:
- ChatGPT Work / Codex Desktop on Windows
- Codex VS Code extension
- Codex CLI running in WSL2
- A second computer also reproduces the same problem
This does not appear to be limited to a single installation or a context-near-limit condition.
Error
The recurring error is:
Error running remote compact task:
stream disconnected before completion:
Transport error: network error:
error decoding response body
Manual /compact and automatic compaction fail in the same way.
Important observation
The failure is not limited to sessions near the context limit.
I can reproduce similar failures during longer-running tasks when context usage is only approximately 20–30%.
Normal short interactions generally work.
Environment
Primary computer:
- Windows 10
- WSL2 Ubuntu 22.04
- ChatGPT/Codex Desktop package:
OpenAI.Codex 26.803.10989.0
Desktop-managed WSL Codex runtime:
- codex-cli 0.147.0-alpha.6.6
Standalone WSL CLI:
- codex-cli 0.147.0
Affected surfaces:
- ChatGPT Work / Codex Desktop
- VS Code Codex extension
- WSL Codex CLI
A second computer reproduces the same context-compaction failure as well.
Desktop runtime verification
The ChatGPT Desktop application launches its own WSL Codex app-server from:
/mnt/c/Users/Administrator/.codex/bin/wsl/<runtime-id>/codex
with:
codex -c features.code_mode_host=true app-server --analytics-default-enabled
The running Desktop-managed runtime reports:
codex-cli 0.147.0-alpha.6.6
Reproduction
Case 1: Manual compaction
- Open an existing Codex thread.
- Run
/compact. - Wait for remote compaction.
- It fails with:
stream disconnected before completion
Transport error: network error
error decoding response body
Case 2: Automatic compaction
- Continue using the thread until Codex triggers automatic compaction.
- Automatic compaction starts.
- The same remote compact failure occurs.
Case 3: Longer-running task with low context utilization
- Start a task with only approximately 20–30% context utilization.
- Allow Codex to perform a moderately long multi-step task.
- The task can still fail with the same stream/network decoding behavior.
This suggests that the problem may not be purely a context-window-threshold issue.
Expected behavior
- Manual
/compactshould complete successfully. - Automatic compaction should complete or retry transparently.
- Longer-running tasks should not fail merely because the response stream remains active for longer.
- A failed compaction should have a recovery/fallback path rather than leaving the thread unusable.
Additional observations
- Normal shorter Codex interactions generally work.
- The issue reproduces on more than one computer.
- Updating the standalone WSL Codex CLI to 0.147.0 did not resolve the problem.
- ChatGPT Desktop uses its own bundled/managed WSL runtime rather than the standalone CLI.
- The problem affects multiple Codex surfaces rather than one specific frontend.
Feedback ID
[PASTE /feedback ID HERE]
Approximate timestamps
[PASTE 2–3 recent failure timestamps, including timezone]
Subscription
[PASTE ACTUAL PLAN HERE]
What steps can reproduce the bug?
Summary
Codex consistently fails during both manual and automatic context compaction.
The same failure also occurs during moderately long-running tasks even when the context window is only around 20–30% utilized.
This reproduces across multiple Codex surfaces:
- ChatGPT Work / Codex Desktop on Windows
- Codex VS Code extension
- Codex CLI running in WSL2
- A second computer also reproduces the same problem
This does not appear to be limited to a single installation or a context-near-limit condition.
Error
The recurring error is:
Error running remote compact task:
stream disconnected before completion:
Transport error: network error:
error decoding response body
Manual /compact and automatic compaction fail in the same way.
Important observation
The failure is not limited to sessions near the context limit.
I can reproduce similar failures during longer-running tasks when context usage is only approximately 20–30%.
Normal short interactions generally work.
Environment
Primary computer:
- Windows 10
- WSL2 Ubuntu 22.04
- ChatGPT/Codex Desktop package:
OpenAI.Codex 26.803.10989.0
Desktop-managed WSL Codex runtime:
- codex-cli 0.147.0-alpha.6.6
Standalone WSL CLI:
- codex-cli 0.147.0
Affected surfaces:
- ChatGPT Work / Codex Desktop
- VS Code Codex extension
- WSL Codex CLI
A second computer reproduces the same context-compaction failure as well.
Desktop runtime verification
The ChatGPT Desktop application launches its own WSL Codex app-server from:
/mnt/c/Users/Administrator/.codex/bin/wsl/<runtime-id>/codex
with:
codex -c features.code_mode_host=true app-server --analytics-default-enabled
The running Desktop-managed runtime reports:
codex-cli 0.147.0-alpha.6.6
Reproduction
Case 1: Manual compaction
- Open an existing Codex thread.
- Run
/compact. - Wait for remote compaction.
- It fails with:
stream disconnected before completion
Transport error: network error
error decoding response body
Case 2: Automatic compaction
- Continue using the thread until Codex triggers automatic compaction.
- Automatic compaction starts.
- The same remote compact failure occurs.
Case 3: Longer-running task with low context utilization
- Start a task with only approximately 20–30% context utilization.
- Allow Codex to perform a moderately long multi-step task.
- The task can still fail with the same stream/network decoding behavior.
This suggests that the problem may not be purely a context-window-threshold issue.
Expected behavior
- Manual
/compactshould complete successfully. - Automatic compaction should complete or retry transparently.
- Longer-running tasks should not fail merely because the response stream remains active for longer.
- A failed compaction should have a recovery/fallback path rather than leaving the thread unusable.
Additional observations
- Normal shorter Codex interactions generally work.
- The issue reproduces on more than one computer.
- Updating the standalone WSL Codex CLI to 0.147.0 did not resolve the problem.
- ChatGPT Desktop uses its own bundled/managed WSL runtime rather than the standalone CLI.
- The problem affects multiple Codex surfaces rather than one specific frontend.
Feedback ID
[PASTE /feedback ID HERE]
Approximate timestamps
[PASTE 2–3 recent failure timestamps, including timezone]
Subscription
[PASTE ACTUAL PLAN HERE]
What is the expected behavior?
_No response_
Additional information
_No response_
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action