Bug: Computer Use plugin fails to initialize on Windows due to @oai/sky package exports error
Summary
The Codex desktop app on Windows cannot initialize the bundled Computer Use plugin. The failure happens before Codex can call sky.list_apps(), so Windows app automation is unavailable. This prevents launching Docker Desktop through [@Computer](plugin://computer-use@openai-bundled).
Environment
- Codex desktop app version:
0.140.0 - OS/platform: Windows desktop
- Shell environment used for local checks: PowerShell
- Computer Use plugin:
openai-bundled/computer-use - Computer Use plugin version:
26.611.61753 - Affected runtime package:
@oai/sky - Runtime path pattern:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky
Exact error
Package subpath './dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js' is not defined by "exports" in C:\Users\retou\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\package.json
When it happens
The error occurs while initializing the Computer Use runtime through the documented plugin bootstrap path:
if (!globalThis.sky) {
const { setupComputerUseRuntime } = await import(
"C:/Users/retou/.codex/plugins/cache/openai-bundled/computer-use/26.611.61753/scripts/computer-use-client.mjs"
);
await setupComputerUseRuntime({ globals: globalThis });
}
globalThis.apps = await sky.list_apps();
The failure happens before sky.list_apps() is reached. As a result, globalThis.sky is not usable and no Computer Use API calls can be made.
Impact
The following Computer Use functionality is unavailable:
sky.list_apps()sky.launch_app(...)sky.list_windows()sky.get_window_state(...)- Any click, keyboard, screenshot, accessibility-tree, or app-control action through Computer Use
The immediate user-facing failure is that Docker Desktop cannot be launched through the Computer Use plugin.
Steps to reproduce
- Start Codex desktop app
0.140.0on Windows. - Ask Codex to launch Docker Desktop through
[@Computer](plugin://computer-use@openai-bundled). - Codex loads the Computer Use skill instructions.
- Codex attempts to import and run
setupComputerUseRuntimefrom:
%USERPROFILE%\.codex\plugins\cache\openai-bundled\computer-use\26.611.61753\scripts\computer-use-client.mjs
- Initialization fails with the
@oai/skypackage exports error shown above. sky.list_apps()is never reached.- Docker Desktop is not launched through the plugin.
Expected behavior
The Computer Use plugin should initialize successfully, expose a working globalThis.sky, and allow:
await sky.list_apps();
After that, Codex should be able to find Docker Desktop in the app list and launch it through:
await sky.launch_app({ app: targetApp.id });
Actual behavior
Computer Use initialization fails immediately with a Node package exports error from the bundled @oai/sky runtime. No usable sky client is available afterward, so Computer Use cannot control Windows apps at all.
Troubleshooting already attempted
- Retried the documented Computer Use bootstrap.
- Reset the Node REPL kernel and retried.
- Rebooted the machine and retried.
- Confirmed Codex desktop app version now reports
0.140.0after reboot. - Retried the Docker Desktop launch through Computer Use after the reboot.
- The same error still occurs.
Important observation
This does not appear to be a Docker Desktop issue. Docker Desktop can be launched directly through Windows, and Docker-related processes are visible afterward. The failure occurs earlier, during Computer Use runtime initialization, before Codex can enumerate or select any Windows application.
Likely technical cause
The Computer Use plugin or computer-use-client.mjs appears to import this internal @oai/sky subpath:
./dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js
Node rejects that import because the subpath is not listed in the exports field of the bundled @oai/sky/package.json.
This looks like a packaging or version mismatch between:
openai-bundled/computer-useversion26.611.61753- the bundled
@oai/skyruntime package shipped under the Codex app runtime directory
Workaround
Direct Windows launch works outside Computer Use:
Start-Process -FilePath 'C:\Program Files\Docker\Docker\Docker Desktop.exe'
That workaround confirms Docker Desktop is installed and runnable, but it bypasses the affected Codex Computer Use plugin path.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗