Skip to content

Windows Computer Use cannot initialize: failed to write kernel assets (os error 3) #52969

Open

Description

@valorantmobileno1-eng

Windows Computer Use cannot initialize: failed to write kernel assets (os error 3)

Component and environment

  • Codex desktop app on Windows, with the bundled Computer Use skill.
  • Bundled Codex CLI: 0.162.0-alpha.17.2 (checked with codex --version). This is the CLI version, not a verified desktop app version.
  • Installed primary runtime manifest reports Node v24.19.0 and bundle 26.1007.11041.
  • Target application: installed Cubase 13, executable version 13.0.55.328.

Minimal reproduction

Run the documented Computer Use initialization in the exposed node_repl tool:

if (!globalThis.sky) {
  const { sky } = await import('@oai/sky');
  globalThis.sky = sky;
}

Actual result, before app selection, screenshots or input:

failed to write kernel assets: 指定されたパスが見つかりません。 (os error 3)

The Japanese text means “The system cannot find the path specified.” The failing calculated path is not included in the tool output.

Checks and recovery attempts

  • Resetting the JavaScript kernel did not resolve the failure.
  • Adding an existing Node package directory did not resolve the failure.
  • Retrying after the user restarted the desktop app produced the same failure.
  • The configured node_repl executable, Node executable, package directory and Codex executable all exist.
  • Temporary directories and the local node_repl directory exist.
  • The installed node_repl executable's --help succeeds.
  • Diagnostic logs contain MCP server startup failed for node_repl/cua_repl with os error 3.
  • The official codex doctor --json command completed with exit code 0 and overall status warning. This does not establish the cause of the kernel-assets error. The raw report is retained locally and is not attached to this public issue.

Impact and expected behavior

Computer Use cannot reach sky.list_apps(), window capture or mouse/keyboard input. Cubase itself launches, and the user can create a project manually. The assistant cannot import audio or operate the project through Computer Use.

Expected: the documented initialization succeeds, or the failure exposes a sanitized destination path and filesystem operation so the missing directory/reference can be identified safely.

Please advise on the supported repair procedure for this runtime initialization failure. Existing report #41359 describes the same error text before browser bootstrap; this occurrence affects native Windows Computer Use. Matching error text alone does not prove the same root cause.

No audio, project files, authentication details, username, absolute personal paths or full conversation transcripts are included in this report.

Activity

  1. added
    bug
    app
    windows-os
    tool-calls
    mcp
    on Oct 10, 2026
  2. hejazymedia-wafi commented on Oct 12, 2026

    @hejazymedia-wafi

    Additional reproduction (2026-10-12): On a Windows Codex desktop session, a fresh first call to the documented Computer Use state entry point (await cua.getState()) failed immediately with failed to write kernel assets: The system cannot find the path specified. (os error 3). This was a fresh tool initialization; the existing runtime was not reset, and no app/window enumeration or UI interaction occurred. As a result, the open WizTree window could not be reached or inspected. No local files, settings, or sessions were changed. The failing path remains undisclosed by the tool. This confirms the initialization failure persists in a separate attempt, but does not identify the missing path or prove that the earlier and current reports share a root cause.

  3. AiriDea commented on Oct 13, 2026

    @AiriDea

    Additional Windows occurrence on 2026-10-13 using the bundled Computer Use skill.

    The documented initialization submitted to node_repl was:

    if (!globalThis.sky) {
      const { sky } = await import("@oai/sky");
      globalThis.sky = sky;
    }

    It returned:

    failed to write kernel assets: 系统找不到指定的路径。 (os error 3)
    

    One supported js_reset returned "js kernel reset"; the next initialization returned the same error. No application enumeration, capture or input was submitted in those calls.

    Installed/configured metadata: Windows Appx package 26.1007.2314.0; Computer Use skill 26.1007.21434; cua-node manifest 0.0.29/20261005054403-144090e2ddcb with Node 24.21.0-cua.1; configured @oai/sky 0.7.6. These identify installed files, not a successfully initialized kernel.

    The configured binaries, package directory and shell temporary directories exist. Scoped public host logs show runtime selection and logical server starting/ready messages, but expose neither the failing assets destination nor the failed server's inherited environment. Earlier ready messages lack process-instance identity and do not prove this initialization succeeded.

    Please provide a supported way to expose the sanitized failing destination/filesystem operation and the corresponding repair procedure. No conversation/session logs, credentials, project source or business data are attached.

  4. shortgigsfounder commented on Oct 13, 2026

    @shortgigsfounder

    Additional Windows occurrence — both MCP JavaScript kernels fail before code execution

    On Windows Codex Desktop, both existing MCP JavaScript entry points fail before evaluating user code:

    cua_repl: await cua.getState()
    node_repl: nodeRepl.write("probe")
    
    failed to write kernel assets: The system cannot find the path specified. (os error 3)
    

    Resetting each kernel did not resolve the next initialization failure. No browser content was read.

    The installed Windows x64 runtime manifest reports cua-node 0.0.27/20260927214556-b77d38801cca and Node 24.21.0-cua.1. The named executable and module paths exist and the runtime directory grants sandbox read/execute access (path-presence/access checks, not a full integrity attestation).

    A create/read/delete probe in the shell's redirected temporary directory passed. That temp path varied between tool calls, so this does not establish where the separate MCP kernel attempts asset materialization, nor whether that destination exists. The error does not identify the actual destination. Kernel resets had no effect.

    Request: Could the diagnostic expose the exact filesystem destination and operation failing during kernel asset materialization, or provide a supported repair for this Windows condition? A distinction among host, sandbox-launcher and kernel-child path identities would help establish whether the parent directory is missing or path translation fails. Please avoid speculative directory/permission changes.

    This follow-up intentionally excludes credentials, browser contents, tenant/project identifiers, private files and raw diagnostic logs. No runtime files or security settings were changed.

  5. moruku36 commented on Oct 15, 2026

    @moruku36

    Additional Windows occurrence observed on 2026-10-15 at approximately 18:49:03 UTC.

    Using the exposed official cua_repl tool, a typeText operation attempted to enter approximately 14,040 characters into an existing desktop application's input. After approximately 30 seconds, the tool returned:

    js execution timed out; kernel reset, rerun your request

    The following read-only state-inspection attempt failed with:

    failed to write kernel assets: The system cannot find the path specified. (os error 3)

    The Send button was not clicked by the assistant. Because the subsequent inspection failed, the remaining draft, any automatic upload, and the application's acceptance state are unknown. The typing operation was not repeated, to avoid duplication.

    This matches the kernel-assets error signature reported here, but does not establish a shared root cause or prove that input length caused either failure. The exact failing filesystem destination and installed version were not verified.

    Could you provide a supported recovery procedure and a diagnostic exposing the sanitized failing filesystem operation/destination? Guidance on safely checking the outcome of an input operation after a timeout would also help.

    No input content, local paths, thread IDs, screenshots, credentials, personal data, or raw logs are included.

  6. benfinmate commented on Oct 21, 2026

    @benfinmate

    Additional reproduction on Windows — 2026-10-21

    I’m seeing the same Computer Use initialization error in Codex on Windows.

    In this session, the documented Node REPL initialization and app-enumeration call fail before any app or window can be inspected:

    if (!globalThis.sky) {
      const { sky } = await import("@oai/sky");
      globalThis.sky = sky;
    }
    globalThis.apps = await sky.list_apps();

    Error:

    failed to write kernel assets: The system cannot find the path specified. (os error 3)

    Recovery attempts:

    • Reset the Node REPL; the next initialization failed with the same error.
    • Closed and reopened Codex; the error persisted.
    • The Android Emulator was running, but no app enumeration, screenshot capture, or input action could begin.

    Expected: Computer Use initializes and can list the running emulator window.

    No passwords or account credentials are included.

  7. jorgeschnura commented on Oct 21, 2026

    @jorgeschnura

    Root cause found on one Windows machine (2026-10-21), with a workaround.

    Environment: Codex desktop 26.1013.4894.0 (Windows x64), bundled CLI 0.163.0-alpha.10.2, node_repl.exe from %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash>\bin.

    What we observed:

    • Each node_repl.exe creates an empty directory %TEMP%\.tmpXXXXXX (six random alphanumerics) about a second after it starts. It only writes kernel.js, meriyah.umd.min.js, package.json, trusted-worker.js and the other kernel files into it when the kernel actually starts: on the first js call, or after js_reset.
    • If that directory disappears while the process is alive, every later kernel start in that process fails with failed to write kernel assets: ... (os error 3). js_reset does not help, because the process keeps the same, now missing, path. A new thread works because it gets a new node_repl.exe with a new directory. That explains why it can look intermittent and why it survives kernel resets.
    • On our machine something removed all empty top-level .tmp* directories in %TEMP% in a single sweep. Directories that already had kernel files survived, and so did empty folders with other names. The only storage cleanup we could find in that window was Windows Settings → System → Storage → Temporary files (its scan is logged in Microsoft-Windows-StorageSettings/Diagnostic). Any temp cleaner that deletes empty folders will cause it.
    • We matched each live node_repl.exe to its directory. It was missing for every process started before the sweep and present for every process started after it.

    Workaround that worked: recreate the missing directory, empty and with the same name. The next js call writes the kernel files and the kernel starts. Starting a new thread, or restarting the app, also works.

    Suggested fix: create the kernel directory (for example with create_dir_all) right before writing the kernel files, or create the temporary directory lazily at kernel start. Then a removed empty directory can no longer break the process for good. It would also help if the error included the path it tried to write.

    No logs, conversation content or private paths are included. Posted with the affected user's authorization.

  8. kaushalchaturvedi18-afk commented on Oct 22, 2026

    @kaushalchaturvedi18-afk

    Additional reproduction on Windows, 2026-10-22.

    Installed desktop app reports version 26.1016.51333, build 21161, prod; native updater reports up_to_date.

    The exposed node_repl tool fails on the minimal call nodeRepl.write("Runtime ready") with:

    failed to write kernel assets: The system cannot find the path specified. (os error 3)

    The supported js_reset returns success; the next minimal call still fails. Documented @oai/sky initialization also cannot execute. This failure occurs before application enumeration or browser control.

    Read-only shell checks confirm the local node_repl directory and shell TEMP/TMP directory exist. This does not establish the separate runtime process's actual asset destination. The tool does not expose that destination.

    The in-app browser inventory works in this session, while native desktop control cannot initialize. Real microphone/audio QA in a regular browser is blocked. No credentials, conversation transcripts, private paths, website source or customer records are included here.

    Please provide a supported diagnostic exposing the sanitized failing asset destination/filesystem operation and a repair procedure. The recently posted missing temporary-directory hypothesis may be relevant, but has not been verified on this machine. No speculative runtime-directory or security-setting changes have been made.

  9. jm9e commented on Oct 29, 2026

    @jm9e

    A further reproduction was diagnosed and locally recovered on Windows x64, Codex desktop package26.1023.6621.0. The documented cua.getState entry failed before JavaScript execution with the same kernel-assets os error3.

    Bounded read-only runtime diagnostics confirmed that the affected REPL instances retained exact temporary asset directory paths that no longer existed. Restoring only those missing empty directories, without changing the runtime, permissions, browser settings or sessions, made the next supported call initialize successfully. The same repair was independently confirmed in another affected chat. A populated directory belonging to a working runtime was left intact. No process restart, reset, reinstall or cache deletion was required.

    This corroborates the missing-owned-directory mechanism in comment6314830139. The process that removed these particular directories was not identified, so no Windows cleaner is attributed as the cause. The recovered call then reported a separate browser access setting; runtime recovery is not a claim that browser access was enabled.

    Please recreate the owned directory immediately before writing kernel assets (and report a sanitized failing operation/destination). Retaining a missing temporary path across js_reset otherwise leaves a valid long-lived process unable to initialize. No private paths, process dumps, account data, credentials, transcripts or raw logs are attached.

  10. f-z commented on Nov 4, 2026

    @f-z

    Additional confirmed missing-directory recovery on Windows — 4 November 2026

    This corroborates the retained missing-directory mechanism described in comment 6314830139, with a newer installed desktop package.

    Environment: installed AppX package OpenAI.Codex 26.1027.6604.0 (package metadata, not an About-dialog readback); Windows 11 Home 10.0.26200, ARM64 host; bundled Computer Use skill 26.1027.51404.

    Observed failure:

    The exposed node_repl tool failed before executing even a minimal JavaScript call:

    failed to write kernel assets: The system cannot find the path specified. (os error 3)
    

    One supported kernel reset returned success; the next minimal call failed identically. In the same chat, cua_repl could still execute inventory calls, so one functioning client did not establish that the other client's kernel-assets path was healthy.

    Bounded diagnosis and recovery actually performed:

    1. Read-only diagnostics associated three live runtime instances with the current workspace.
    2. Each retained one candidate per-kernel directory under the verified user Temp parent. Two exact directories were absent; the third existed.
    3. After rechecking literal paths for existing files/directories/junctions, recreated only the two missing empty directories.
    4. Retried the normal supported tool: initialization succeeded; @oai/sky imported and sky.list_apps() / sky.get_window_state() ran.

    No bundled assets were copied, processes killed, permissions changed, browser profiles reset or other workspaces repaired. The actor that removed the directories is unknown. This was recovery of an existing incident, not a controlled experiment that deliberately deleted runtime directories.

    A separate Windows locked-desktop activation failure remained after this repair; it should not be conflated with kernel initialization.

    Requested fix: before writing kernel assets, validate and safely recreate or replace an absent runtime-owned directory, preserving ownership/path checks. Make reset either restore a usable initialization path or report the remaining failure. Include the sanitized failing filesystem operation and destination type/path in diagnostics.

    No personal usernames/paths, PIDs, raw memory, credentials, browser contents, session identifiers or raw logs are included.

  11. sshashimi2017-sys commented on Nov 7, 2026

    @sshashimi2017-sys

    The Codex Computer Use runtime fails during initialization before any browser interaction.

    Exact error:
    failed to write kernel assets: The system cannot find the path specified. (os error 3)

    The local CUA runtime binaries, parent directories, and permissions were inspected and found present. However, the missing kernel-assets path and stack trace could not be identified.

    Please investigate the external CUA/node_repl runtime initialization and provide the required repair or diagnostic steps.

    No ClearCase data, authentication, browser sessions, or application files should be modified as part of this repair.

  12. gjwang commented on Nov 11, 2026

    @gjwang

    Additional macOS occurrence, 11 November 2026. The documented entry await cua.getState() fails before returning any app/browser inventory:

    failed to write kernel assets: No such file or directory (os error 2)
    

    Verified installed metadata: macOS 26.4, arm64; desktop bundle version 26.1021.31345 (build 21828); bundled Node v24.22.1; cua-node runtime 0.0.35/20261022031940-486a6d3fcc3f.

    One task-local js_reset returned success; the next getState failed identically. A separate existing worker also failed at the same entry point. This was not a fresh-app comparison.

    The installed runtime paths and the shell's temporary directory exist. The bundled Node version command and node_repl --help succeed, but neither proves kernel initialization works. Read-only checks have not identified the failing asset destination or established which runtime process belongs to the affected tool session.

    The retained missing-directory mechanism reported above may be relevant, but it is not confirmed on this machine. No guessed directory repair, shared-process restart, global configuration change, or permission change was attempted.

    Could diagnostics expose the sanitized failing filesystem operation/destination, and is there a supported recovery confined to the affected session? This adds the macOS error variant to the existing report, without claiming the Windows and macOS occurrences share a cause. No private paths, process identifiers, browser contents, credentials, or raw logs are attached.

    Follow-up from one newly created isolated task (same installed app, no app restart): cua.getState() returned an empty inventory with Native apps: Error: Sky Computer Use service startup request failed, rather than the kernel-assets error. One documented Chrome createBrowserTab attempt then returned Browser is not available: chrome; no tab was returned. This distinguishes the fresh task reaching the service/inventory layer from the two older contexts failing during asset materialization. It does not establish why the asset path is missing, recover the older contexts, or prove browser access is enabled. The temporary task was closed after these two calls; no shared process or configuration was changed.

  13. kristian-create commented on Nov 15, 2026

    @kristian-create

    Reproduced repeatedly on 15 November 2026 in Codex desktop on Windows.

    Verified environment:

    • Installed OpenAI.Codex package version: 26.1111.2228.0 (Get-AppxPackage).
    • OSVersion: Microsoft Windows NT 10.0.26300.0.

    Minimal reproduction using the currently exposed documented browser entry point:

    await cua.getState();

    Immediate result:

    failed to write kernel assets: Systemet finner ikke angitt bane. (os error 3)
    

    The Norwegian text means “The system cannot find the path specified.” No failing asset path is exposed. This occurs before any browser inventory, website access or input. The separate node_repl tool also failed with the same message earlier today. Shell commands and the GitHub connector still work.

    This session's browser/server workflow worked earlier today, then failed at the afternoon and evening scheduled checks and again after the user resumed the task. Resuming the task did not restore the runtime. We have not tested an app restart in this latest reproduction and do not claim to have established a root cause.

    Impact: repeated interruption of an ongoing publishing and operations workflow; unable to reach the existing browser-based server terminal or ad review interface. The user reports being interrupted multiple times per day. This is not evidence that the managed website or server is down. No workaround that alters security policy, deletes caches, or kills other active sessions has been attempted.

    Please provide a supported recovery procedure and expose the sanitized failing asset path/operation. A persistent fix or automatic recovery is needed; repeated retries currently fail before initialization.

    Report authorized by the user. No credentials, emails, customer content, private site identifiers, personal filesystem paths or conversation transcript attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcomputer-usemcptool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions