Computer Use fails to initialize on Windows: `@oai/sky` package exports missing `computer_use_client_base.js`
````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.41114latestcua_noderuntime path:C:\Users\1\AppData\Local\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b@oai/skyversion:0.4.10- Windows sandbox config:
- currently restored to:
``toml``
[windows]
sandbox = "unelevated"
What I Tried
- Updated Codex.
- Reinstalled workspace dependencies from Codex settings.
- Reinstalled the Computer Use plugin.
- Restarted Codex.
- Restarted the PC.
- Deleted the local
cua_noderuntime 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.41114cua_noderuntime789504f803e82e2b@oai/sky@0.4.10
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This may be the same root cause as #27287, but I am keeping this open because it still reproduces on a newer build:
26.609.41114@oai/sky:0.4.10789504f803e82e2bSo the issue appears to persist beyond the older
26.608.12217/@oai/sky 0.4.8environment reported in #27287.I can confirm this still reproduces after updating today, June 18, 2026.
Environment:
26.616.3309.0(OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0)openai-bundled/computer-use/26.616.30709Microsoft Windows NT 10.0.26200.0 x64cua-node-0.0.1-20260609232601-73ffe8b8261e-win32-x64.zipa89897d3d9baa117@oai/sky:0.4.13@oai/sky/package.jsonexports only"."Error:
Repro:
26.616.3309.0.[@Computer](plugin://computer-use@openai-bundled).sky.list_apps()can run.Additional signal:
computer-use26.609.41114/@oai/sky0.4.10computer-use26.611.62324/@oai/sky0.4.13computer-use26.616.30709/@oai/sky0.4.13sky.list_apps()returnedok: truewithappCount: 40.This looks like the same root cause as this issue, but still present after the latest Codex App update available to me.
After resetting the JS session, the supported Computer Use bootstrap succeeded:
sky.list_apps()returned successfully withappCount: 4012 × 7returned84This 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.
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:
26.616.30709~/.codex/plugins/cache/openai-bundled/computer-use/26.616.30709config.tomlstill contains:``
toml
``[plugins."computer-use@openai-bundled"]
enabled = true
openai-bundledmarketplace snapshot contains only the Chrome plugin, andcodex plugin listdoes not list theopenai-bundledmarketplace or Computer Use.Attempting to initialize the remaining cached plugin directly fails with the same package-exports error:
Runtime hash in this reproduction:
The Chrome plugin continues to work in the same Codex session. This looks like both:
computer-use@26.616.30709and the bundled@oai/skyruntime; andCorrection / 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/skypackage-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.
Anytime, fellow Codex user. Glad the workaround helped and I hope it helps the @codex team ID the root cause.
Update: I can no longer reproduce the Computer Use initialization failure after the latest Codex Desktop update.
Verified environment:
26.616.9593.0(OpenAI.Codex_26.616.9593.0_x64__2p2nqsd0c76g0)openai-bundled/computer-use/26.616.7155326.616.715531b23c930bdf84ed6@oai/sky:0.4.19Validation performed:
@oai/sky/package.jsonexport workaround. The package still only exports".".sky.list_apps()succeeded and returnedappCount: 41.12 × 7.84.Observed result:
Notes:
@oai/skypackage export map still does not expose the internalcomputer_use_client_base.jssubpath, 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.a89897d3d9baa117/@oai/sky 0.4.13combination to1b23c930bdf84ed6/@oai/sky 0.4.19.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.