codex - 💡(How to fix) Fix Desktop performance collapses in profiles with a few very large local conversation histories (typing, scrolling, thread list, random exits)

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…

Root Cause

My current read is that the issue is likely caused by some combination of:

RAW_BUFFERClick to expand / collapse

Summary: This is broader than slow thread switching. In profiles that contain a small number of extremely large local conversation histories, Codex desktop becomes slow across multiple surfaces: typing, scrolling inside a conversation, scrolling the thread list, delayed UI updates, slow thread switching, and occasional app exits. My strongest verified signal is not total conversation count, but the presence of a few giant local histories. Some of those heavy histories also had recurring thread heartbeat automations attached, which may amplify the problem, but that variable is not yet fully isolated.

Environment:

  • Codex desktop app 26.415.40636
  • macOS 26.3
  • MacBook Pro (Apple M3 Max, 16 CPU cores, 128 GB memory)

Observed

  • Typing can become very slow, roughly ~1s for words to appear.
  • Scrolling inside an existing conversation can become very slow.
  • Scrolling the thread list can become very slow.
  • UI updates such as archive notifications can arrive with noticeable delay.
  • Switching into some older conversations can take a very long time.
  • The app can also exit unexpectedly.
  • This appears Codex-specific on my machine: the slowdown can show up immediately inside Codex while the rest of the machine feels normal.

Verified A/B Repro

I tested this by comparing copied local profiles rather than only changing one profile in place.

Verified results:

  • A fresh test profile was smooth.
  • A copied profile that kept most of my original conversations but excluded the largest bloated ones was also smooth.
  • A copied profile that restored only a few very large historical conversations became slow again, even without the rest of my normal active conversations.

What this establishes:

  • The strongest correlation I can verify so far is the presence of a few giant local histories, not raw total conversation count by itself.
  • This is broader than thread-switch latency. The same profiles also show typing lag, scrolling lag, delayed UI updates, and occasional app exits.

What I have not isolated yet:

  • Whether simply archiving those same conversations inside the main profile would be enough to fix it.
  • Whether recurring thread heartbeat automations targeting those same heavy conversations are contributing independently, or mainly amplifying an existing history-size problem.

Hypotheses

These are hypotheses, not claims of proof:

  • The desktop app may be over-hydrating, resuming, or indexing a few massive local conversation histories.
  • Stale stored workspace roots may be adding background churn during startup and/or resume.
  • Recurring thread heartbeat automations attached to already-large conversations may amplify the problem by repeatedly waking expensive local histories.

My current read is that the issue is likely caused by some combination of:

  1. oversized local history payloads
  2. resume/read/index churn on those histories
  3. stale workspace-root scanning
  4. possibly heartbeat-driven repeated wakeups on the same heavy conversations

Diagnostics

Largest local histories on this machine, anonymized:

Local historyRollout sizeTurn contextsFunction/tool calls
#11867.27 MiB61821,369
#2584.72 MiB5,55422,434
#3561.02 MiB55422,831
#4507.22 MiB42817,991
#5455.84 MiB56338,073

Additional local signals:

  • local state currently has 1767 total conversations, 777 unarchived
  • 40 stored workspace roots no longer exist
  • the desktop backend had 8 old session histories open totaling about 1.66 GiB
  • desktop logs showed thread resume/read/unsubscribe operations taking tens of seconds, with worst cases around 82s
  • startup also repeatedly scanned stale worktree/origin roots with very large expanded counts

Related issues

This may overlap with:

  • #11011
  • #18264
  • #18333

extent analysis

TL;DR

The issue can likely be mitigated by archiving or removing the largest local conversation histories, which are causing performance issues due to their size and the associated resume, read, and indexing operations.

Guidance

  • Identify and archive or remove the largest local conversation histories, as shown in the diagnostics table, to reduce the payload size and associated operations.
  • Investigate and address stale stored workspace roots, which may be contributing to background churn during startup and resume.
  • Consider disabling recurring thread heartbeat automations targeting large conversations to prevent repeated wakeups and amplification of the issue.
  • Monitor desktop logs for thread resume/read/unsubscribe operations taking tens of seconds and optimize or fix these operations to improve performance.

Example

No code snippet is provided as the issue is related to performance and data size, rather than a specific code bug.

Notes

The issue may be caused by a combination of factors, including oversized local history payloads, resume/read/index churn, stale workspace-root scanning, and heartbeat-driven repeated wakeups. Further investigation is needed to fully isolate the root cause.

Recommendation

Apply a workaround by archiving or removing the largest local conversation histories, as this is the most likely cause of the issue and has been verified through testing. This should help mitigate the performance issues until a more permanent fix can be implemented.

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

codex - 💡(How to fix) Fix Desktop performance collapses in profiles with a few very large local conversation histories (typing, scrolling, thread list, random exits)