Computer Use fails to initialize on Windows: `@oai/sky` package exports missing `computer_use_client_base.js`

Resolved 💬 8 comments Opened Jun 13, 2026 by qcy007 Closed Jun 29, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

````markdown

Title

Computer Use fails to initialize on Windows: '@oai/sky' package exports missing 'computer_use_client_base.js'

Summary

After updating/reinstalling Codex and reinstalling the Computer Use plugin, Computer Use fails during initialization before any Windows app automation starts.

This no longer appears to be the previous Windows sandbox failure. The current failure is a Node package exports mismatch between the bundled Computer Use plugin and the bundled cua_node runtime / @oai/sky package.

Chrome plugin works in the same Codex session, so this does not appear to be a general node_repl or plugin-system failure.

Environment

  • OS: Windows
  • Codex Desktop app
  • Computer Use plugin: openai-bundled/computer-use
  • Computer Use plugin version:
  • 26.609.41114
  • Chrome plugin version present:
  • 26.609.41114
  • latest
  • cua_node runtime path:
  • C:\Users\1\AppData\Local\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b
  • @oai/sky version:
  • 0.4.10
  • Windows sandbox config:
  • currently restored to:

``toml
[windows]
sandbox = "unelevated"
``

What I Tried

  1. Updated Codex.
  2. Reinstalled workspace dependencies from Codex settings.
  3. Reinstalled the Computer Use plugin.
  4. Restarted Codex.
  5. Restarted the PC.
  6. Deleted the local cua_node runtime cache:

C:\Users\1\AppData\Local\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b
7.Restarted Codex again, allowing the runtime to regenerate.

````

The same runtime hash was regenerated:

789504f803e82e2b

The issue persisted.

Error

When trying to initialize Computer Use through the official plugin flow:

const { setupComputerUseRuntime } = await import(
  "C:/Users/1/.codex/plugins/cache/openai-bundled/computer-use/26.609.41114/scripts/computer-use-client.mjs"
);
await setupComputerUseRuntime({ globals: globalThis });
globalThis.apps = await sky.list_apps();

It fails 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\1\AppData\Local\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b\bin\node_modules\@oai\sky\package.json

Local Package Inspection

The target file exists:

C:\Users\1\AppData\Local\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b\bin\node_modules\@oai\sky\dist\project\cua\sky_js\src\targets\windows\internal\computer_use_client_base.js

But @oai/sky/package.json only exports ".":

{
  "version": "0.4.10",
  "main": "dist/project/cua/sky_js/src/index.js",
  "exports": {
    ".": "./dist/project/cua/sky_js/src/index.js"
  },
  "types": "dist/project/cua/sky_js/src/index.d.ts"
}

So the file exists on disk, but Node rejects the deep import because it is not declared in package exports.

Expected Behavior

Computer Use should initialize successfully and allow listing Windows apps, for example:

globalThis.apps = await sky.list_apps();

Then it should be able to launch and control Calculator.

Actual Behavior

Computer Use fails before sky.list_apps() can run.

No app automation starts.

Notes

This appears distinct from the earlier Windows elevated sandbox failures.

Previously, with:

[windows]
sandbox = "elevated"

I saw errors like:

windows sandbox failed: runner error: CreateProcessAsUserW failed: 5

After restoring:

[windows]
sandbox = "unelevated"

the sandbox error no longer appears. The current failure is the @oai/sky package exports error above.

The Chrome plugin works in the same environment. It can connect to the Chrome extension, read open tabs, and create a new tab. That suggests the general plugin / node_repl path is working, while Computer Use specifically is blocked by the @oai/sky exports mismatch.

Suspected Cause

The bundled Computer Use plugin 26.609.41114 appears to depend on an internal @oai/sky module path:

./dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js

but the bundled @oai/sky@0.4.10 package only exports ".".

This looks like a packaging/version compatibility issue between:

  • openai-bundled/computer-use@26.609.41114
  • cua_node runtime 789504f803e82e2b
  • @oai/sky@0.4.10

View original on GitHub ↗

8 Comments

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #27287
  • #27826
  • #27747
  • #28084
  • #27600

Powered by Codex Action

qcy007 · 1 month ago

This may be the same root cause as #27287, but I am keeping this open because it still reproduces on a newer build:

  • Computer Use plugin: 26.609.41114
  • @oai/sky: 0.4.10
  • cua_node runtime: 789504f803e82e2b

So the issue appears to persist beyond the older 26.608.12217 / @oai/sky 0.4.8 environment reported in #27287.

Statusnone420 · 1 month ago

I can confirm this still reproduces after updating today, June 18, 2026.

Environment:

  • Codex App: 26.616.3309.0 (OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0)
  • Computer Use plugin: openai-bundled/computer-use/26.616.30709
  • OS: Microsoft Windows NT 10.0.26200.0 x64
  • CUA runtime: cua-node-0.0.1-20260609232601-73ffe8b8261e-win32-x64.zip
  • Runtime cache id: a89897d3d9baa117
  • @oai/sky: 0.4.13
  • @oai/sky/package.json exports only "."

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\<user>\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\package.json

Repro:

  1. Update Codex Desktop on Windows to 26.616.3309.0.
  2. Use the bundled Computer Use plugin: [@Computer](plugin://computer-use@openai-bundled).
  3. Codex loads:
C:\Users\<user>\.codex\plugins\cache\openai-bundled\computer-use\26.616.30709\scripts\computer-use-client.mjs
  1. That file imports:
@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js
  1. Initialization fails before sky.list_apps() can run.

Additional signal:

  • The same class of failure persisted for me across multiple updates:
  • computer-use 26.609.41114 / @oai/sky 0.4.10
  • computer-use 26.611.62324 / @oai/sky 0.4.13
  • now computer-use 26.616.30709 / @oai/sky 0.4.13
  • The target file exists on disk, so this appears to be an export-map/package-boundary mismatch rather than a missing file.
  • As a local workaround, adding this export to the user-local runtime cache made the supported bootstrap work:
"./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 that local cache-only workaround, resetting the JS session and rerunning the supported Computer Use bootstrap succeeded: sky.list_apps() returned ok: true with appCount: 40.

This looks like the same root cause as this issue, but still present after the latest Codex App update available to me.

qcy007 · 1 month ago
I can confirm this still reproduces after updating today, June 18, 2026. Environment: Codex App: 26.616.3309.0 (OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0) Computer Use plugin: openai-bundled/computer-use/26.616.30709 OS: Microsoft Windows NT 10.0.26200.0 x64 CUA runtime: cua-node-0.0.1-20260609232601-73ffe8b8261e-win32-x64.zip Runtime cache id: a89897d3d9baa117 @oai/sky: 0.4.13 * @oai/sky/package.json exports only "." 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\<user>\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\package.json ` Repro: 1. Update Codex Desktop on Windows to .26.616.3309.0 2. Use the bundled Computer Use plugin: .[@Computer](plugin://computer-use@openai-bundled) 3. Codex loads: ` C:\Users\<user>\.codex\plugins\cache\openai-bundled\computer-use\26.616.30709\scripts\computer-use-client.mjs ` 4. That file imports: @oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js 5. Initialization fails before can run.sky.list_apps() Additional signal: * The same class of failure persisted for me across multiple updates: * computer-use 26.609.41114 / @oai/sky 0.4.10 * computer-use 26.611.62324 / @oai/sky 0.4.13 * now computer-use 26.616.30709 / @oai/sky 0.4.13 * The target file exists on disk, so this appears to be an export-map/package-boundary mismatch rather than a missing file. * As a local workaround, adding this export to the user-local runtime cache made the supported bootstrap work: "./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 that local cache-only workaround, resetting the JS session and rerunning the supported Computer Use bootstrap succeeded: returned with .sky.list_apps()`ok: trueappCount: 40 This looks like the same root cause as this issue, but still present after the latest Codex App update available to me.
Thanks for sharing the workaround. I tested it locally and can confirm that it works.

Environment:

- Computer Use plugin: `26.616.30709`
- CUA runtime cache: `a89897d3d9baa117`
- `@oai/sky`: `0.4.13`

I added the following export to the local runtime's `@oai/sky/package.json`:

```json
"./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 resetting the JS session, the supported Computer Use bootstrap succeeded:

  • sky.list_apps() returned successfully with appCount: 40
  • Calculator launched successfully
  • Window capture and keyboard input worked
  • The test calculation 12 × 7 returned 84

This confirms that the Computer Use runtime itself is functional and that the current failure is specifically caused by the missing package export.

Thanks again for identifying and validating the workaround.

wkdguswo16 · 1 month ago

I can reproduce this on Windows with Codex Desktop 26.616.30709 as well, with an additional symptom: Computer Use has disappeared entirely from the visible plugin list.

Environment and observations:

  • Codex Desktop: 26.616.30709
  • OS: Windows x64
  • Computer Use plugin cache still exists at:
  • ~/.codex/plugins/cache/openai-bundled/computer-use/26.616.30709
  • config.toml still contains:

``toml
[plugins."computer-use@openai-bundled"]
enabled = true
``

  • However, the current local openai-bundled marketplace snapshot contains only the Chrome plugin, and codex plugin list does not list the openai-bundled marketplace or Computer Use.
  • Computer Use is also absent from the currently available plugin install candidates, so it cannot be reinstalled through the normal UI or CLI flow.
  • Restarting Codex Desktop does not restore it.

Attempting to initialize the remaining cached plugin directly fails with the same package-exports 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\<user>\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\package.json

Runtime hash in this reproduction:

a89897d3d9baa117

The Chrome plugin continues to work in the same Codex session. This looks like both:

  1. a compatibility mismatch between computer-use@26.616.30709 and the bundled @oai/sky runtime; and
  2. a marketplace/distribution issue causing Computer Use to disappear from the plugin list and preventing normal reinstallation.
wkdguswo16 · 1 month ago

Correction / update: after a full Windows reboot, the Computer Use plugin reappeared in the plugin list and became available again. Restarting only the Codex Desktop application was not sufficient.

This suggests that the plugin disappearance may involve stale desktop, helper-process, or runtime state that is cleared only by a full OS reboot. The @oai/sky package-exports error described above was observed before the reboot, but Computer Use is currently working again after the full system restart.

Recommended temporary workaround for other affected users: fully reboot Windows, rather than only quitting and reopening Codex Desktop.

Statusnone420 · 1 month ago
> I can confirm this still reproduces after updating today, June 18, 2026. > Environment: > > Codex App: 26.616.3309.0 (OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0) > Computer Use plugin: openai-bundled/computer-use/26.616.30709 > OS: Microsoft Windows NT 10.0.26200.0 x64 > CUA runtime: cua-node-0.0.1-20260609232601-73ffe8b8261e-win32-x64.zip > Runtime cache id: a89897d3d9baa117 > @oai/sky: 0.4.13 > * @oai/sky/package.json exports only "." > > 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\<user>\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\package.json > ` > > > > > > > > > > > > Repro: > > 1. Update Codex Desktop on Windows to .26.616.3309.0 > 2. Use the bundled Computer Use plugin: .[@Computer](plugin://computer-use@openai-bundled) > 3. Codex loads: > > ` > C:\Users\<user>\.codex\plugins\cache\openai-bundled\computer-use\26.616.30709\scripts\computer-use-client.mjs > ` > > > > > > > > > > > > > 4. That file imports: > > @oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js > 5. Initialization fails before can run.sky.list_apps() > Additional signal: > > * The same class of failure persisted for me across multiple updates: > > * computer-use 26.609.41114 / @oai/sky 0.4.10 > * computer-use 26.611.62324 / @oai/sky 0.4.13 > * now computer-use 26.616.30709 / @oai/sky 0.4.13 > * The target file exists on disk, so this appears to be an export-map/package-boundary mismatch rather than a missing file. > * As a local workaround, adding this export to the user-local runtime cache made the supported bootstrap work: > > "./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 that local cache-only workaround, resetting the JS session and rerunning the supported Computer Use bootstrap succeeded: returned with . sky.list_apps()ok: trueappCount: 40 > > This looks like the same root cause as this issue, but still present after the latest Codex App update available to me. Thanks for sharing the workaround. I tested it locally and can confirm that it works. Environment: - Computer Use plugin: 26.616.30709 - CUA runtime cache: a89897d3d9baa117 - @oai/sky: 0.4.13 I added the following export to the local runtime's @oai/sky/package.json: `json "./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 resetting the JS session, the supported Computer Use bootstrap succeeded: * sky.list_apps() returned successfully with appCount: 40 * Calculator launched successfully * Window capture and keyboard input worked * The test calculation 12 × 7 returned 84` This confirms that the Computer Use runtime itself is functional and that the current failure is specifically caused by the missing package export. Thanks again for identifying and validating the workaround.

Anytime, fellow Codex user. Glad the workaround helped and I hope it helps the @codex team ID the root cause.

qcy007 · 27 days ago

Update: I can no longer reproduce the Computer Use initialization failure after the latest Codex Desktop update.

Verified environment:

  • Codex App: 26.616.9593.0 (OpenAI.Codex_26.616.9593.0_x64__2p2nqsd0c76g0)
  • Computer Use plugin: openai-bundled/computer-use/26.616.71553
  • Browser / Chrome plugins: 26.616.71553
  • CUA runtime cache id: 1b23c930bdf84ed6
  • @oai/sky: 0.4.19
  • OS: Windows x64
  • Config tested:
[windows]
sandbox = "elevated"

Validation performed:

  1. Restored/kept the runtime without the previous local @oai/sky/package.json export workaround. The package still only exports ".".
  2. Reset the JS session and initialized Computer Use through the supported bundled plugin entry point:
~/.codex/plugins/cache/openai-bundled/computer-use/26.616.71553/scripts/computer-use-client.mjs
  1. sky.list_apps() succeeded and returned appCount: 41.
  2. Launched Windows Calculator through Computer Use.
  3. Sent keyboard input for 12 × 7.
  4. Read the Calculator accessibility state and confirmed the result was 84.
  5. Re-tested after switching Codex back from full filesystem access to the normal approval/sandbox mode; the same elevated Windows config still worked.

Observed result:

Computer Use initializes successfully.
No ERR_PACKAGE_PATH_NOT_EXPORTED error.
No windows sandbox failed: runner error: CreateProcessAsUserW failed: 5.
Calculator test returned 84.

Notes:

  • The original @oai/sky package export map still does not expose the internal computer_use_client_base.js subpath, but the current Computer Use plugin appears to load the Windows internal module by resolved file URL rather than by the blocked package subpath. That avoids the previous package-exports failure.
  • The newer CUA runtime also changed from the earlier a89897d3d9baa117 / @oai/sky 0.4.13 combination to 1b23c930bdf84ed6 / @oai/sky 0.4.19.
  • In this environment, the previous sandbox = "elevated" startup failure also appears fixed.

From my local testing, this issue appears resolved in 26.616.9593.0 / computer-use 26.616.71553.