Repository navigation
codex: disable computer_use to stop CUA helper spawn-loop crash - #44
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
computer_use = falseto[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.52044spawnsSkyComputerUseServicehelpers in an unbounded loop on every launch — even while idle, with no user interaction:sky.node'sRemoteHostedPIPContentServicestarts the picture-in-picture content host and connects to the Computer Use service over XPC.connected to CUAService) then invalidates ~1 ms later, so it relaunches the helper (reconnect after connection invalidation).AESendMessageuntil libdispatch hitsDispatch Thread Soft Limit Reached: 64, and V8 OOM-aborts the app ~60–100 s after launch, every launch.Known upstream, unfixed as of this build: openai/codex#38455 (open), openai/codex#38744.
Fix
[features] computer_use = falsestops 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:computer_use = falseTrade-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.tomlitself on launch once the flag is set: it drops the now-unused[mcp_servers.computer-use]entry and the Computer Usenode_replinstruction, and refreshesmarketplaces/plugins/desktop/projectsentries. Committed so the tracked file matches what the app actually produces.🤖 Generated with Claude Code