Computer Use fails on Windows: @oai/sky package exports blocks computer_use_client_base.js
What version of the Codex App are you using (From “About Codex” dialog)?
26.614.11602
What subscription do you have?
API密钥登录
What platform is your computer?
_No response_
What issue are you seeing?
Computer Use fails to initialize on Windows in Codex Desktop.
After restarting Codex Desktop and confirming that the app/plugins appear up to date, Computer Use still fails before it can list apps or open any Windows application.
The exact error is:
Package subpath './dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js' is not defined by "exports" in %USERPROFILE%\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\package.json
Local details:
- OS: Windows
- Surface: Codex Desktop app
- Plugin: openai-bundled computer-use
- computer-use plugin version: 26.611.61753
- @oai/sky version: 0.4.13
- Plugin path:
%USERPROFILE%\.codex\plugins\cache\openai-bundled\computer-use\26.611.61753
- Runtime path:
%USERPROFILE%\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117
Observed cause:
The Computer Use plugin entry file:
%USERPROFILE%\.codex\plugins\cache\openai-bundled\computer-use\26.611.61753\scripts\computer-use-client.mjs
imports this deep internal path:
@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js
The target file exists on disk, but @oai/sky/package.json only exports the package root:
"." -> "./dist/project/cua/sky_js/src/index.js"
So Node ESM package exports blocks the deep import. This looks like a bundled plugin/runtime compatibility or packaging issue between computer-use@26.611.61753 and @oai/sky@0.4.13.
What steps can reproduce the bug?
- Open Codex Desktop on Windows.
- Start a thread and ask Codex to use the bundled Computer Use plugin, for example:
"Open WeChat and send a message" or "Play a playlist".
- Codex attempts to initialize Computer Use by importing:
%USERPROFILE%\.codex\plugins\cache\openai-bundled\computer-use\26.611.61753\scripts\computer-use-client.mjs
- Initialization fails before list_apps() can return any apps.
- Restart Codex Desktop and try again.
- The same error occurs again.
I have not manually modified the plugin cache or runtime files.
What is the expected behavior?
Computer Use should initialize successfully on Windows, list available apps, and allow Codex to request permission to control the selected desktop app.
At minimum, the bundled computer-use plugin and the bundled @oai/sky runtime should be compatible, or @oai/sky should export the internal module path used by computer-use-client.mjs.
Additional information
The issue appears to happen at module import time, before any target app is opened.
Read-only checks showed:
- computer-use-client.mjs imports:
import { WindowsComputerUseClientBase } from "@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js";
- @oai/sky/package.json contains:
{
"name": "@oai/sky",
"version": "0.4.13",
"type": "module",
"main": "dist/project/cua/sky_js/src/index.js",
"exports": {
".": "./dist/project/cua/sky_js/src/index.js"
}
}
- The imported file exists on disk:
%USERPROFILE%\AppData\Local\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117\bin\node_modules\@oai\sky\dist\project\cua\sky_js\src\targets\windows\internal\computer_use_client_base.js
But because the path is not listed in package.json "exports", Node blocks the deep import.
If needed, I can provide the Codex /feedback session ID or additional logs.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗