Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1027.6604 (Windows, MSIX), updated automatically from 26.1023.6621 on 2026-11-03
What subscription do you have?
ChatGPT (plan reported by Codex: prolite)
What platform is your computer?
Microsoft Windows NT 10.0.26300.0 x64
What issue are you seeing?
A thread that was running during an automatic app update permanently loses the browser tool. After the update the app resumed the thread with an empty turn (turn_trigger: "app_update_resume"), 17 seconds after the new app-server process started. At that moment the thread received a developer message with content_item_kinds: ["tools.removed_definition"]:
The following namespaces are no longer available. Do not call tools in them unless those tools are declared in a later update:
- mcp__cua_repl
mcp__node_repl was removed and re-added 33 seconds later; mcp__cua_repl never came back. Eight later turns sent from the desktop composer over the next three hours still had no mcp__cua_repl. The agent tried cua in mcp__node_repl__js and got ReferenceError: cua is not defined, then reported that DOM browser control is unavailable.
At the same time, threads created after the update had mcp__cua_repl and used Chrome normally, so the browser extension and its host were working.
From the installed bundle, the cua_repl server entry is written into the computer-use plugin's .mcp.json by the desktop app (enabled only when nodeRepl is set and surfaces is non-empty). The update resume (app_update_resume, same code path as resume_interrupted_task) probably runs before that config is ready, and the loaded thread keeps the tool set it got on resume. This order is inferred from the code, not measured.
What steps can reproduce the bug?
- In the desktop app, start a thread and use the browser through
cua_repl. - While the thread has a running turn, let the app install an update and restart.
- The app resumes the thread (
app_update_resume); the thread log showsmcp__cua_replin "no longer available". - Send another message from the desktop composer and ask for a browser action:
mcp__cua_replis still missing.
What is the expected behavior?
After an update resume the thread gets the same tools as a newly started thread, or the missing namespace is added back as soon as it becomes available ("declared in a later update").
Additional information
Possibly related, but different symptoms: #44724 (cua undefined after reset, tool still listed) and #54447 (trusted worker crash).
Activity
github-actions commentedon Nov 3, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
jancinert commentedon Nov 3, 2026
Related to #58785, but I don't think it is a duplicate. The symptom is the same (
mcp__cua_repldisappears from an existing Windows thread whilenode_replstays), but the trigger here is different:client-new-thread:…conversation ID vs. the real chat route) and does not mention an app update.turn_trigger: "app_update_resume") 17 seconds after the new app-server started, with an explicittools.removed_definitionmessage formcp__cua_repl. Threads created after the update had the tool.Both may share a root cause (a thread loaded without the
cua_replserver and never reconfigured), so linking them should help whoever looks at either one.julien-m commentedon Nov 14, 2026
Same bug on macOS, so it is not Windows-specific. It also happens on a plain restart, not only after an update.
Environment: Codex App 26.1111 (macOS, Darwin 25.5.0 arm64), bundled CLI 0.169.0-alpha.11.1.
What we observed
Every thread that the app resumes on its own at launch loses
mcp__cua_repl. We saw it with three turn triggers:resume_interrupted_task,goal(goal continuation) andapp_update_resume. The rollout gets:mcp_server_startup_status_updated ... threadId=<resumed thread>) listsnode_repl,pencil,mail, … but nevercua_repl.cua_replonly comes back when the thread is resumed again with fresh config (opening it in the UI). In the desktop log that shows up asserver=cua_repl status=startingfor that thread, followed by anadditional_toolsentry withmcp__cua_replin the rollout.mcp__cua_repltoo.Where it seems to come from (desktop bundle 26.1111, minified)
The function that builds the per-thread config reads the computer-use reconcile state without waiting for it:
At launch, the startup reconcile isn't finished yet. It checks the
unified-computer-useplugin, rewrites its.mcp.jsonand writesconfig/batchWrite. Meanwhile the automatic resumes (resume_interrupted_task/goal/app_update_resume) already callthread/resume. Those threads get the disabled placeholder, and the loaded thread keeps that MCP set. We read this order from the code and the log timestamps; we did not trace it step by step.Suggested fixes
waitForReconcile: trueon those paths, or delay auto-resume untilcuaReplEnabledis known.cua_replback, just as they already getnode_replback.Workaround that works (verified after a restart)
Declare a static MCP server in
~/.codex/config.tomlunder a name the app doesn't rewrite:launch.mjsreadsmcpServers.cua_replfrom the newest~/.codex/plugins/cache/openai-bundled/unified-computer-use/<version>/.mcp.jsonand spawns it with that env andCUA_REPL_ENABLED_SURFACES=computer. The browser surface is left out because it needs the pipes the desktop app injects for each thread.After a restart, the auto-resumed threads get
mcp__cua_repl_static(Added deferred tool namespaces) andcua.getState()succeeds. This covers desktop control only, not browser control.kristian-create commentedon Nov 15, 2026
Additional Windows observation, reported at the user's request on 15 November 2026 (Europe/Oslo).
Installed package observed: OpenAI.Codex 26.1111.2228.0 x64. OS: Windows NT 10.0.26300.0.
In an existing long-running Codex desktop conversation, the user could see a tab in the in-app browser while the assistant's available tools lacked the supported
mcp__cua_replentry point in earlier turns. This blocked authorized browser work and led to repeated requests for manual assistance.Recovery observed in the current turn:
mcp__cua_repl.jsbecame available again.cua.getTab({url: <existing-tab-url>}, {browser: 'iab'})and accessibility reads then succeeded. Opening an authorized service dashboard in that same in-app browser reused its existing authenticated session without a new password or user sign-in.This adds an in-app-browser case and a verified recovery after tool re-exposure. We have NOT established whether an app update triggered this occurrence, why the tool returned, or whether the root cause is the same as this issue. No deterministic fresh-thread reproduction is available. Please investigate capability refresh for existing conversations and provide an actionable recovery signal when a visible browser cannot be controlled.
No credentials, private URLs, project identifiers, conversation transcripts or raw logs are attached.
ffidelis16 commentedon Nov 16, 2026
Another trigger for this on Windows: a missed heartbeat automation that catches up at launch (
turn_trigger: "automation_heartbeat_scheduled"). The result is the same as withresume_interrupted_task/app_update_resume: the thread losesmcp__cua_replfor the whole app-server lifetime.Environment: Codex 26.1111.2228.0 (MSIX, x64), bundled plugins 26.1111.21308, Chrome extension 1.26.1102.11740, Windows 10 19045 (pt-BR). Thread
01a1d5ce-e69c-7683-a8aa-85ea4cf1c916is thetarget_thread_idof two heartbeat automations.What happened (UTC, 2026-11-15)
node_replis spawned. Nocua_replprocess is spawned for it.automation_heartbeat_scheduled(catch-up of the 12:15 run, missed while the app was closed), withactive_permission_profile: null.world_statedelta removesmcp__cua_repl,mcp__cua_repl.jsandmcp__cua_repl.js_reset, plus 6 MCP servers that were still pending. Those 6 came back within 4 minutes.@Chromementions:mcp__cua_replnever came back. Thetool_cataloglogs never listcua_replas pending or not ready for this thread.cua_replprocess and controlled Chrome normally. The extension host and the backend pipe were healthy the whole time.The same sequence happened on 2026-11-14: a heartbeat catch-up ran 3 s after a new app-server started, and the thread had no
cua_repluntil a manual restart where the first turn was a composer turn.Side effect worth noting: without
cua_repl, the agent fell back to thechrome-devtoolsand Playwright MCP servers, which started a separate Chrome instance where Google refused sign-in. So this bug can push agents out of the user's signed-in browser.Workaround (verified): pause the heartbeat automations that target browser threads, restart the app, and make the first turn in that thread a composer turn. After that,
mcp__cua_replwas attached on the first turn (2026-11-15 22:47:57Z) and stayed across turns. Two turns 15 minutes apart listed the Chrome tabs, read an existing tab, and confirmed the signed-in account without changing the page.Related: #46782 (resumed task omits
cua_repl; one comment there also mentions a conversation with an attached recurring automation) and #29610 (heartbeat runs withpermissions: null).ninastienjkt88-dev commentedon Nov 17, 2026
On Windows, Codex Desktop 26.1111.2228.0 with Computer Use 26.1111.21308 also showed intermittent
mcp__cua_replavailability across conversations. An existing thread recorded atools.removed_definitionnotice, while a separate thread later exposed the tool again. I have not established whether an app update, automatic resume, or startup race triggered this occurrence. The symptoms may overlap with this report, but a shared root cause remains unconfirmed. Further independent reproduction across Windows builds is needed.eggrollofchaos commentedon Nov 18, 2026
Same behavior on macOS, with process start times that show the order directly.
Environment: Codex desktop app 26.1111.21308 on macOS 27.2.1 (26B131), Apple silicon.
Bundled CLI
codex-cli 0.169.0-alpha.11.1. Also reproduced in a standalonecodex app-server --listen unix:// --managed-daemonon 0.170.0.Timeline (UTC, one app relaunch):
codex app-serverprocess starts (after the app was relaunched).mcp__cua_repl(js,js_reset) andmcp__artifact_session.codex-code-mode-hostchild of that app-server starts (ps -o lstart), 14 s after thread A's turn began.The same race in the standalone app-server. That server had been running since 04:38:30.
Its
codex-code-mode-hostchild did not start until 05:52:21, when turns arrived, so the hostappears to start on demand rather than with the server. A thread whose turn started there at
05:52:15 lost the same tools; another thread whose turn started at 05:53:45, after the host was
up, had them.
Recovery: quit and relaunch the app, wait until
pgrep -fl codex-code-mode-hostshows ahost whose parent is the new app-server, then open the thread. Its next turn has the tools.
Across our local history, 16 threads lost these tools this way since 2026-10-27, 10 of those
losses before any standalone app-server was installed on the machine.
Expected: a turn that starts before the code-mode host is ready either waits for it, or the
missing namespaces are declared again once the host is up, as the "declared in a later update"
wording suggests.
ninastienjkt88-dev commentedon Nov 18, 2026
Additional Windows evidence: thread resume overlaps plugin reconciliation
Read-only Codex Desktop logs from 2026-11-14 (UTC) show:
maybe_resume, 339 ms before reconciliation completed.thread/resumecompleted.cua_repl.tools.removed_definitionformcp__cua_repl.cua_replas ready.An earlier Desktop lifecycle had successfully registered
cua_replfor the affected thread after bundled-plugin reconciliation completed.Environment: Windows, Codex Desktop 26.1111.2228.0, CLI 0.169.0-alpha.11.1, Computer Use 26.1111.21308.
These observations support investigating a resume/configuration timing race, but do not establish causation. Bundled-plugin reconciliation does not necessarily indicate Computer Use-specific readiness. The historical
codex-code-mode-hoststartup time and effective per-thread MCP configuration remain unverified.Could maintainers investigate configuration readiness at
thread/resumeand whether missing tool definitions are republished after initialization?jancinert commentedon Nov 19, 2026
Reproduced again on the current Windows build, with timestamps from the desktop log and the thread rollout.
Environment: Windows 11 (NT 10.0.26300) x64, Codex MSIX updated automatically from 26.1111.2228.0 to 26.1111.9664.0, bundled plugins 26.1111.71704, app-server 0.169.1.
Timeline (UTC, 2026-11-19)
--codex-update-attempt, 26.1111.2228.0 → 26.1111.9664.0).maybe_resumefor a thread that had a running turn;thread/resumecompletes at 09:58:54.codex-app-tools,browserat 09:59:12–09:59:14),unified-computer-usetool discovery and everynode_replstart for that thread fail withMCP startup failed: The system cannot find the path specified. (os error 3).app_update_resumeturn starts.tool_catalog:omitting MCP server without an exact ready client server_name=node_replmcp__cua_replis "no longer available", andmcp__artifact_sessionis removed.node_replbecomes ready.mcp__codex_app, but notmcp__cua_replormcp__artifact_session.mcp__cua_repl. The agent reports that it cannot control the signed-in Chrome, although the extension, the native-host manifest and bothextension-hostprocesses from the new package were healthy.server=cua_repl status=starting→readyfor that thread. No automatic resume ran first.mcp__cua_replandmcp__artifact_session. Chrome control works from then on.What this adds
os error 3, not just "not ready yet".node_replrecovered within seconds and was added back, butcua_replwas never started for the thread until the app was relaunched.KFLCHI001 commentedon Nov 20, 2026
I reproduced this on Windows x64 (build 26200, Codex MSIX package 26.1117.3838.0) on November 20. Tab-scoped Edge control had worked in the same chat. Codex then restarted for an update and resumed the chat. The browser tool disappeared, although Codex still showed the in-app browser tab. The browser runtime returned
Trusted RPC service is not configured: browserwhen we tried to reconnect.There was a second problem. The assistant switched to Windows desktop control despite a global instruction favoring tab-scoped control. The user stopped the desktop attempt. Please restore browser-tool availability when a chat resumes after an update. If tab control cannot be recovered, Codex should surface that limitation and honor an explicit browser-only instruction. The update correlation is observed. The root cause is unknown.
CHZarles commentedon Nov 29, 2026
Filed #64529 for the transient/self-healing variant of this startup race:
mcp__drawiois reported asRemovedwhile its MCP server is stillstarting, thenAddedon the next sampling step. It includes two clean timelines and points atToolsState::render_diffcomparing the persisted world-state checkpoint with the freshly rebuilt, not-yet-ready MCP registry. This may help isolate the same race that permanently dropscua_replhere.