macOS: enabling Computer History causes periodic WindowServer ping timeouts and UI input hitching
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT/Codex Desktop 26.810.41047 (build 6570)
Bundled Computer Use runtime: 26.812.1000717 (build 1000717)
What subscription do you have?
Not provided; this appears to be a local macOS Desktop/Computer Use performance issue.
What platform is your computer?
Darwin 25.5.0 arm64 arm
- macOS 26.5.2 (25F84)
- MacBook Pro, Apple M2 Max, 64 GB RAM
- One built-in display; no external display connected during the reproduction
What issue are you seeing?
Enabling Computer History in Codex Desktop caused intermittent system-wide UI/input hitching after wake from sleep. The mouse cursor and app switching would briefly catch even though the machine had substantial CPU and memory headroom.
While the problem was occurring, the following Computer Use clients were active:
SkyComputerUseClient computer-history mcp
SkyComputerUseClient event-stream mcp
WindowServer stayed around 39–45% CPU. More importantly, the macOS unified log repeatedly showed the Computer Use client PIDs missing WindowServer pings, followed by event-buffer cleanup and occasional transaction timeouts. Sanitized examples:
WindowServer: pid <computer-history-pid> failed to act on a ping it dequeued before timing out.
WindowServer: pid <event-stream-pid> failed to act on a ping it dequeued before timing out.
WindowServer: Clearing datagram buffer for cid <redacted>.
WindowServer: transaction <redacted> timed out
The ping failures recurred roughly every 10–15 seconds during portions of the affected interval.
This did not look like general system saturation:
- overall CPU was 75–85% idle after other known workloads were stopped;
memory_pressurereported 77% free;- there was no active swap I/O;
- disk I/O was near idle;
- no GPU reset, GPU hang, AGX timeout, or Metal fault was found;
- the only remaining Computer Use clients were the two shown above.
After disabling Computer History:
SkyComputerUseClient computer-history mcpexited;SkyComputerUseClient event-stream mcpremained active;- a 30-second unified-log observation recorded zero ping failures, transaction timeouts, or datagram-buffer clears;
WindowServerCPU remained around 41–45%, but the intermittent input/UI hitching disappeared subjectively.
This suggests that the hitching is related to Computer History's event-monitor/client lifecycle rather than simply the baseline WindowServer CPU percentage.
What steps can reproduce the bug?
This is the sequence that reproduced the issue once on the system above:
- Launch Codex Desktop on macOS.
- Enable Computer History.
- Allow the Mac to sleep, then wake it.
- Use the Mac normally and observe intermittent cursor/app-switching hitching.
- Confirm that both
computer-history mcpandevent-stream mcpclients are active. - Inspect WindowServer logs for repeated client ping timeouts.
- Disable Computer History.
- Confirm that the
computer-history mcpclient exits and the WindowServer ping timeouts stop. - Observe that the intermittent hitching is no longer noticeable.
Useful read-only diagnostic commands, with output sanitized before sharing:
ps -axo pid,ppid,%cpu,%mem,etime,command | rg 'SkyComputerUseClient|WindowServer'
/usr/bin/log show --last 20m --style compact \
--predicate 'process == "WindowServer"' \
| rg -i 'failed to act on a ping|transaction.*timed out|Clearing datagram buffer'
Sleep/wake may be part of the trigger; I have not yet confirmed whether enabling Computer History without a sleep cycle reproduces it.
What is the expected behavior?
Computer History should run with low background overhead and should not cause its Computer Use client—or other active Computer Use clients—to miss WindowServer event-delivery pings. Disabling the feature should not be required to keep mouse and UI input smooth.
Additional information
Potentially related, but not an exact duplicate:
- openai/codex#35659 tracks a stale ScreenCaptureKit stream and
event-stream mcpclients driving high WindowServer GPU/CPU. In this reproduction, the distinguishing signal is periodic WindowServer ping failure tied to thecomputer-history mcpclient, and disabling Computer History clears the hitching while oneevent-stream mcpclient remains. - openai/codex#25744 tracks accumulated Computer Use/MCP helpers and HID/WindowServer/TCC stalls. This reproduction did not have dozens of
SkyComputerUseClientprocesses; it had one history client and one event-stream client.
No raw unified logs, screenshots, thread contents, workspace paths, hostnames, or other local identifiers are attached.
1 Comment
Independent reproduction with the current desktop build, especially visible as click/input lag in Safari Gmail.
Environment
Observed behavior
With Computer History enabled, click responsiveness in Safari becomes noticeably sluggish or erratic, most clearly in Gmail. Pausing or disabling Computer History returns clicking to normal. The enabled-versus-disabled behavior has been repeatable and the high-end hardware has ample CPU and memory capacity.
I previously experimented with app/site permissions, but I do not currently have a clean exclusion A/B result, so I am reporting only the confirmed Computer History enabled-versus-disabled behavior rather than claiming that exclusions fail.
No Gmail content, account details, raw logs, local paths, or other private identifiers are included. I can gather sanitized WindowServer or accessibility diagnostics if maintainers need them.