Codex Desktop Computer Use MCP initialize times out, but same client handshakes from Terminal
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop 26.513.31313; computer-use@openai-bundled 1.0.793
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Computer Use has moved past the earlier "runtime app is missing" failure, but now Codex Desktop appears unable to complete the MCP initialize handshake with the same bundled client binary that works from Terminal.
Current behavior:
- In Codex Desktop, a clean Computer Use MCP smoke test fails before tools are available: the MCP client starts but no initialize response is received, so
list_appsandget_app_statecannot be called. - Direct invocation from Terminal of the same
SkyComputerUseClient mcpbinary responds to MCPinitializein under 1 second with a clean handshake. - This makes it look like the bundled client/runtime is healthy, but the Codex Desktop MCP host/spawn environment cannot receive or handle the initialize response.
Earlier phase, before plugin/cache/runtime cleanup:
list_appsandget_app_state("Finder")returnedisError:truewith "Computer Use could not start because its runtime app is missing."- Telemetry included
did_trigger_server_user_flow:false.
After cleanup/fresh plugin/runtime:
- LaunchServices resolves correctly.
- Plugin cache is fresh.
- Signatures/Gatekeeper/quarantine checks are clean.
- No crash report in the current initialize-timeout phase.
- The client starts, but Codex Desktop does not get an initialize response.
This appears related to #22856 and follows the earlier symptom in #22927, but the important difference is that direct Terminal MCP initialize succeeds here. So this does not look like the macOS Swift runtime mismatch/direct client crash cases.
What steps can reproduce the bug?
- Install/enable
computer-use@openai-bundledin Codex Desktop. - Confirm
codex mcp listshowscomputer-useenabled. - In a Codex Desktop session, attempt a Computer Use smoke test such as
list_appsorget_app_state({ app: "Finder" }). - Observe that the hosted MCP path times out waiting for the initialize response before tools are available.
- From Terminal, run the same bundled client binary directly:
cd ~/.codex-home/plugins/cache/openai-bundled/computer-use/1.0.793
./Codex\ Computer\ Use.app/Contents/SharedSupport/SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient mcp
- Send an MCP
initializerequest over stdio. - Observe that the same binary responds in under 1 second with a clean MCP handshake.
What is the expected behavior?
Codex Desktop should be able to spawn the bundled Computer Use MCP client and receive its initialize response the same way direct Terminal invocation does. After initialize, list_apps and get_app_state should be available and should either return app state or a specific actionable runtime error.
Additional information
Environment:
- macOS: 26.3.1 (25D771280a) per previous system report; current
uname -mprs: Darwin 25.5.0 arm64 arm - Codex Desktop: 26.513.31313
- Computer Use plugin: 1.0.793
- Binary:
SkyComputerUseClient - Reported client cdhash from local check:
2ee0eafd... - Backups preserved at
~/.codex-backups/
Ruled out locally:
- Missing helper binary
- Stale plugin cache after refresh
- Signing/notarization/Gatekeeper/quarantine
- LaunchServices misdirection after cleanup
- Direct client crash on Terminal invocation
Potential related context: earlier attempts had a crash trace around NSApplication init -> _RegisterApplication -> abort() when a helper was spawned in an environment without a proper Aqua session. That may be related to the Desktop spawn/session environment, but the current visible failure is an initialize timeout, not a crash.
11 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Adding a debugging update to head off duplicate-flagging:
_swift_task_addPriorityEscalationHandler) doesn't apply. I'm on macOS 26.3.1 (Darwin 25.5.0); the binary runs cleanly from Terminal, no dyld errors, MCPinitializehandshake succeeds in <1s.~/Library/Logs/com.openai.codex/shows everybundled_plugins_runtime_marketplace_writtenevent withpluginCount=4 pluginNames=["browser","chrome","computer-use","latex"]. There is nobundled_plugin_uninstall_requested pluginId=computer-use@openai-bundledin my logs. Marketplace correctly includescomputer-useon every regen.The failure is specifically: Codex Desktop's MCP host spawns
SkyComputerUseClient mcpbut never receives the initialize response, while a stdio probe against the exact same binary (same cdhash2ee0eafd…) from Terminal completesinitializein <1s.the part that breaks down here is usually stdio buffering, not the handshake. from terminal, isatty(stdout) returns true so libc picks line buffering and the init response flushes on newline. from a GUI posix_spawn with pipes, libc goes fully buffered, and a sub-4KB JSON-RPC reply sits in the child's stdout buffer until it fills. the parent's read() waits forever. fix is setvbuf(stdout, NULL, _IOLBF, 0) at client startup, or forkpty in place of pipe on the spawn side. the _RegisterApplication abort earlier is a separate Aqua-session issue, not what's holding initialize.
Update after installing the latest Codex Desktop build:
26.519.4150130441.0.793codex mcp liststill showscomputer-useenabledlist_appsstill fails with:Computer Use could not start because its runtime app is missing.get_app_state("Finder")still fails with the same message.So the app update did not resolve the Computer Use runtime failure on this machine.
Additional update: I removed/reinstalled the Computer Use plugin after updating Codex.
1.0.793to1.0.799codex mcp listnow points at/Users/vesta/.codex-home/plugins/cache/openai-bundled/computer-use/1.0.799CFBundleVersion = 799list_appsandget_app_state("Finder")still fail withComputer Use could not start because its runtime app is missing.For comparison, removing/reinstalling the Chrome plugin did fix the Chrome bridge by moving it to the new app-matched plugin path, but the same reinstall/relaunch flow did not fix Computer Use.
Update after installing another Codex Desktop update:
26.519.8153031781.0.799codex mcp liststill showscomputer-useenabled and pointing at1.0.799list_appsstill fails withComputer Use could not start because its runtime app is missing.get_app_state("Finder")still fails with the same message after repeated attempts.New local signing/provisioning evidence:
Recent macOS logs also show:
This seems to match the signing/provisioning angle reported in #22927, and appears separate from the older bundled-marketplace regeneration issue.
Update: this appears to have regressed/changed from my original report.
The original issue was about an MCP initialize timeout after signing/Gatekeeper/quarantine checks were clean. I re-tested with a fresh Codex Desktop download and now the failure is earlier: the downloaded DMG/app bundle itself fails signing and Gatekeeper verification before installation.
Current fresh DMG:
26.602.309543575computer-use:1.0.809.codex-homeBefore installation, on the mounted DMG:
returns:
Gatekeeper also fails on the mounted app:
returns:
The nested Computer Use app inside the mounted DMG also fails:
with the same invalid signature error.
Gatekeeper on the nested Computer Use app:
returns:
After copying to
/Applications,/Applications/Codex.appfails the same way. So the copy/install step does not appear to be causing the signing problem.This is different from my original report where signing checks were clean and the visible failure was MCP initialize timeout. Current state looks like a signing/Gatekeeper verification problem present in the distributed DMG/app bundle before local installation.
Closest related issues I found:
I did not find another issue specifically confirming this on a freshly mounted
26.602.30954DMG before installation, with bothCodex.appand bundledcomputer-use 1.0.809failingcodesign/spctl.Can someone else on macOS arm64 test the mounted
26.602.30954DMG before installation with:On my machine,
codesignreturns:and
spctlreturns:I’m trying to determine whether this is a distributed signing issue or local trust subsystem state on my Mac.
Update after clean reinstall:
A targeted clean reinstall did not fix this.
I quit Codex, backed up ~/.codex-home, removed /Applications/Codex.app, and removed:
~/.codex-home/computer-use
~/.codex-home/plugins/cache/openai-bundled/computer-use
Then I installed the latest Codex app fresh.
After relaunch:
“Computer Use could not start because its runtime app is missing.”
Fresh macOS logs still show:
“Entitlement com.apple.security.application-groups ... is ignored because of invalid application signature or incorrect provisioning profile.”
The signed app entitlement requests app group:
2DC432GLL2.com.openai.sky.CUAService
But the embedded provisioning profile lists app groups including:
group.com.openai.sky.CUAService
2DC432GLL2.*
So this no longer looks like stale cache or a locally broken install. The runtime exists and launches, but the Computer Use 1.0.809 client/service handoff appears unable to bind through the expected App Group/sandbox channel on this machine.
Update July 8, 2026:
This still reproduces after a clean Codex reinstall with
computer-use@openai-bundled1.0.857.Current observations:
/Applications/Codex.appwas deleted and freshly reinstalled.~/.codex-home/plugins/cache/openai-bundled/computer-use~/.codex-home/computer-useSkyComputerUseServiceis running.SkyComputerUseClient mcpprocesses are running.But calls still fail. The repeated smoke tests return either:
or, after restarting the helper processes:
So this still looks like a Codex Desktop hosted MCP/client-service handshake failure, not a missing runtime app, broken signature, stale plugin cache, or macOS permissions issue.
Follow-up on the 1.0.857 repro:
I tested the related workaround from #28479 by adding explicit env vars to the Computer Use MCP manifest:
After fully relaunching Codex, the live
SkyComputerUseClient mcpprocesses do now inherit both variables:I also checked LaunchServices/runtime discovery.
open -b com.openai.sky.CUAServicelaunches the live service at:So the current failure is not explained by missing
CODEX_HOME/CODEX_SQLITE_HOME, and LaunchServices can resolve the live service bundle.Despite that,
list_appsstill fails. Current observed error after the env fix is: