Computer Use plugin fails on Windows due to @oai/sky package subpath not exported

Open 💬 5 comments Opened Jun 17, 2026 by MiFriRa

Summary

The bundled Computer Use plugin fails during its documented bootstrap on Windows before sky.list_apps() can run. The failure is a Node package exports error from the bundled @oai/sky runtime.

Environment

  • OS: Windows NT 10.0.26200.0
  • PowerShell: 7.5.5
  • .NET runtime visible to PowerShell: 9.0.14
  • Codex bundled plugin: openai-bundled/computer-use version 26.611.61753
  • Bundled @oai/sky runtime observed: 0.4.13
  • A second local cua_node runtime with @oai/sky 0.4.10 shows the same package exports shape

Reproduction

Using the plugin-documented bootstrap:

const { setupComputerUseRuntime } = await import("<plugin-root>/scripts/computer-use-client.mjs");
await setupComputerUseRuntime({ globals: globalThis });
globalThis.apps = await sky.list_apps();

Actual result

Bootstrap fails immediately with:

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 <cua_node-runtime>/bin/node_modules/@oai/sky/package.json

The stack starts at Node ESM resolution / package exports resolution before any Windows helper call is made.

Local findings

The plugin file imports an internal subpath directly:

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

The bundled @oai/sky/package.json contains only:

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

The target file does exist on disk at:

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

So this appears to be an export-map/package-boundary mismatch rather than a missing compiled file.

There is also a nearby bundled file:

@oai/sky/dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client.js

which imports ./computer_use_client_base.js relatively and exports WindowsComputerUseClient. That may be the intended public or package-internal entry point, but it is also not exported through package.json today.

Expected result

The documented Computer Use bootstrap should complete successfully on Windows and allow sky.list_apps() to return a list of apps/windows.

Suggested fix direction

Either:

  1. Export the required Windows internal entry point(s) from @oai/sky/package.json, or
  2. Change computer-use-client.mjs to import from a supported public @oai/sky entry point, or
  3. Bundle the required Windows client base code inside the plugin so it does not cross the @oai/sky package exports boundary.

View original on GitHub ↗

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