You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cua kernel: await import('playwright') and import('sharp') fail in a cell on macOS and Linux, though the js tool description advertises import('playwright') #531
The js tool's description tells the model to "Use dynamic imports such as await import("playwright")" (src/repl-host/tools.mjs:23). On every platform tested, that exact call fails in a cell:
await import("playwright") → The requested module './index.js' does not provide an export named 'default' (playwright's entry is CommonJS; the kernel's loader expects a default export from it).
await import("sharp") → Unsupported import specifier "../package.json" in node_repl. Only .js and .mjs files are supported.
await import("pngjs") works (namespace keys PNG, default, module.exports).
Observed:
macOS, the MacBook's installed cua plugin (0.29.x), through the plugin's own cua_repl server, 2026-11-23.
Linux, by linux171's M6a T6 pilot, on arm64 hosted plus x64, both with the vendor module tree (cua before M6a) and with cua's own module tree (M6a), with identical messages. The two entry files are byte-identical in both trees, so this predates M6a and is not caused by it.
The own-native-engine spec's M6 acceptance (docs/doperpowers/specs/2026-10-18-own-native-engine-design.md, acceptance item 10) says "a cell can still import('playwright')". That can't currently hold.
Done when
await import("playwright") and await import("sharp") succeed in a cell on macOS and on Linux, from cua's own module tree, and a test covers both (plus one ESM-only and one CJS package).
Alternatively, the js tool description stops advertising a call that fails, and names the form that works. Choose this only if the loader can't safely load CommonJS or JSON; the reason goes in the PR.
The kernel's sandbox and confinement guarantees are unchanged: a JSON import is limited to a package's own files under the module tree, with no read outside it.
Notes
M6a's T6 judges these two imports by equality with the older cua, not as a pass (linux171's Decision Log entry under F7). That stays until this ticket lands, and then T6's by-name step becomes a plain pass check again.
Activity
#171 M6a T6: the browser-only imports as ruled: four by name, playwri…
#171 M6a: Linux sessions run on cua's own runtime, with no vendor tre…