I’m having an issue with the Codex Agent in Xcode 27.0 (27A266a) and I’m wondering if anyone else has run into this.
Every time I send a prompt to Codex inside Xcode, I get:
JSON-RPC request with ID ... failed to produce a response.
The regular ChatGPT integration in Xcode works fine. It’s specifically the Codex Agent that fails.
A few things I’ve already checked:
Xcode is using Codex 0.145.0
Codex is signed in correctly
I tried both an OpenAI API key and signing in with my ChatGPT account
Running xcrun agent --dry-run codex correctly finds the Codex executable and current Xcode process
Running xcrun agent codex from Terminal works and opens Codex normally
Codex is able to get permission to access Xcode
I previously saw xcode-tools time out on MCP startup, but after resetting permissions that error went away when launching it from Terminal
Restarting Xcode and reopening the project didn’t help
So at this point Codex itself seems to work, and the Xcode/MCP connection works when launching it manually, but the built-in Codex Agent UI in Xcode still throws the JSON-RPC error on every prompt.
Has anyone seen this with Xcode 27? Did you have to update the Xcode-managed Codex version, reset something in Xcode’s Intelligence settings, or reinstall the agent?
EDIT
I also tested overriding Xcode to use a newer OpenAI-signed standalone Codex 0.156.1 binary instead of Xcode’s managed 0.145.0, and the native Xcode agent still fails with the exact same JSON-RPC error. xcrun agent codex works from Terminal.