Skip to content

Windows Codex app Chrome plugin fails with CreateProcessAsUserW failed: 5 #27792

Closed

Description

@old4693000-byte

Windows Codex app Chrome plugin fails with CreateProcessAsUserW failed: 5

Summary

On Windows, @chrome cannot list or access current Chrome tabs. The Codex Chrome Extension appears installed and enabled, and the Native Messaging Host manifest/registry checks pass, but the Chrome plugin runtime fails before browser automation starts.

Environment

  • OS: Windows
  • Surface: Codex desktop app
  • Plugin: Chrome plugin / Codex Chrome Extension
  • Chrome detected: Google Chrome 149.0.7827.104
  • Chrome executable: C:\Program Files\Google\Chrome\Application\chrome.exe
  • Codex Chrome Extension ID: hehggadaopoacecdllhhajmbjkdcmajg
  • Codex Chrome Extension version: 1.1.5_0
  • Selected Chrome profile: Default

User-visible problem

Prompt:

@chrome 撟急???冽?撟曉�???```

Expected:

Codex should connect to the user's Chrome profile and count/list open tabs.

Actual:

Codex cannot connect to Chrome. The Node/browser runtime exits unexpectedly.

## Error

```text
node_repl kernel exited unexpectedly
node_repl diagnostics:
{
  "kernel_status": "running",
  "kernel_stderr_tail": "windows sandbox failed: runner error: CreateProcessAsUserW failed: 5",
  "reason": "stdout_eof"
}

Diagnostics already checked

Installed browsers:

{
  "platform": "win32",
  "installed_browsers": [
    {
      "name": "Google Chrome",
      "command": "chrome",
      "path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
      "version": "149.0.7827.104"
    }
  ]
}

Chrome extension check:

{
  "extensionId": "hehggadaopoacecdllhhajmbjkdcmajg",
  "userDataDirectory": "C:\\Users\\Jiang\\AppData\\Local\\Google\\Chrome\\User Data",
  "selectedProfileDirectory": "Default",
  "installed": true,
  "enabled": true,
  "profiles": [
    {
      "profileDirectory": "Default",
      "installed": true,
      "registered": true,
      "enabled": true,
      "disabled": false,
      "disableReasons": [],
      "versions": ["1.1.5_0"],
      "selected": true
    }
  ],
  "exitCode": 0
}

Native Messaging Host check:

{
  "manifestPath": "C:\\Users\\Jiang\\AppData\\Local\\OpenAI\\extension\\com.openai.codexextension.json",
  "registryKey": "HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts\\com.openai.codexextension",
  "registryManifestPath": "C:\\Users\\Jiang\\AppData\\Local\\OpenAI\\extension\\com.openai.codexextension.json",
  "expectedHostName": "com.openai.codexextension",
  "actualHostName": "com.openai.codexextension",
  "expectedExtensionId": "hehggadaopoacecdllhhajmbjkdcmajg",
  "expectedOrigin": "chrome-extension://hehggadaopoacecdllhhajmbjkdcmajg/",
  "allowedOrigins": ["chrome-extension://hehggadaopoacecdllhhajmbjkdcmajg/"],
  "exists": true,
  "nameMatches": true,
  "hasExpectedOrigin": true,
  "registryMatchesManifestPath": true,
  "correct": true,
  "problem": null
}

Additional local signal:

Running `codex --version` from the Codex workspace PowerShell failed with:
'codex.exe' cannot be run: Access denied.

This may be related to the same Windows process/sandbox permission failure.

Already tried

  • Confirmed the Codex Chrome Extension is enabled
  • Restarted Chrome
  • Restarted/reinstalled Codex
  • Reinstalled/checked the Chrome plugin
  • Verified the Native Messaging Host manifest and registry entry pass diagnostics

Request

Please investigate why the Codex app's Chrome plugin runtime fails on Windows with:

windows sandbox failed: runner error: CreateProcessAsUserW failed: 5

even when the Chrome extension and native messaging host checks pass.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Jun 12, 2026
  2. old4693000-byte commented on Jun 12, 2026

    @old4693000-byte
    Author

    Small correction: the user-visible prompt in the issue body was mojibake.

    The original prompt was:

    @chrome 幫我看現在有幾個分頁

    Equivalent English:

    @chrome count current Chrome tabs

    The main failure is still the same: the Node/Chrome plugin runtime exits with CreateProcessAsUserW failed: 5 even though the Chrome extension and Native Messaging Host checks pass.

  3. buckaroo54 commented on Jun 12, 2026

    @buckaroo54

    I’m seeing what appears to be the same issue on Windows Codex Desktop.

    Chrome plugin and Computer Use are installed/enabled, and the Chrome extension reports as connected, but both Chrome control and Computer Use fail before startup with this error:

    node_repl kernel exited unexpectedly
    windows sandbox failed: runner error: CreateProcessAsUserW failed: 5

    This happens when trying to initialize the Chrome extension runtime and also when trying to initialize Computer Use. Normal shell/file operations in Codex work, and OneDrive write escalation now works, so this seems specific to the Node/browser/Computer Use helper startup path rather than general local command execution.

    Environment:

    • Windows: Windows 11 Home, Version 25H2, OS Build 26200.8457, Windows Feature Experience Pack 1000.26100.304.0
    • Codex Desktop: 26.609.30741
    • Chrome extension: installed and connected
    • Plugins: Chrome and Computer Use installed/enabled
  4. old4693000-byte commented on Jun 13, 2026

    @old4693000-byte
    Author
  5. Kitsuneko0v0 commented on Jun 17, 2026

    @Kitsuneko0v0

    遇到了同样的问题
    一番尝试后,发现在config.toml中把sandbox=elevated改成sandbox=unelevated后,codex成功连接上了chrome上的codex插件,功能恢复正常。
    但是作为非程序员,我并不清楚这个操作是否安全

  6. old4693000-byte commented on Jul 10, 2026

    @old4693000-byte
    Author

    Update: this is working for me now.

    What changed:

    • Chrome plugin was updated and the required browser-client.mjs file is present again.
    • I changed the Windows sandbox setting in config.toml from sandbox = "elevated" to sandbox = "unelevated".
    • After restarting Codex, @chrome can connect to Chrome and list open tabs successfully.

    I’m closing this from my side as resolved. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbrowserbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions