You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Long-running threads: unbounded memory growth, auto-resume of all open conversations, rollout corruption on mid-call close, scroll anchoring broken #40934
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingperformancesessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
Long-running threads (10k–150k rollout items, kept intentionally) make Codex desktop progressively unstable: unbounded memory growth, aggressive auto-resume of every open conversation at launch, corrupted rollouts when the app closes mid-tool-call, and scroll-position jumping in long transcripts.
Environment
Windows 11 Pro (26200), Codex desktop MSIX 26.820.7780.0, bundled codex-cli 0.150.0-alpha.8.
Details
Auto-resume of all open conversations on every launch, concurrently. With two large threads open (12.7k and 146k items), the app-server codex.exe reached 7.6–15.4 GB RSS and stayed there; memory does not stabilize after resume completes. Suggest lazy resume (on focus), and bounding resident history.
Closing the app mid-tool-call corrupts the rollout. The in-flight call's output is never recorded; on next resume the session fails Custom tool call output is missing for call id: ... and retry-loops indefinitely (blocking that thread for local and remote use). We repaired manually by appending a synthesized custom_tool_call_output ("output lost, treat as aborted") — the session then resumes with parse errors: 0. Suggest the resume path synthesize exactly that instead of erroring.
Scroll-position anchoring in very long threads is broken — the transcript randomly jumps up/down during streaming in large conversations, which makes long-queue sessions hard to use and appears to amplify memory/render pressure.
Attestation warning on every turn: attestation generation request timed out timeout_seconds=0 — the zero-second timeout looks like a misconfigured flag; it fires constantly during normal turns.
Ask
Long-lived, ever-growing threads are a legitimate workflow. The app currently pays O(full thread) costs at launch, attach, and render time. Bounding resident state (pagination/windowing at every layer: resume, memory, UI) would fix the whole class.
Additional cross-host reproduction of item 2 on current builds:
Environment
Codex Desktop 26.825.5331.0 on Windows
Remote Linux task served by codex-cli 0.150.1
Long-lived legacy thread
Observed
Desktop remained on task loading / notLoaded.
The native thread API could still reconstruct recent turns, including the final interrupted turn.
The app-server repeatedly logged Custom tool call output is missing for call id: ....
The canonical rollout was structurally valid: 578,007,630 bytes, 118,700 valid JSONL records, and zero invalid records.
Its final record was one custom_tool_call with no matching custom_tool_call_output. No process still had the archived rollout open.
Archive/unarchive alone did not synthesize the missing result.
Reversible recovery
Archive only the affected task.
Make and hash-verify a byte-identical backup.
Append exactly one custom_tool_call_output for the orphaned final call with output: "aborted".
Validate 118,701/118,701 JSONL records and a 1:1 call/output balance.
Unarchive the task.
After that, native history reconstruction returned the recent turns again, direct navigation succeeded, and no new missing-output error appeared. The shared app-server was not restarted.
This supports the proposed product fix: when resuming an interrupted thread whose valid rollout ends in an unmatched tool call, Codex should durably synthesize an aborted output instead of leaving the thread permanently unloadable. The recovery should be atomic and should not require manual JSONL editing.
That is an option. I don't have a great answer, but using a different
faster drive helps, allowing for threads to load over a long period of time
helps, archiving longer sessions helps, you can split sessions. Ask codex
to fix it for you to the best of its ability depending on your setup and
requirements.
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingperformancesessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
TAKURO-FU commentedon Aug 27, 2026
Additional Windows reproduction on Codex Desktop 26.820.7780.0:
No project files or local Codex state were manually deleted as part of the fix; the user performed a normal uninstall/reinstall.
nos1609 commentedon Aug 29, 2026
Additional cross-host reproduction of item 2 on current builds:
Environment
Observed
notLoaded.Custom tool call output is missing for call id: ....custom_tool_callwith no matchingcustom_tool_call_output. No process still had the archived rollout open.Archive/unarchive alone did not synthesize the missing result.
Reversible recovery
custom_tool_call_outputfor the orphaned final call withoutput: "aborted".After that, native history reconstruction returned the recent turns again, direct navigation succeeded, and no new missing-output error appeared. The shared app-server was not restarted.
This supports the proposed product fix: when resuming an interrupted thread whose valid rollout ends in an unmatched tool call, Codex should durably synthesize an aborted output instead of leaving the thread permanently unloadable. The recovery should be atomic and should not require manual JSONL editing.
autonomouscereal commentedon Sep 22, 2026