Computer Use 1.0.1000451 cannot load @oai/sky because nodeRepl.env is empty on macOS 26
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, node.js
Research direction
Start with the plugin-owned scripts/computer-use-client.mjs and reproduce the documented setupComputerUseRuntime() bootstrap, then inspect how it reads NODE_REPL_NODE_MODULE_DIRS from nodeRepl.env. Compare that with the registered path reported by js_add_node_module_dir and the bundled @oai/sky location in the ChatGPT application. Done means the wrapper loads @oai/sky and sky.list_apps() or get_app_state() executes on macOS.
Written by the indexing model from the issue text.
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.715.52143 (5591)
Computer Use plugin: 1.0.1000451
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.5.0 arm64 arm
macOS 26.5.1 (25F80), Apple Silicon
What issue are you seeing?
The bundled Computer Use plugin cannot initialize. Every Computer Use operation fails before accessing the target application because the plugin wrapper cannot locate the bundled @oai/sky runtime.
The runtime is installed inside the ChatGPT application bundle, but nodeRepl.env is an empty immutable object. Consequently, computer-use-client.mjs receives no NODE_REPL_NODE_MODULE_DIRS, creates an empty search-root list, and throws:
Computer Use could not load @oai/sky from the cua_node runtime
This reproduces with sky.list_apps() and when targeting Safari or Google Chrome. The failure occurs before application permissions or UI access are evaluated.
Diagnostic output from the running Node REPL:
{
"env": {},
"envExtensible": false,
"nodeReplEnvDescriptor": {
"value": {},
"writable": false,
"enumerable": true,
"configurable": false
}
}
The required runtime does exist at:
/Applications/ChatGPT.app/Contents/Resources/cua_node/lib/node_modules/@oai/sky/dist/project/cua/sky_js/src/targets/mac/create_client.js
The plugin-owned wrapper is installed at:
$HOME/.codex/plugins/cache/openai-bundled/computer-use/1.0.1000451/scripts/computer-use-client.mjs
No PII, credentials, or access tokens are included in this report.
What steps can reproduce the bug?
- On an Apple Silicon Mac, install and enable the bundled Computer Use plugin.
- Enable its MCP server and skill.
- Grant the Codex/ChatGPT desktop app Screen Recording and Accessibility permissions.
- Restart the desktop app and open a fresh Codex task.
- Invoke
@Computerand ask it to list the available applications, or run the documented plugin bootstrap:
if (!globalThis.sky) {
const { setupComputerUseRuntime } = await import(
"$HOME/.codex/plugins/cache/openai-bundled/computer-use/1.0.1000451/scripts/computer-use-client.mjs"
);
await setupComputerUseRuntime({ globals: globalThis });
}
await sky.list_apps();
- Observe the initialization error:
Computer Use could not load @oai/sky from the cua_node runtime
Troubleshooting already performed:
- Restarted the desktop app multiple times.
- Verified that Computer Use, its MCP server, and its skill are enabled.
- Tested both Safari and Google Chrome.
- Verified that the
@oai/skyruntime exists in the application bundle. - Verified that the runtime's
node_modulesdirectory is already registered withjs_add_node_module_dir. - Added another registered
node_modulespath;nodeRepl.envremained empty. - Confirmed that
nodeRepl.envcannot be modified because it is frozen and non-writable.
Session ID: not applicable / not available.
Token-limit and context-window usage: not relevant; the failure occurs during tool runtime initialization.
What is the expected behavior?
setupComputerUseRuntime() should locate the bundled @oai/sky runtime, initialize globalThis.sky, and allow list_apps() and get_app_state() to execute.
The Node REPL should expose its registered module roots through NODE_REPL_NODE_MODULE_DIRS, or the Computer Use wrapper should obtain them through another supported Node REPL API.
Additional information
This appears related to #26190, which reports missing NODE_REPL_NODE_MODULE_DIRS and failed @oai/sky resolution on Windows. This report covers the same failure class on macOS with a newer desktop and Computer Use plugin build.
The Node REPL internally knows the module directory: calling js_add_node_module_dir with the ChatGPT-bundled cua_node/lib/node_modules directory reports that it is already registered. However, that registration is not reflected in the immutable nodeRepl.env object consumed by computer-use-client.mjs.
There is no documented workaround because the Computer Use skill requires loading @oai/sky through the plugin-owned wrapper rather than importing the package directly.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·