Repository navigation
fix(windows): isolate Desktop tool helpers and restore proxy inheritance - #163
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 43e0f91c30
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if let Some(wrapper) = | ||
| managed_node_repl_override(&shim_path, std::env::var_os("CODEX_NODE_REPL_PATH")) | ||
| { | ||
| environment.push((OsString::from("CODEX_NODE_REPL_PATH"), wrapper)); |
There was a problem hiding this comment.
Preserve custom node REPL overrides for packaged Desktop
When CODEX_NODE_REPL_PATH names a user-selected runtime, managed_node_repl_override returns None, so this conditional adds no value to the environment block passed to activate_packaged_desktop. AppX launches do not inherit the launcher's process environment, meaning the explicit custom runtime is lost instead of preserved as documented; forward the existing value while substituting the bundled wrapper only when no custom override is present.
AGENTS.md reference: AGENTS.md:L64-L66
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 83f723f. Custom CODEX_NODE_REPL_PATH values (including an explicit empty value) are now returned and included in the AppX activation environment instead of being omitted. Added an isolated-process regression that exercises managed_desktop_environment and the final UTF-16 Windows environment block, covering a custom path with spaces/non-ASCII characters and an empty value. The test failed before the fix with no matching environment entry and passes after it; existing default-wrapper and old-wrapper replacement tests also pass. Local format, lint, typecheck, full TypeScript tests (2309 passed, 18 skipped), and check:rust all passed. No running Desktop, user configuration, or installed candidate was changed for this follow-up.
Summary
Fix two Windows subprocess compatibility boundaries affecting Browser Use / Chrome Control and native Computer Use under a managed Codex Desktop launch.
codexhost-node-repl.exeproxy and select it through Desktop's supportedCODEX_NODE_REPL_PATHoverride. Preserve a user-selected custom runtime and resolve the official runtime only next to Desktop's explicitNODE_REPL_NODE_PATH.Evidence and diagnosis
On the unchanged 0.5.0 Windows installation:
codex app-server exited before returning response 1. Its auxiliary app-server inherited Host bootstrap variables. A controlled official CLI initialization probe with the same routing environment reproducedSTORE_LOCKED/Another codexhost process owns Mapping Store. The new shim initialized the official app-server successfully under the same conditions. Direct Desktop routing remains covered by integration tests.nodeRepl.fetch request failed, page-state timeouts, orDebugger unattached. The official MCP launcher filters inherited environment variables.fetchis not treated as an equivalent test.These protocol/network results establish the fixed boundaries. They do not yet establish that every live browser debugger error has the same cause.
Safety and scope
Validation
npm run format:checknpm run lintnpm run typechecknpm run test:typescript— 2309 passed, 18 skippednpm run check:rust— formatting, Clippy with warnings denied, full workspace tests0.5.0-pr163.43e0f91.1, installed into a new side-by-side candidate directory; launcher, shim, tool wrapper, Host Runtime, controller, and renderer hashes match the release payloadPost-restart native-tool status
The user restarted into the packaged PR163 candidate. Official
@oai/skyapp/window enumeration, Calculator launch, target selection, activation, and foreground screenshot capture now succeed; the prior app-server early-exit failure did not recur. Initial inputs were rejected by the normal user-input detection guard. After the user explicitly resumed testing with a quiet foreground window, normal screenshot-grounded clicks on 2, +, 3 and a Return keypress succeeded. Fresh screenshots after each action verified the intermediate states and final 2 + 3 = 5 result. The guard was not disabled or bypassed. The primary Host Runtime and Mapping Store owner remained unchanged after the input test.Known limitations remain: Calculator accessibility was null, and captures while Calculator was covered showed the covering foreground window rather than an unobscured Calculator. Foreground screenshot-based control is verified; unobscured background capture and accessibility-based native input are not claimed as fixed. Their cause has not been attributed to CodexHost by a controlled comparison, and this PR does not patch the official native helper.
All four GitHub CI jobs passed (Windows, macOS, Ubuntu x64, Linux ARM64). Ready for review of the scoped helper-routing/proxy-inheritance fix, with the native capture/accessibility limitations above explicitly retained. No signed app/runtime, machine configuration, or safety guard was changed during post-restart testing.