Repository navigation
Closed
Labels
appIssues related to the Codex desktop appbrowserbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Description
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.
Reacted by Alan Gray
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appbrowserbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Jun 12, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
old4693000-byte commentedon Jun 12, 2026
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: 5even though the Chrome extension and Native Messaging Host checks pass.buckaroo54 commentedon Jun 12, 2026
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 unexpectedlywindows sandbox failed: runner error: CreateProcessAsUserW failed: 5This 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:
old4693000-byte commentedon Jun 13, 2026
Kitsuneko0v0 commentedon Jun 17, 2026
遇到了同样的问题
一番尝试后,发现在config.toml中把sandbox=elevated改成sandbox=unelevated后,codex成功连接上了chrome上的codex插件,功能恢复正常。
但是作为非程序员,我并不清楚这个操作是否安全
old4693000-byte commentedon Jul 10, 2026
Update: this is working for me now.
What changed:
browser-client.mjsfile is present again.config.tomlfromsandbox = "elevated"tosandbox = "unelevated".@chromecan connect to Chrome and list open tabs successfully.I’m closing this from my side as resolved. Thanks.