Skip to content

codex: disable computer_use to stop CUA helper spawn-loop crash - #44

Merged
frrad merged 1 commit into
masterfrom
codex/disable-computer-use-spawn-loop
Aug 18, 2026
Merged

frrad merged 1 commit into
masterfrom
codex/disable-computer-use-spawn-loop

Conversation

@frrad

@frrad frrad commented Aug 18, 2026

Copy link
Copy Markdown
Owner

What

Add computer_use = false to [features] in the Codex/ChatGPT desktop config, and capture the config the app writes back to disk with that flag set.

Why

ChatGPT desktop 26.810.52044 spawns SkyComputerUseService helpers in an unbounded loop on every launch — even while idle, with no user interaction:

  • sky.node's RemoteHostedPIPContentService starts the picture-in-picture content host and connects to the Computer Use service over XPC.
  • The connection succeeds (connected to CUAService) then invalidates ~1 ms later, so it relaunches the helper (reconnect after connection invalidation).
  • Attempts overlap and compound — helper launches accelerate from ~8/s to ~50/s, each a full AppKit/SkyLight process bringup.
  • Threads block in AESendMessage until libdispatch hits Dispatch Thread Soft Limit Reached: 64, and V8 OOM-aborts the app ~60–100 s after launch, every launch.
  • The same dispatch starvation blocks Apple's DeviceCheck callback past its hard 1 s deadline, so new chats fail with "DeviceCheck token generation is unavailable" — the visible symptom, but a downstream one.

Known upstream, unfixed as of this build: openai/codex#38455 (open), openai/codex#38744.

Fix

[features] computer_use = false stops the storm — with Computer Use off, the PiP host never connects to the CUA service, so there's no reconnect loop. Verified on this machine:

normal launch with computer_use = false
helpers after 2 min 300–480, still climbing 1
app at t+130 s crashed (~70–100 s) alive, same pid
flag after the app rewrites config on launch — preserved

Trade-off: the Computer Use agent feature becomes unavailable (unused here).

Note on the rest of the diff

Most of this diff is not hand-written — it's what the desktop app writes back to config.toml itself on launch once the flag is set: it drops the now-unused [mcp_servers.computer-use] entry and the Computer Use node_repl instruction, and refreshes marketplaces/plugins/desktop/projects entries. Committed so the tracked file matches what the app actually produces.

🤖 Generated with Claude Code

ChatGPT desktop 26.810.52044 spawns SkyComputerUseService helpers in an
unbounded loop on every launch, even while idle. The RemoteHostedPIP content
host connects to the Computer Use service over XPC, the connection invalidates
~1ms later, and sky.node relaunches it; attempts overlap and accelerate to
~50 helpers/sec until the libdispatch pool hits its 64-thread soft limit and
V8 OOM-aborts the app after ~60-100s. The same thread starvation also blocks
DeviceCheck's completion past its 1s deadline, surfacing in the app as
"DeviceCheck token generation is unavailable".

Setting [features] computer_use = false stops it: verified on this machine as
1 helper, no crash, stable well past the usual crash window, and the flag
survives the app's startup config reconciliation.

The rest of this diff is what the app itself writes back to config.toml on
launch: it drops the now-unused [mcp_servers.computer-use] entry and the
Computer Use node_repl instruction, and refreshes marketplace/plugin/desktop
entries. Captured here so the tracked file matches what the app produces.

Refs openai/codex#38455, openai/codex#38744.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@frrad
frrad enabled auto-merge (squash) August 18, 2026 03:09
@frrad
frrad merged commit 4dd8105 into master Aug 18, 2026
5 of 6 checks passed
@frrad
frrad deleted the codex/disable-computer-use-spawn-loop branch August 18, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant