Repository navigation
Windows Desktop: brief mouse/input freezes after opening Codex with large sessions directory #28109
Description
What happened?
After a recent Codex Desktop update, opening/running Codex on Windows causes intermittent short system input freezes. The mouse cursor and normal interaction occasionally pause for about 1-2 seconds, then recover. The pauses are short but frequent enough to noticeably affect normal use.
This seems similar to reports of Windows Desktop stutter/freezing and possible session-history scanning overhead.
Related issues/discussions I found while checking for similar reports:
- Codex App frequently freezes/stutters on Windows 11 Pro despite sufficient system resources #20214
- Codex Desktop App becomes laggy because it scans all
~/.codex/sessionsrollout files instead of respecting Desktop-visible session index/state #20864 - Codex Windows "not responding" freeze/hang with long chat/thread #19923
- Windows-native Codex Desktop incorrectly enables WSL path resolution when WSL_DISTRO_NAME exists, causing UI freezes #22376
Environment
- App: Codex Desktop for Windows
- Codex package version:
26.609.4994.0 - Package:
OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g0 - OS: Windows 10 Pro, 64-bit
- OS build:
26200 - Shell/context used for inspection: PowerShell
- Timezone: Asia/Hong_Kong
Local observations
The issue occurs while Codex Desktop is open. A local inspection found a relatively large Codex sessions directory:
- Sessions path:
C:\Users\<user>\.codex\sessions - JSONL session files:
46 - Total session JSONL size:
361.25 MB - Largest session file:
232.65 MB - Largest session file path pattern:
sessions\2026\05\14\rollout-2026-05-14T21-41-15-...jsonl - Largest file last write time:
2026-05-18 03:45:26
I also checked for the WSL_DISTRO_NAME environment-variable issue mentioned in #22376. It was empty at User, Machine, and Process scope, so that does not appear to be the cause in this case.
Several Codex processes were present while the app was running; the largest observed working sets were roughly 418 MB, 347 MB, and 245 MB.
Expected behavior
Opening Codex Desktop should not cause global mouse/input freezes, even if local session history contains large JSONL files.
Actual behavior
With Codex Desktop open, mouse/input intermittently freezes for roughly 1-2 seconds.
Possible cause
Based on the local state and related reports, this may be related to Desktop scanning/parsing/rendering large files under ~/.codex/sessions, or otherwise doing synchronous work on the UI path when session history is large.
Privacy note
I am not attaching the session JSONL contents because they may contain private conversation/project data. The report only includes file counts, sizes, and path shape.
Activity
github-actions commentedon Jun 13, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Shoting-star commentedon Jun 13, 2026
Additional observation:
After Codex Desktop is opened, the stutter/freezing usually improves after waiting a few minutes. However, if Codex is fully exited and then opened again, the same issue returns and I need to wait a few minutes again before it becomes usable.
Older Codex Desktop versions did not have this startup-period mouse/input freezing behavior. Even though it eventually improves after a few minutes, that startup delay significantly affects normal use.
Shoting-star commentedon Jun 13, 2026
The mouse/input freezing also happens whenever I open a historical conversation/session from Codex Desktop. After selecting/opening a history item, the mouse frequently freezes for a few seconds and then recovers.
Necmttn commentedon Jun 21, 2026
Desktop startup should not synchronously hydrate large session directories on the UI path.
A small manifest can track session id, path, mtime, size, hash, title, and last timestamp. Startup reads the manifest first, schedules changed-file parsing off the renderer thread, and reports scan duration/file counts in diagnostics.
That would turn the freeze into an inspectable indexing backlog.
Generated with ax.
btkh95 commentedon Jun 23, 2026
I am facing this issue as well. At first I went down the rabbit hole of removing my recently local installed rg.exe and nodejs. I figured out that rg was causing this issue. Post uninstalling I was still facing this issue and I realised codex has its one rg? and is causing massive lags and crashes.
I realised it's worse when I engage in a past project with extended history and long context. Was not having this issue the week before as well.
This should be an urgent matter to be addressed, as where it currently standa it makes VSCode with codex and Codex App virtually unusable
oc83126-lgtm commentedon Jun 24, 2026
Adding another Windows repro that looks very similar to this issue.
Environment:
OpenAI.Codex 26.616.10790.026220Symptom:
Local observations:
~/.codex/sessionstotal size is about3064 MB.738 MB.100 MB.Related log observation:
~/.codex/logs_2.sqliteis about400 MB, with most of that space reported as SQLite free pages.TRACEentries on26.616.10790.0, but idle sampling after the update did not show continuous runaway disk writes.Privacy note:
archasek commentedon Jul 1, 2026
really annoying regression :(
ryanbevins commentedon Jul 2, 2026
Also experiencing this, messages from Codex cause it to happen, alongside opening new conversations until they've been cached.
Specs:
AMD Ryzen 7950x
64gb DDR5 RAM
RTX 5080 GPU
ryanbevins commentedon Jul 11, 2026
This appears to have been solved with the latest update.
rodalpho commentedon Jul 11, 2026
Not solved in 26.707.31428 for me.
realcp1018 commentedon Jul 13, 2026
Still reproducible for me on Windows 10 Pro 10.0.19045 with Codex Desktop 26.707.62119.
The impact is severe: immediately after launching or restarting the app, and again whenever switching to or opening another conversation thread, the system-wide mouse cursor becomes nearly frozen or moves at an extremely low frame rate until the session content finishes loading and the UI completes rendering.
ryanbevins commentedon Jul 14, 2026
Was occuring for me before recent updates but is now gone, may have something to do with Windows updates or driver updates considering mine disappeared.
rodalpho commentedon Jul 14, 2026
This is NOT fixed, I just opened codex then selected a long session and my mouse lagged like before.
This is on windows version 26.707.72221.
Sk-only commentedon Jul 16, 2026
Is there any good way to solve this? I have the exact same problem.
realcp1018 commentedon Jul 17, 2026
I think things are going really bad at the moment. Cursor is lagging even when tasks are running in the background.
I'm on the latest version, 26.715.21425.
tyc0on commentedon Jul 18, 2026
I am getting this too, isolated it to ChatGPT/codex app
CypherPotato commentedon Jul 27, 2026
yea, this still happening.
lordnelsonpt commentedon Aug 10, 2026
Having the same problem, it just gets worse every day... :(
chourunzhong-rgb commentedon Aug 14, 2026
Additional symptom clarification from a Windows Codex Desktop user:
This seems particularly consistent with the brief mouse/input freezes described in this issue.
tyc0on commentedon Aug 15, 2026
On Windows, the latest Codex update caused frequent split-second system-wide mouse and shell freezes while Codex was open.
We first suspected repeated
Conversation state not founderrors and stale session state. A cleanup attempt broke the app, so we rolled everything back. After rollback, the same errors and old state were restored—but the lag was gone. The meaningful change was that the rollback forced a genuine shutdown of every Codex/ChatGPT process and a fresh restart. The main process working set fell from about 1.36 GB to 334 MB.What others should try:
ChatGPT.exeprocess has exited. Closing the window alone may leave hidden processes running.No sessions or state files need to be deleted. This suggests accumulated Electron process/renderer memory or cache state; the exact internal cause is not yet proven.
Affected package:
OpenAI.Codex_26.810.6296.0_x64__2p2nqsd0c76g0.rodalpho commentedon Aug 15, 2026
That does not fix the problem this issue covers, which happens consistently in a fresh start.
CypherPotato commentedon Aug 15, 2026
Just abandoned Codex for lack of Windows support and started working on AVI btw https://github.com/aivaxlabs/avi
rodalpho commentedon Aug 15, 2026
Yep, I use T3code instead.