Bug report: Computer Use fails on Windows because @oai/sky does not export an internal subpath

Open 💬 1 comment Opened Jun 17, 2026 by aidawilliam41-ops

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.611.61753 • Released Jun 17, 2026

What subscription do you have?

yes

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Computer Use fails to initialize on Windows because the bundled computer-use-client.mjs imports an internal @oai/sky subpath that is not exported by @oai/sky/package.json.

Full error message:

Package subpath './dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js'
is not defined by "exports" in
C:\Users\<USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\<RUNTIME_ID>\bin\node_modules\@oai\sky\package.json
The failing import in the bundled Computer Use client is:
import { WindowsComputerUseClientBase } from "@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js";
The target file exists on disk, but the original package.json only exports the root entrypoint:
"exports": {
  ".": "./dist/project/cua/sky_js/src/index.js"
}
Because Node enforces package exports, the internal subpath import is rejected before Computer Use can start. The failure happens during bootstrap, before sky.list_apps() runs.
Expected behavior: Computer Use should initialize successfully and return available Windows apps/windows.
Locally verified workaround: adding this subpath to package.json fixes the issue:
"exports": {
  ".": "./dist/project/cua/sky_js/src/index.js",
  "./dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js": "./dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js"
}
After applying that workaround and resetting the JS session, sky.list_apps() succeeded and returned 40 apps/windows.

What steps can reproduce the bug?

  1. Open Codex Desktop on Windows with the Computer Use plugin installed.
  2. In a thread with Node REPL available, run the Computer Use bootstrap:
if (!globalThis.sky) {
  const { setupComputerUseRuntime } = await import(String.raw`C:\Users\<USER>\.codex\plugins\cache\openai-bundled\computer-use\26.609.71450\scripts\computer-use-client.mjs`);
  await setupComputerUseRuntime({ globals: globalThis });
}

globalThis.apps = await sky.list_apps();
Computer Use fails during import with:
Package subpath './dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js'
is not defined by "exports" in
C:\Users\<USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\<RUNTIME_ID>\bin\node_modules\@oai\sky\package.json
Expected: sky.list_apps() returns available Windows apps/windows.
Session ID / token usage / context-window usage: not visible to me in Codex Desktop. Please use the attached/uploaded session if available.

### What is the expected behavior?

_No response_

### Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗