Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Windows Desktop internal version 26.930.41038 (build 13022); MSIX package 26.930.4958.0. Bundled Codex CLI 0.160.0; Node.js v24.21.0. These were verified locally; the hosted controller version was not recorded.
What subscription do you have?
Not recorded.
What platform is your computer?
Windows Desktop. Exact Windows OS build was not recorded.
What issue are you seeing?
A task created by dot and executed on the connected Windows computer could not access codex_app tools to continue an existing user-created local thread. An ordinary user-created local thread on the same machine had working desktop thread interfaces. The delegated task initially exposed 112 tools, with no codex_app entries, including no read_thread or send_message_to_thread.
Both list_mcp_resources({server: 'codex_app'}) and list_mcp_resource_templates({server: 'codex_app'}) initially reported:
MCP startup failed: handshaking with MCP server failed: connection closed: initialize response: connection closed: initialize response
The actual executor plugin copy contained server.mjs, and it matched the installed package. This was not the missing-server-file condition described in #48314.
What steps can reproduce the bug?
Observed sequence on one Windows machine; broader reproducibility has not been established:
-
Ask dot to start a task on the connected Windows computer and inspect that task's available tool catalog. Compare with an ordinary local user-created thread on the same computer.
-
In the dot-created task, request resources/templates for
codex_app. Observe the startup/initialize error above and the missing thread tools. -
After backing up the actual executor launcher, add this single line immediately after
setlocalin<APPDATA>\Codex\web\Codex\executor-plugins\codex-app-tools\scripts\launch_codex_app_tools_mcp.cmd:
if not defined SystemRoot for %%I in ("%__APPDIR__%..") do set "SystemRoot=%%~fI"The guard supplies SystemRoot only when absent, within the launcher's local environment. This is a temporary, reversible workaround, not an official fix; an update may overwrite the executor copy.
- In the same existing dot-created task, resources/templates then returned
Mcp error: -32601: Method not found, consistent with this tools-only service not implementing resource methods rather than initialization still failing. - On the next turn, the tool catalog contained 168 tools, including 56
codex_apptools.read_threadsuccessfully read the original local thread withhostId: 'local'. - With separate user authorization, the delegated task sent exactly one 'reply only' test through
send_message_to_thread. A subsequent read confirmed a new completed turn,error: null, and the requested acknowledgment.
Recovery used the existing task and target thread, without creating a replacement test task or restarting the service.
What is the expected behavior?
Dot-created tasks executed on a connected Windows computer should receive working codex_app thread tools without manually editing the launcher. MCP initialization failures should expose useful diagnostics. Please investigate essential environment propagation, including SystemRoot, in the durable/dot executor launch path, and tool-catalog refresh after initialization recovers.
Additional information
Previously performed isolated checks: the configured launcher/server initialized under the normal environment. A filtered child environment without SystemRoot exited with code 134 and Assertion failed: ncrypto::CSPRNG(nullptr, 0). Adding only SystemRoot made initialization succeed; the guarded launcher also passed that filtered initialization check. These were isolated child-process tests, not a dump of the real worker MCP subprocess environment.
Uncertainty: incomplete environment inheritance is a hypothesis supported by those checks and the recovery, not a confirmed cause at a specific executor/controller layer. Shell variables do not establish MCP subprocess variables. The original MCP process environment and root binding were not directly inspected. This report does not claim all versions are affected.
Ordinary local computer control was reported working by the user. Post-workaround validation covered codex_app thread interfaces only; it does not establish that node_repl or computer-control tools recovered in the delegated task.
Potentially related reports, not confirmed duplicates or the same root cause:
- MCP servers fail to start on Windows due to missing inherited environment variables #4180: historical Windows environment inheritance failure (closed; not evidence that this current issue is fixed).
- Desktop app (Windows, MSIX): codex_app MCP server fails to start — bundled plugin installed without server.mjs #48314: missing
server.mjs, unlike the matching file here. - ChatGPT Desktop: local MCP tools are discovered successfully but not exposed to Chat sessions #38162: tools discovered but not exposed to sessions.
Activity
github-actions commentedon Oct 5, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
touchable-tom commentedon Nov 14, 2026
Tested on a clean Microsoft Store install on Windows 11 (
10.0.26300.9974) withOpenAI.CodexMSIX26.1111.2228.0(andOpenAI.CodexPrimaryRuntime26.1112.737.0, bundledcodex-app-toolsplugin26.1111.21308). TheSystemRootlauncher workaround no longer restorescodex_appin dot-created tasks on this build.Reproduction & Diagnostic Details (
26.1111.2228.0)MSIX Virtualized Executor Paths:
Under the Store package (
OpenAI.Codex_2p2nqsd0c76g0), the executor launcher exists in two places:%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Roaming\Codex\web\Codex\executor-plugins\codex-app-tools\scripts\launch_codex_app_tools_mcp.cmd%USERPROFILE%\.codex\plugins\cache\openai-bundled\codex-app-tools\26.1111.21308\scripts\launch_codex_app_tools_mcp.cmdWorkaround Behavior:
Adding
if not defined SystemRoot for %%I in ("%__APPDIR__%..") do set "SystemRoot=%%~fI"immediately aftersetlocalin both scripts does not exposecodex_appin fresh dot-created tasks. Unlike26.930(wherecodex_appattempted initialization and failed handshake), the dot task reports that the server is not registered in the session at all:Host Routing & Desktop Log Telemetry:
Desktop logs (
codex-desktop-*.log) confirm the Local Work executor connection is healthy ([tpp-local-executor] Local Work executor connection observation), while dot-created tasks route tohostId=durable—which logs-32601on catalog load and never mountscodex_app(consistent with [Windows] dot-started local tasks lack Computer Use tools while ordinary local Codex sessions work #49458 and Windows: dot lacks native tools to read or message an existing local Codex conversation #49862):Static
config.tomlOverride Behavior:Manually declaring
[mcp_servers.codex_app]in~/.codex/config.tomlpointing to the guardedlaunch_codex_app_tools_mcp.cmdandserver.mjsdoes not bridgecodex_appintohostId=durablesessions, and instead overrides/suppresses the Electron host's dynamic IPC injection ofmcp__codex_appinhostId=localthreads until removed.