codex icon indicating copy to clipboard operation
codex copied to clipboard

[Windows][Work] Existing conversations retain stale Computer Use native-pipe UUIDs in executor-plugin snapshots after desktop restart

Open EnderMan8888 opened this issue 1 week ago • 15 comments

Environment

  • ChatGPT desktop for Windows (MSIX): OpenAI.Codex 26.1120.5083.0
  • Bundled CLI: codex-cli 0.171.0-alpha.13.2
  • Primary Runtime: 26.1123.915.0
  • Windows 11, build 26200, x64
  • Tested on November 24, 2026

What is the issue?

An existing ChatGPT Work conversation that can successfully control the built-in browser loses Computer Use after the desktop app is restarted. A newly created Work conversation can still list browser tabs, as can an existing Codex conversation.

The minimal read-only call in Work is:

await cua.listTabs({ browser: "iab" });

The failing call returns:

Computer Use native pipe is unavailable: failed to connect native pipe: 系统找不到指定的文件。 (os error 2)

The Chinese Windows error means "The system cannot find the file specified." The built-in browser itself can still be opened manually.

Steps to reproduce

  1. Create a Work conversation using the local computer and successfully list built-in browser tabs.
  2. Fully quit and restart the desktop app (also reproduced after a full Windows reboot).
  3. Return to the same Work conversation and repeat the call.
  4. Observe the native-pipe error.
  5. Create a new Work conversation and repeat the same call. In my tests it succeeds. An existing local Codex conversation also continues to work after restart.

Expected behavior

Existing Work conversations should reconnect to the current Computer Use host after restart, without losing their context, recreating the conversation, or requiring manual changes to generated plugin configuration.

Diagnostic evidence: stale executor-plugin snapshot

I compared the actual process environment of the MCP tool processes with the live Windows named-pipe namespace, the desktop startup logs, and the generated plugin configuration. UUIDs below are abbreviated.

Conversation Browser probe node_repl probe Actual tool-process SKY_CUA_NATIVE_PIPE_DIRECTORY
Existing local Codex Success Success 61a4314c… (live)
Existing Work Failed (os error 2) Failed d2e816bf… (no longer exists)
Newly created Work Success (returned []) Failed 61a4314c… (live)

The current ~/.codex/config.toml already pointed to the live pipe at the time of this comparison. However, the old Work tool process still had the old UUID in its environment.

The stale value also appears in a historical generated configuration:

executor-plugins/unified-computer-use/<old-hash>/.mcp.json

The old Work thread appears to retain the older materialized plugin snapshot, whereas the new Work thread receives a current snapshot. The desktop logs show that the native-pipe UUID changes on app restart.

Process and log inspection also distinguished the execution hosts:

  • Codex: local codex app-server, hostId=local.
  • Work: codex exec-server --remote … --environment-id [redacted], associated with hostId=durable.

Both the successful new Work browser probe and the failing old Work probe used the elevated Windows sandbox mode. Therefore, that mode alone does not explain the browser failure.

In a controlled diagnostic attempt, updating the historical snapshot to the live UUID and recreating the executor caused a newly started tool process for the old thread to receive the correct UUID. However, cua_repl was subsequently not exposed in that conversation, so I could not verify a successful end-to-end recovery. The edited snapshot was restored from backup. This is not a validated workaround.

Troubleshooting already performed

  • Full desktop app restarts and Windows restart.
  • Windows Settings > Apps > Repair, completed after temporarily stopping the packaged Codex Sandbox service that was keeping the app in use. The service was restored; the original issue persisted.
  • Comparing old Work, new Work and local Codex on the same installation.
  • Inspecting live pipe names, generated plugin snapshots and actual process environment values.

Other observations (not established as the same bug)

  • Both old and newly created Work conversations fail a minimal node_repl call with Managed execution requires a usable CODEX_CLI_PATH; Codex succeeds. This is independently reproducible even when the new Work browser probe succeeds. Related: #63315.
  • Typing /mcp returns no results in any tested Work conversation, but returns results in Codex. I do not know whether this difference is intentional.
  • The highest reasoning-effort options are missing in Work compared with Codex. It is unclear whether this is expected mode-specific behavior.
  • Cold startup of the Local environment sometimes fails. The Primary Runtime package reports NotAvailable and Windows AppX logs contain deferred removal failures (0x80073D02), although a Node process was observed running from that runtime directory. No causal link to the stale-pipe failure has been established.

Requested fix

Please investigate whether restoring a durable Work thread reuses an executor-plugin snapshot containing desktop-launch-specific native-pipe metadata, rather than refreshing that metadata against the current local executor.

Is there a supported way to rebind Computer Use and refresh the tool registration for an existing Work conversation, without deleting its history? Ideally, reconnecting after desktop restart should happen automatically.

Related reports: #41453 (rotated pipe UUID), #48079 (live pipe and current global configuration match despite failure), #59114 (same native-pipe error). This report adds direct tool-process environment evidence and the historical executor-plugin snapshot for the Work-specific restart scenario.

Sanitized diagnostic logs can be provided if needed.

EnderMan8888 avatar Nov 24 '26 13:11 EnderMan8888

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #62546
  • #62412

Powered by Codex Action

github-actions[bot] avatar Nov 24 '26 13:11 github-actions[bot]

I reviewed both potential duplicates, #62546 and #62412.

While they describe similar symptoms involving loss of browser or Computer Use functionality in existing conversations, neither identifies the stale Windows native-pipe UUID retained in a cached executor-plugin snapshot.

This report provides additional diagnostic evidence:

  • Direct inspection of the affected tool process's environment variables.
  • Confirmation that the retained pipe UUID no longer exists.
  • Identification of the historical .mcp.json snapshot containing the stale UUID.
  • Controlled comparisons between existing Work, newly created Work, and local Codex conversations.
  • Reproduction after both desktop application restart and Windows reboot.

These issues may share an underlying session-restoration defect, but the available evidence does not establish that they are duplicates. I will keep this issue open for now unless a maintainer determines otherwise.

EnderMan8888 avatar Nov 24 '26 13:11 EnderMan8888

Update: the failure is associated with web-visible (synced) Work conversations, not Work mode in general

Further comparisons on the same Plus account, Windows installation and desktop build 26.1120.5083.0 revealed a previously overlooked control group: existing Work conversations that are not visible on the web.

Capability Existing web-invisible Work Tested web-visible Work
/mcp Returns results No results
Minimal node_repl.write probe (nodeRepl.write("OK")) Succeeds Managed execution requires a usable CODEX_CLI_PATH
await cua.listTabs({ browser: "iab" }) Succeeds Existing affected chats fail after restart; newly created chats initially succeed
Ultra reasoning effort Available Absent
Approve for me / Request approval Available Absent

This narrows the scope of the original report: the tested web-visible Work conversations use the durable exec-server host, while the tested local Codex conversation uses app-server. The working web-invisible Work conversations have not yet been independently classified by process host. The table reports observed capabilities, not a proven common root cause.

A further project-level observation: a newly created desktop project bound to a local directory automatically acquired a cloud project ID (g-p-…). Removing its desktop project binding did not delete the web project. An older project has no cloud project ID. Creating Work with Local selected inside the new local-directory-bound project still used exec-server: Computer Use initially succeeded, but the minimal Node REPL probe failed.

These observations are consistent with the distinction described in the Local Work Sync documentation, which describes cloud coordination of new synced tasks while existing tasks retain their original mode. Whether this rollout is the actual trigger, and whether all capability differences are intentional, remain unconfirmed.

The stale native-pipe UUID remains a directly evidenced defect in the tested durable Work conversations. Please investigate whether the synced Work session-restoration path retains launch-specific executor-plugin metadata instead of refreshing it. The separate managed-execution failure is tracked in #63315.

I would also appreciate clarification on whether individual Plus users have a supported way to create local-only Work conversations/projects, disable Local Work Sync, or convert a cloud-managed project back to local-only without losing its existing conversations or project associations. No additional cache or configuration changes were made for this comparison.

EnderMan8888 avatar Nov 24 '26 15:11 EnderMan8888

Additional reproduction on Windows 11, desktop package 26.1120.6357.0, on 26 November 2026.

Browser control repeatedly fails in an existing Work conversation, interrupting daily work. The user reports the failure after a fresh machine startup.

Plugins are enabled. The configured control endpoint exists and matches Windows’ live endpoint. The bundled CLI launches successfully. Nevertheless, control-session startup fails with “native pipe … file not found (os error 2)”, and Node execution reports “Managed execution requires a usable CODEX_CLI_PATH”. Resetting the control session did not help.

The running tool-process environment could not be inspected, so the stale-snapshot cause remains unconfirmed.

Please provide a supported way to reconnect the existing conversation without losing its history, and investigate a persistent fix.

Tony-Beas avatar Nov 26 '26 10:11 Tony-Beas

Additional reproduction on 26 November 2026 in a ChatGPT Work conversation on Windows:

  • Native Computer Use had controlled Chrome and Clipchamp successfully for about 20 minutes.
  • A later cua.getApp attempt for the Chrome window was stopped by the Computer Use tool with: “could not determine the current browser URL on Windows with enough confidence to enforce policy.”
  • On subsequent turns, cua.getState() and a fresh CUA session reset returned: Computer Use native pipe is unavailable: failed to connect native pipe: The system cannot find the file specified (os error 2).
  • The browser-runtime fallback returned Managed execution requires a usable CODEX_CLI_PATH.
  • Resetting the CUA JavaScript session did not restore the existing conversation’s connection.

This adds a policy-stop event preceding the same stale/missing native-pipe failure. Please provide a supported way to rebind Computer Use in an existing Work conversation and recover after a browser-URL confidence stop, without losing the thread.

claudiogaloxha-prog avatar Nov 26 '26 15:11 claudiogaloxha-prog

Independent reproduction on Windows 11 x64 (build 22621), ChatGPT/Codex desktop MSIX 26.1120.6357.0, bundled CLI 0.171.0-alpha.13.2, observed 2026-11-27 00:54 UTC+8.

In this existing Work conversation, await cua.getState() repeatedly fails with Computer Use native pipe is unavailable: failed to connect native pipe: 系统找不到指定的文件。 (os error 2). Resetting the CUA JS kernel and retrying did not change the result. The separate node_repl initialization fails with Managed execution requires a usable CODEX_CLI_PATH.

The generated ~/.codex/config.toml has SKY_CUA_NATIVE_PIPE_DIRECTORY set to the named pipe visible in the local Windows pipe namespace. CODEX_CLI_PATH is present in the tool configuration, points to an existing executable, and that executable successfully returns its version from a normal local shell. The native computer-use helper process is running. Thus the live local configuration and files appear valid, while the resumed Work tool calls cannot use them. I could not inspect the tool-process environment, so I cannot confirm whether this occurrence has the same stale executor snapshot mechanism.

Please provide a supported reconnection path for an existing Work conversation; moving to a new thread would lose the active task context.

452excalibur452-max avatar Nov 26 '26 16:11 452excalibur452-max

Reproduced on Windows desktop, Microsoft Store package version 26.1120.6357.0, in an existing Work conversation on 2026-11-26.

The observed failures are:

  • In-app browser create/get-state: Computer Use native pipe is unavailable: failed to connect native pipe: [The system cannot find the file specified] (os error 2). The bracketed text translates the local Windows error.
  • Managed JavaScript runtime: Managed execution requires a usable CODEX_CLI_PATH.
  • Supported right-panel browser-opening tool: Mcp error: -32000: Codex app tool request failed.

Resetting the browser runtime, resetting the JavaScript runtime, and fully exiting/restarting the desktop application did not restore access in the existing conversation. Shell commands and connected GitHub/Vercel tools still work. Desktop startup logs report the browser-use and computer-use native services ready/listening.

This is consistent with the symptoms reported here, but we have not independently established stale snapshot UUIDs as the cause in this installation. A new Work conversation has not yet been tested. Could the team provide a supported way to rebind browser control for an existing conversation without losing its history?

No private transcripts, credentials, raw logs, source code, account email, or identifying local paths are included.

vitaliymmm11-star avatar Nov 26 '26 18:11 vitaliymmm11-star

Follow-up to my earlier report: https://github.com/openai/codex/issues/63642#issuecomment-7200058015

On 2026-11-26, browser control was successfully tested in a separate, newly started conversation on the same user's Windows desktop:

let tab = await cua.createBrowserTab("iab", "https://example.com", { visible: true });
await tab.markDeliverable();

The tool successfully opened the visible in-app browser, returned URL https://example.com/, title Example Domain, and the page accessibility tree. Marking the tab as a deliverable also succeeded.

This provides the previously missing new-conversation comparison: the earlier conversation repeatedly failed as described above, while this new conversation can open and read the in-app browser. We have not retested the affected old conversation since this successful check, so this does not establish that it has recovered or that the issue is fixed. We have also not independently established a stale native-pipe UUID as the root cause.

The failure interrupted ongoing browser-based work and required switching conversations. Please investigate session-specific browser/tool reconnection and provide a supported way to restore an affected conversation without losing its history. A clear reconnect action and an actionable connection error would also help.

Only the sanitized symptoms and minimal test result are shared here; no private conversation, business data, credentials, raw logs, or identifying local paths are attached.

vitaliymmm11-star avatar Nov 26 '26 18:11 vitaliymmm11-star

Additional report from my Windows session (26 November 2026):

I am seeing the same symptoms described in this issue. In an existing ChatGPT Work conversation, Computer Use fails before it can inspect or control the screen and returns:

Computer Use native pipe is unavailable: failed to connect native pipe: Nie można odnaleźć określonego pliku. (os error 2)

Resetting the CUA session and retrying did not restore control. The symptoms look like the same bug as this issue, although I cannot independently confirm the underlying cause. Could the maintainers confirm whether this is the same failure and advise how to restore Computer Use in an existing conversation without losing its history?

Reproduction le 27 novembre 2026 dans ChatGPT Work sous Windows. Après redémarrage du PC et relance de l’application, le contrôle navigateur échoue avec « Computer Use native pipe is unavailable […] Le fichier spécifié est introuvable. (os error 2) ».

La réinitialisation du contrôle et une nouvelle relance ne rétablissent pas la connexion. Avant le redémarrage, l’assistant pouvait contrôler la page, mais le panneau utilisateur restait vide avec « onglet non disponible ».

Merci de fournir une procédure de reconnexion conservant l’historique de la conversation. La cause exacte reste à vérifier.

vsmotoracing-tech avatar Nov 27 '26 10:11 vsmotoracing-tech

Additional independent reproduction on Windows, November 28, 2026. The failure also occurs in newly created Work conversations in this case.

Environment

  • Desktop MSIX: OpenAI.Codex 26.1120.6357.0
  • Primary Runtime: 26.1123.915.0
  • Bundled Chrome plugin cache version: 26.1120.50957
  • No desktop update offered in Microsoft Store at time of testing.

Observed behavior Local Chrome automation worked on November 27 and stopped working on November 28. Desktop Work fails before contacting Chrome. A minimal managed-execution check that did not involve Chrome reproduced:

Managed execution requires a usable CODEX_CLI_PATH

Differential test on the same computer and Chrome installation

Execution mode Local Chrome tab-list request
ChatGPT Web, Work, explicit Chrome integration Success (six tabs)
ChatGPT Desktop, Work, existing and new conversations Failure
ChatGPT Desktop, Codex, new local conversation Success (four tabs at the later test)

The Chrome extension is recognized and enabled in desktop Computer Use settings. Windows native messaging registry entry and manifest exist, the configured native host executable path exists, and the Chrome plugin cache's latest junction resolves. These are existence checks, not proof of correct runtime initialization.

Restarting the desktop app, toggling Chrome integration, signing out, rebooting Windows, and signing back in did not restore Work. Switching to Codex did. No manual registry edits or CLI-path overrides were made as part of these tests.

Request Please investigate the Work-specific managed runtime initialization/CLI-path handoff and provide a supported fix that preserves existing conversations. This case supports a mode-specific failure, but does not independently establish that stale native-pipe snapshots are its root cause. Codex and web Work are usable temporary workarounds; desktop Work remains broken.

No account details, local identifying paths, private project content, or raw logs are included.

MHS-4ever avatar Nov 28 '26 09:11 MHS-4ever

I can reproduce the same issue on Windows.

Computer Use works normally when I create a new Work chat. After the session ends and I return to the same chat later, Computer Use no longer reconnects and fails with:

Computer Use native pipe is unavailable: failed to connect native pipe: The system cannot find the file specified. (os error 2)

Creating another new chat immediately restores Computer Use, but returning to the affected chat does not. This has happened repeatedly, so the failure appears to be tied to resuming an existing conversation rather than to Computer Use being unavailable globally.

Resetting the Computer Use session does not restore access in the affected chat.

unicornalien avatar Nov 28 '26 13:11 unicornalien

I can reproduce this on Windows with ChatGPT Plus in Work mode. I have two older local projects, “Bewerbung und Struktur” and “Buchuniversum,” that only appear in the Windows client. Chrome access continues to work in both after shutting down and starting the PC again.

I created a newer project, “Spiele,” in the Windows client and attached E: as its local source folder. The project settings identify it as a local project. Chrome access worked on the day I created it. After shutting down the PC and starting it again the following day, the existing Work conversation failed with Computer Use native pipe is unavailable (Windows OS error 2). Starting a new Work conversation in the same project restored Chrome access for that day. After the next shutdown and startup, the replacement conversation failed too. This has happened twice, while Chrome access in my older projects continued to work.

Unlike my older local projects, “Spiele” and the affected conversation also appear on chatgpt.com. I opened the same conversation there and successfully read the existing AirlineSim tab through the Chrome extension. Returning to that conversation in the Windows client reproduced the failure, even when testing an unrelated website. Restarting Chrome or fully closing and reopening the desktop app did not restore access.

Could you check whether this is related to how web-visible Work conversations reconnect to the local browser after startup? Is there a supported way to restore Chrome access in an existing Windows Work conversation while preserving its history?

SpeedysGames avatar Nov 29 '26 14:11 SpeedysGames

Additional reproduction on Windows, 30 November 2026, including a successful comparison using the same existing conversation on ChatGPT Web.

Environment

  • Desktop app 26.1120.50957, build 30866, prod; Windows package 26.1120.6357.0; bundled browser runtime 26.1120.50957. The configured updater reports up_to_date.
  • Chrome and Edge are enabled in Computer Use settings, both show Manage, and their extensions are installed.

Observed behavior

  1. The existing Work fails before creating or inspecting a tab with Computer Use native pipe is unavailable ... (os error 2).
  2. CUA JS reset, direct built-in/Chrome/Edge selection, an explicit Browser plugin mention, and fully quitting and reopening the desktop app did not restore control.
  3. Opening the same Work conversation on ChatGPT Web and sending the request there succeeded. Its browser.js tool created a PC Chrome extension tab, opened the requested HTTPS login page, and read the actual URL, title and visible headings. Returning to desktop exposes cua_repl instead of that working browser.js tool and reproduces the failure. No new conversation or model change was used.
  4. A minimal generic Node REPL call also fails before executing its code with Managed execution requires a usable CODEX_CLI_PATH.

Runtime and cached configuration comparison

A read-only comparison of the already-running CUA helper processes found that the local app-server child uses the current native-pipe prefix, which exists. The exec-server child uses a different prefix that does not exist, despite having started after the desktop restart. Both have the same valid bundled CLI path.

The affected helper's actual working directory identifies a historical executor-plugins/unified-computer-use/<snapshot> directory. Its .mcp.json contains the stale prefix. Comparing that file with the current installed plugin configuration found exactly one differing JSON field: mcpServers.cua_repl.env.SKY_CUA_NATIVE_PIPE_DIRECTORY. All other configuration fields match. On this MSIX installation, the actual file was under the package's redirected LocalCache location rather than the ordinary Roaming path.

Only allowlisted, non-secret runtime fields were inspected. No credentials or raw environment dumps are included here.

Recovery experiment — not a verified workaround

We backed up that cached configuration and refreshed only the stale endpoint field to the current official value. All other bytes, launch commands, permissions, confirmation policies and authentication were preserved. The refreshed file matched the current installed configuration, but already-running helpers retained their old environment. After stopping only the failed CUA helper while the Work was idle, a fresh turn in the same conversation returned Transport closed; the managed connection did not automatically recreate the helper. Desktop browser recovery has therefore not been demonstrated. The original cached configuration was subsequently restored from the verified backup; the experiment is not being left in place.

The documented config/mcpServer/reload API exists, but neither the affected Work nor the available app task-management tools expose a supported connection for applying it to this existing Work. Reloading a separate app-server process would not establish that this Work was repaired.

Please provide a supported way to reload the existing Work's tool registration and recreate its managed desktop connection with the current native-pipe binding, while preserving its conversation and project. Please also clarify whether cached executor-plugin endpoints should be rebound automatically after restart. The successful Web route is a temporary workaround; it does not resolve the desktop failure.

This comment intentionally omits private conversation names and IDs, account details, business URLs, identifying local paths, process IDs, actual pipe UUIDs, credentials, screenshots and raw logs.

AI-EastBreeze avatar Nov 30 '26 06:11 AI-EastBreeze

ChatGPT desktop for Windows, version 26.1120.6357.0, in an existing Work conversation.

Opening the built-in browser returned Computer Use native pipe is unavailable: failed to connect native pipe: The system cannot find the file specified. (os error 2). The alternate desktop controller returned Managed execution requires a usable CODEX_CLI_PATH.

Both errors occurred again after a full Windows reboot, reopening the desktop app, and returning to the same conversation.

mariafrisch avatar Dec 02 '26 03:12 mariafrisch