Windows Computer Use plugin fails to initialize because @oai/sky internal client path is not exported

Resolved 💬 2 comments Opened Jun 26, 2026 by hayuq Closed Jun 26, 2026

Summary

On Windows, the bundled Computer Use plugin fails during initialization because it imports an internal @oai/sky subpath that is not declared in @oai/sky's package.json exports map.

Environment

  • OS: Windows 10 Home 22H2, build 19045, x64
  • Codex App package: OpenAI.Codex_26.623.3763.0_x64__2p2nqsd0c76g0
  • Codex app runtime version shown in config: 26.623.31443
  • codex-cli: 0.139.0
  • Computer Use plugin cache: openai-bundled/computer-use/26.611.62324
  • cua_node runtime: 1b23c930bdf84ed6
  • @oai/sky: 0.4.19

Error

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js' is not defined by "exports" in %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\1b23c930bdf84ed6\bin\node_modules\@oai\sky\package.json

What I observed

The plugin file:

%USERPROFILE%\.codex\plugins\cache\openai-bundled\computer-use\26.611.62324\scripts\computer-use-client.mjs

contains this import:

import { WindowsComputerUseClientBase } from "@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js";

The target file exists in the runtime:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\1b23c930bdf84ed6\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 the package root:

"exports": {
  ".": "./dist/project/cua/sky_js/src/index.js"
}

Temporary workaround

Adding the internal subpath to @oai/sky/package.json makes Computer Use initialize successfully and allows sky.list_apps() to work:

"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 this local patch, setupComputerUseRuntime() succeeds and sky.list_apps() returns the expected app list.

Expected behavior

The bundled Computer Use plugin and bundled @oai/sky runtime should be version-compatible out of the box. Either the plugin should import a public export, or @oai/sky should export the internal client path that the plugin currently imports.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗