Computer Use bootstrap fails on Windows: @oai/sky internal subpath is not exported
What issue are you seeing?
Computer Use is installed and listed as available in Codex Desktop on Windows, but attempting to use @computer fails during bootstrap before the Windows helper can be reached.
The failure appears to be a packaging/version mismatch between the bundled computer-use-client.mjs script and the bundled @oai/sky package exports.
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\joshu\AppData\Local\OpenAI\Codex\runtimes\cua_node\2f053e67fec2d258\bin\node_modules\@oai\sky\package.json
Environment
- OS: Windows
- Codex Desktop / bundled plugin build:
26.608.12217 - Computer Use plugin path observed:
C:\Users\joshu\.codex\plugins\cache\openai-bundled\computer-use\26.608.12217 @oai/skypackage version observed:0.4.8-202606020558-pr-981870-f570e0604110@oai/skypackage path observed:C:\Users\joshu\AppData\Local\OpenAI\Codex\runtimes\cua_node\2f053e67fec2d258\bin\node_modules\@oai\sky
Reproduction steps
- In Codex Desktop on Windows, ask Codex to use
@computer/ Computer Use. - Codex loads the Computer Use skill and attempts the documented bootstrap:
if (!globalThis.sky) {
const { setupComputerUseRuntime } = await import("file:///C:/Users/joshu/.codex/plugins/cache/openai-bundled/computer-use/26.608.12217/scripts/computer-use-client.mjs");
await setupComputerUseRuntime({ globals: globalThis });
}
globalThis.apps = await sky.list_apps();
- Bootstrap fails immediately with the package exports error above.
What I expected
Computer Use should bootstrap successfully and sky.list_apps() should return installed/running Windows apps, or at least reach the Windows helper and report a helper-specific connection error.
What appears to be happening
computer-use-client.mjs imports this internal module:
import { WindowsComputerUseClientBase } from "@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js";
That file does exist on disk at:
...\node_modules\@oai\sky\dist\project\cua\sky_js\src\targets\windows\internal\computer_use_client_base.js
However, the bundled @oai/sky/package.json currently has only this export:
"exports": {
".": "./dist/project/cua/sky_js/src/index.js"
}
So Node rejects the internal subpath import before any Computer Use helper connection is attempted.
Impact
Computer Use is unusable from Codex Desktop on Windows in this state. This presents as "Computer Use won't connect," but the actual failure is earlier: the plugin bootstrap cannot import its dependency.
11 Comments
I'm seeing the same issue as well, and for me it started immediately after updating Codex Desktop.
Environment:
26.608.12217%USERPROFILE%\.codex\plugins\cache\openai-bundled\computer-use\26.608.12217@oai/skyruntime package version:0.4.8-202606020558-pr-981870-f570e0604110@oai/skyruntime path:%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\2f053e67fec2d258\bin\node_modules\@oai\skyRepro steps:
@电脑/ Computer Use.scripts/computer-use-client.mjs.Observed error:
Expected behavior:
Computer Use should initialize successfully and be able to enumerate desktop apps/windows.
What I tried:
This looks like a packaged-version/export mismatch:
computer-use-client.mjsis importing an internal@oai/skysubpath that is not exposed by the installed@oai/skypackage'sexportsmap. Since this started right after updating, it may be a regression in the bundled Windows Computer Use plugin/runtime combination.I am seeing the same issue on Windows.
Feedback ID:
019eb277-4922-7741-a406-eefa56585d38Environment:
OpenAI.Codex_26.608.1337.026.608.12217Computer Use is visible and can be invoked with
@Computer, but it fails before opening Notepad.Test command:
Current error:
I also previously saw:
After switching from
sandbox = "elevated"tosandbox = "unelevated", theCreateProcessAsUserW failed: 5error disappeared, but the@oai/skyexports mismatch still prevents Computer Use from working.I have already tried:
This looks like the same plugin/runtime version mismatch.
I found and verified a temporary local workaround for this exact build/runtime combination. The internal file already exists; only its package export is missing.
In:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\2f053e67fec2d258\bin\node_modules\@oai\sky\package.jsonchange:
to:
I backed up
package.jsonfirst, reset the Computer Use JS session, and reran the documented bootstrap. After this change,sky.list_apps()succeeded (40 apps returned), andsky.launch_app({ app: "mspaint.exe" })successfully opened Paint and returned its targetable window.Environment matched the report:
OpenAI.Codex_26.608.1337.026.608.12217@oai/sky:0.4.8-202606020558-pr-981870-f570e06041102f053e67fec2d258This is only a local workaround. A Codex/plugin update can overwrite it, and the proper upstream fix should ship a matching package/export map (or avoid importing the private subpath).
Codex Windows 26.601.10930
ChatGPT Pro
Windows 11
Computer Use installed and enabled.
Error:
Package subpath './dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js'
is not defined by "exports"
Troubleshooting already performed:
Still broken on app 26.609.4994.0, plugin 26.609.41114, which means computer use on Windows 10 is broken on two levels.
hosseinipour's workaround worked for this issue, but then I run into #25178 still with the
SetIsBorderRequired failederror, so I still cannot use computer use.Since Windows is supposed to be officially supported now, it would be great for there to be a Windows VM smoke test before releasing new app/plugin versions to make sure it at least launches and can do basic functionality. Windows support was announced but is definitely not a first-class feature right now.
I hit the same issue on Windows Codex Desktop and confirmed the root cause/workaround on a newer bundle.
Environment observed:
openai-bundled/computer-use/26.609.41114%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b@oai/sky:0.4.10@oai/sky/package.jsoninitially exported only:Failure:
The imported file exists on disk at:
I tested a surgical local workaround by adding this exact export to the cached
@oai/sky/package.json:After resetting the JS session, the official Computer Use bootstrap succeeded:
sky.list_apps()returned Windows apps including Brave, Steam, and Notepad. I then confirmed the tool was actually usable by targeting a Brave browser window, reading accessibility state, clicking a Nexus Mods slow-download button, confirming the Windows save dialog withReturn, and verifying the downloaded archive appeared in Downloads.So the one-line export addition is sufficient to clear the bootstrap/package error for this environment. The durable fix seems to be either:
@oai/skypackage exports, orcomputer-use-client.mjs.This looks like a plugin/runtime packaging mismatch, not a missing file or native helper issue.
I got the same Problem.
Still reproduces on Windows after the latest update.
Environment observed locally:
openai-bundled/computer-use/26.611.61049@oai/sky:0.4.13cua_noderuntime hash:a89897d3d9baa117setupComputerUseRuntimebeforesky.list_apps()Error:
The plugin still imports:
But
@oai/sky/package.jsonstill only exports the root.entry.Still reproduces after latest update:
Computer Use plugin: 26.611.62324
cua_node runtime: a89897d3d9baa117
@oai/sky: 0.4.13
The target file exists, but package exports still do not expose:
./dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js
Still reproduces on a newer Windows Codex / Computer Use bundle.
Environment observed:
OpenAI.Codex_26.611.8604.0_x64__2p2nqsd0c76g0openai-bundled/computer-use/26.611.62324@oai/sky:0.4.13@oai/skyruntime path:%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\skyObserved error during the documented Computer Use bootstrap:
The failing bundled import is still:
The target file exists on disk in the bundled runtime, but the package export map does not allow that internal subpath, so Computer Use fails before reaching the Windows helper/native pipe layer.
Local workaround that confirms the cause:
@oai/sky/package.jsonto allow./dist/*.computer-use-client.mjsto resolve the internal base-class module by file URL from the bundled CUA runtime instead of importing the package internal subpath directly.After that workaround, the normal Computer Use bootstrap succeeded and
sky.list_apps()returned 41 apps.Expected behavior remains the same: the first-party bundled Computer Use plugin should either import only public/exported
@oai/skyentrypoints, or the bundled@oai/skypackage should export the internal subpath that the bundled plugin imports.