Skip to content

[Windows] Code Review unavailable: bundled-plugin copy fails and encryption fallback checks the wrong errno #51218

Open

Description

@a62977386

What version of the Codex App are you using (From “About Codex” dialog)?

26.930.41038

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Summary

Code Review fails to load in the Windows desktop app and displays “App unavailable” even after retrying. Investigation identified an error-code mismatch that prevents the existing encryption-related copy fallback from running.

Environment:

  • App version: 26.930.41038
  • MSIX package version: 26.930.4958.0
  • Bundled CLI: 0.160.0
  • Windows x64

Steps to reproduce

  1. Launch the app on the affected Windows installation.
  2. Open Code Review from the sidebar.
  3. The page displays “App unavailable.” Retrying does not resolve it.

Expected behavior

Bundled plugins initialize successfully, and Code Review opens its normal page.

Actual behavior and logs

Desktop logs record:

  • plugin_marketplace_folder_write_failed
  • folderWritePhase=copy_plugins
  • bundled_plugins_marketplace_resolve_failed
  • errorCode=UNKNOWN

Representative error, with personal paths redacted:

UNKNOWN: unknown error, copyfile '<WindowsApps>\OpenAI.Codex_<version>\app\resources\plugins\openai-bundled\plugins\codex-app-tools\.codex-plugin\plugin.json' -> '<UserProfile>\.codex\.tmp\bundled-marketplaces\openai-bundled.staging-<id>\plugins\codex-app-tools\.codex-plugin\plugin.json'

Root-cause investigation

The source plugin files have the Encrypted attribute, and cipher /c reports “Application Protected.”

CopyFileW and ordinary CopyFileExW return Windows error 6000 (ERROR_ENCRYPTION_FAILED). Node file-copy operations expose this as code="UNKNOWN", errno=-4094.

The packaged copyDirectoryAllowDecryptedDestinationOnEncryptionFailure helper checks error.errno === 6000. Consequently, the actual Node error does not trigger its stream-copy fallback.

An isolated test of the packaged helper confirmed this: the real error bypassed the fallback, while changing only the caught errno to 6000 allowed the existing fallback to complete successfully.

CopyFileExW with COPY_FILE_ALLOW_DECRYPTED_DESTINATION and stream-based copying both succeeded, with matching SHA-256 hashes.

Workaround and remaining defect

Rebuilding the generated bundled marketplace through stream copying restored the Code Review page. Desktop logs then reported server=code-review, status=ready.

Neither app.asar nor the CLI was modified. This restores functionality locally but leaves the packaged error-handling defect unchanged.

Please handle the Windows/Node error-code mismatch safely. A fix should not treat every UNKNOWN error as an encryption failure, and should preserve normal application, plugin, and model updates.

What steps can reproduce the bug?

UI reproduction on the affected installation, before the workaround

  1. Launch the Windows desktop app.
  2. Open Code Review from the sidebar.
  3. The page displays “App unavailable.”
  4. Retry opening the page; it remains unavailable.
  5. Inspect the desktop logs: plugin_marketplace_folder_write_failed occurs at folderWritePhase=copy_plugins, followed by bundled_plugins_marketplace_resolve_failed with errorCode=UNKNOWN.

Minimal file-copy reproduction

Prerequisite: use a bundled plugin file from the affected WindowsApps installation. The source file has the Encrypted attribute, and cipher /c reports “Application Protected.”

Save the following as repro.cjs and run:
node repro.cjs ""

const fs = require("node:fs");
const os = require("node:os");
const path = require("node:path");

const source = process.argv[2];
if (!source) {
  throw new Error("Provide the affected bundled plugin.json path.");
}

const testDir = fs.mkdtempSync(
  path.join(os.tmpdir(), "codex-copy-repro-")
);

try {
  fs.copyFileSync(source, path.join(testDir, "plugin.json"));
  console.log("Copy succeeded; failure was not reproduced.");
} catch (error) {
  console.log({
    code: error.code,
    errno: error.errno,
    syscall: error.syscall
  });
} finally {
  fs.rmSync(testDir, { recursive: true, force: true });
}

Observed on the affected system:
code="UNKNOWN", errno=-4094, syscall="copyfile".

The independent Node reproduction used Node 24.19.0 / libuv 1.52.1; these are not claimed to be the desktop app's embedded runtime versions.

Native CopyFileW returned error 6000 (ERROR_ENCRYPTION_FAILED) for the same source. The packaged fallback checks errno === 6000, so the Node error does not activate it.

Current status

A local workaround rebuilt the generated bundled marketplace using stream copying. Code Review now loads, but the packaged fallback defect remains unchanged.

The failure occurs during bundled plugin initialization and is not tied to a specific prompt, session, token limit, or context-window usage.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Oct 6, 2026
  2. added
    bug
    windows-os
    code-review
    skills
    on Oct 6, 2026
  3. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. ohhhp commented on Oct 10, 2026

    @ohhhp

    Update: Still reproducible on Windows Codex 26.1007 (October 10, 2026)

    The bundled-plugin materialization failure persists after updating to:

    • MSIX/AppX: 26.1007.2314.0
    • Electron application: 26.1007.21434
    • Codex CLI: 0.162.0-alpha.17.2

    Observed behavior

    The updated Desktop logs still show:

    • plugin_marketplace_folder_write_failed
    • folderWritePhase=copy_plugins
    • errorCode=UNKNOWN
    • bundled_plugins_marketplace_resolve_failed

    The failing source is a packaged unified-computer-use/.codex-plugin/plugin.json file under WindowsApps. The file has the Encrypted attribute, and cipher /c reports Application Protected.

    The packaged Browser and Chrome versions are now 26.1007.21434, but their installed caches remain at 26.803.41515.

    Current implementation findings

    The bundled-plugin copy helper in windows-file-copy-BDdE9Xtu.js still recognizes encryption-copy failures only when:

    error.errno === 6000

    It does not handle the previously reproduced Node error pair:

    errno=-4094, code=UNKNOWN

    Notably, the separate runtime-relocation implementation in the current application already handles both error representations and supports fallback copying.

    This suggests an inconsistency between the bundled-marketplace copy implementation and the runtime-relocation copy implementation.

    Verification limits

    The current Desktop logs confirm UNKNOWN copy failures, but I have not independently remeasured the underlying Windows error or Node errno on this updated version.

    No application binaries, WindowsApps files, plugin caches, ACLs, registry entries, or security settings were modified during the latest investigation.

    Normal shell execution and Node REPL initialization now succeed. The earlier Windows sandbox setup failure is therefore separate from the remaining bundled-plugin synchronization failure.

    Request

    Please investigate applying equivalent, narrowly scoped encryption-copy error handling to the bundled-marketplace copy helper, while preserving source validation, plugin integrity, and normal update behavior.

  5. guiguiluo commented on Oct 13, 2026

    @guiguiluo

    Confirmed on 2026-10-13: the same fallback mismatch also prevents native scheduling/chat tools from loading, with eight bundled plugins affected.

    Environment:

    • Windows 10 Home x64, build 19045.
    • Microsoft Store/MSIX package: 26.1007.2314.0.
    • Desktop application: 26.1007.21434.
    • Desktop Core/app-server: 0.162.0-alpha.17.2.
    • Independent reproduction used the shipped Node v24.21.0.

    Copy failure and fallback reproduction:

    • An affected source was plugins/openai-bundled/plugins/codex-app-tools/.codex-plugin/plugin.json under the installed WindowsApps package. Its attributes include Archive, Encrypted.
    • A direct Win32 CopyFileW call returned 6000 / ERROR_ENCRYPTION_FAILED.
    • Node fs.copyFile returned code: "UNKNOWN", errno: -4094 for the same source.
    • The shipped .vite/build/windows-file-copy-BDdE9Xtu.js only accepts e instanceof Error && e.errno === 6000 before entering its existing byte-stream fallback.
    • Running that shipped helper unchanged in isolation, stubbing only its logging/bootstrap imports, reproduced UNKNOWN/-4094. No fallback-started or fallback-succeeded events were emitted.
    • Reading the source bytes and writing an ordinary destination succeeded under the existing permissions, with matching SHA-256. No ACL, ownership, or WindowsApps changes were needed.

    Observed impact:
    Desktop logs repeatedly reported plugin_marketplace_folder_write_failed, folderWritePhase=copy_plugins, and errorCode=UNKNOWN across these eight plugins: codex-app-tools, browser, chrome, computer-use, unified-computer-use, latex, code-review, and visualize.

    The active bundled marketplace retained older versions, and the codex-app-tools installation cache was missing. The affected chat had no native desktop automation or chat-management tools. This is broader than the Code Review UI symptom: failure to materialize codex-app-tools can make native Scheduled/heartbeat capabilities disappear from the agent's available tools.

    Controlled local recovery and validation:

    1. Backed up the previous configuration and generated marketplace.
    2. Rebuilt the enabled bundle's source cache from the installed official package using byte reads/writes; all 826 files matched the source SHA-256 hashes.
    3. Recreated the current build's exact materialization metadata and used the official plugin/install API to restore seven enabled plugins; LaTeX's source was repaired while its prior uninstalled state was preserved.
    4. On the running application's next focus reconciliation, its own logs reported:
      • bundled_plugins_runtime_marketplace_reused, pluginCount=8
      • plugin_marketplace_sync_completed, pluginsInstalledAfterWrite=7
      • bundled_plugins_reconcile_completed, reason=focus
    5. Native desktop tools became available. A native heartbeat scheduled for this investigation chat actually started a new turn and executed tools. The test automation was subsequently deleted.
    6. A read-only Computer Use application-list call succeeded, and the Code Review tool appeared in the available tool catalog.

    This recovery did not modify app.asar, the signed installation, ACLs, the registry, session locks, or the internal database. It repairs the current generated cache; it does not fix the shipped predicate or guarantee survival across future updates. Browser interactions and every individual plugin feature were not all tested end to end.

    Requested product fix:
    Please normalize the Windows encryption-copy error at the Node boundary so confirmed protected-source failures can reach the existing bounded stream fallback. Add a regression test using the actual fs.copyFile UNKNOWN/-4094 representation, and preserve the last working plugin cache when staging fails. UNKNOWN/-4094 alone is generic and should not globally be treated as proof of an encryption failure.

    This comment adds independently reproduced evidence and native-scheduling impact to the existing report; it is not a separate request to change CLI scheduling support.

  6. tenghc2023-spec commented on Oct 14, 2026

    @tenghc2023-spec

    Confirmed again on 2026-10-14 with MSIX package OpenAI.Codex 26.1007.9446.0, Windows x64 25H2, build 26200.9457. This adds a newer-package reproduction to the existing report.

    The installed package is on a secondary AppX volume, exposed through a WindowsApps junction; the generated runtime/cache is on the system volume. This is environment context, not proof that the volume layout causes the failure.

    Current findings:

    • Desktop logs still report bundled-plugin copyfile failures with errorCode=UNKNOWN.
    • The shipped .vite/build/windows-file-copy-CwIr88nm.js still gates its stream-copy fallback on e instanceof Error && e.errno === 6000.
    • A controlled copy of an encrypted resource from the installed package reproduced native CopyFileW error 6000 / ERROR_ENCRYPTION_FAILED.
    • Using the package's shipped CUA Node v24.21.0, fs.promises.copyFile exposed the failure as code="UNKNOWN", errno=-4094.
    • CopyFileExW with COPY_FILE_ALLOW_DECRYPTED_DESTINATION succeeded, with an identical SHA-256 hash. Reading and writing the bytes also succeeded.

    The runtime-relocation implementation is different: the current application-network-startup-YSC7OAs0.js already recognizes both errno 6000 and UNKNOWN/-4094 and has a byte-copy fallback. The current runtime resolves successfully. A full check of the previously copied runtime found 2,367 files, all with SHA-256 hashes matching the installed package, with no missing or extra files; its Node executable also runs successfully.

    Therefore, the reproducible remaining defect here is the bundled-plugin helper's error handling; I am not claiming that this missing fallback explains every historical post-update startup stall.

    Please bring the bundled-plugin copy path into alignment with the runtime copy path, with a narrowly scoped regression test for the actual Node error representation. UNKNOWN/-4094 is generic, so it should not globally be treated as proof of encryption failure.

  7. ohhhp commented on Oct 14, 2026

    @ohhhp

    Update: root cause identified — bundled plugin copy fallback misses Node UNKNOWN/-4094 encryption failures

    After further investigation, the failure has been narrowed down to the bundled marketplace plugin copy path.

    Environment

    • Windows x64
    • Codex Desktop 26.1007.x
    • MSIX/AppX package

    Observed behavior

    Windows native copy behavior:

    CopyFileW -> ERROR_ENCRYPTION_FAILED (6000)
    

    The same protected AppX/WindowsApps source file through Node:

    fs.copyFile -> code="UNKNOWN", errno=-4094
    

    The bundled plugin copy helper currently gates the existing encrypted-destination fallback on:

    e instanceof Error && e.errno === 6000

    Therefore the existing fallback path is not reached when Node exposes the failure as UNKNOWN/-4094.

    Additional finding

    The same application already contains another copy/relocation path that handles both representations:

    • native error 6000
    • Node UNKNOWN/-4094

    and can fall back to byte-based copying successfully.

    This suggests the bundled marketplace copy helper and runtime relocation helper have inconsistent encryption-copy error handling.

    Suggested fix

    Please consider normalizing this error handling at the Node boundary, or sharing the existing fallback helper used by the runtime relocation path.

    Important: UNKNOWN/-4094 should not be treated globally as an encryption failure. The fallback should remain narrowly scoped after confirming the source is a protected/encrypted AppX resource, preserving normal validation behavior.

    Suggested regression test

    Use a Windows protected/AppX file where:

    1. Native copy returns ERROR_ENCRYPTION_FAILED (6000).
    2. Node fs.copyFile returns UNKNOWN/-4094.
    3. Bundled marketplace materialization succeeds through the existing bounded fallback path.

    No application binaries, WindowsApps files, ACLs, registry entries, or security settings were modified during this investigation.

  8. Mz8839 commented on Oct 24, 2026

    @Mz8839

    Additional independent reproduction on 2026-10-24 (UTC+08). This affects bundled browser/computer-use plugins as well as Code Review.

    • Windows Codex Desktop MSIX: 26.1021.2667.0 (x64); bundled CLI: 0.164.0-alpha.11.1.
    • The openai-bundled marketplace fails to materialize; logs show plugin_marketplace_folder_write_failed and bundled_plugins_marketplace_resolve_failed. A recent failed source was plugins/unified-computer-use/.codex-plugin/plugin.json; earlier failures included plugins/chrome/.codex-plugin/plugin.json.
    • The official Chrome extension is installed and enabled in the active Chrome profile, and Settings > Computer Use recognizes it. Nevertheless, the Chrome plugin is absent and @Chrome is unavailable in a new Codex session.
    • On the affected encrypted MSIX resource, Win32 CopyFileW reproducibly returns 6000; Node fs.copyFileSync returns UNKNOWN, errno -4094. Reading the file and writing its bytes as a stream succeeds; the SHA-256 matches.
    • The packaged windows-file-copy-Sxa4t5uM.js helper has a stream-copy fallback conditional on e.errno === 6000, so the observed Node error bypasses the fallback.
    • This persisted in a fresh production log at 2026-10-24 08:16 +08:00. The original packaged resources and app code were not modified. No manual marketplace rewrite, EFS, ACL, Defender, or network workaround was applied.

    This corroborates the underlying bug in #51218 and shows a second user-visible impact: loss of Chrome/computer-use integration. Please normalize/recognize the specific Windows encryption-copy error so the existing fallback executes, without treating every UNKNOWN as an encryption failure. Please also regression-test bundled-plugin initialization and @Chrome availability in the Windows app.

    All paths and user-identifying details are omitted; no raw logs are attached.

  9. dfjz1988-netizen commented on Oct 25, 2026

    @dfjz1988-netizen

    Additional reproduction — 2026-10-25, Codex Windows MSIX 26.1021.3705.0 (Chrome/Browser unavailable)

    Confirming that the bundled-plugin materialization failure still occurs in a newer Windows x64 package:

    • Installed MSIX package: OpenAI.Codex 26.1021.3705.0
    • Bundled Browser/Chrome plugin version: 26.1021.31345
    • Impact: The Browser service cannot initialize or read Chrome tabs; browser-service.mjs is missing from the expected installed plugin-cache path. The same bundled-marketplace failure also affects the Chrome, codex-app-tools and unified-computer-use plugins.
    • Precise error (redacted): Cannot find module '<UserProfile>\\.codex\\plugins\\cache\\openai-bundled\\browser\\26.1021.31345\\scripts\\browser-service.mjs'
    • Observed failure: 2026-10-25 12:18:53 UTC+08. Desktop logs show plugin_marketplace_folder_write_failed, folderWritePhase=copy_plugins, and errorCode=UNKNOWN while copying browser/.codex-plugin/plugin.json from the protected WindowsApps package into the openai-bundled.staging-<id> marketplace.
    • Source vs destination: The official package contains browser-service.mjs (1,611,121 bytes); however, the entire browser/26.1021.31345 plugin-cache directory is absent. Older Browser plugin versions remain cached.
    • Filesystem evidence: The bundled source resources are marked Encrypted / Application Protected. The local examination reports 1,014/1,014 items in the packaged openai-bundled tree with this attribute. The corresponding older installed Browser cache and the separate primary-runtime plugin cache do not have this attribute.
    • Packaged helper: windows-file-copy-CwPoUCbe.js still gates the fallback on e instanceof Error && e.errno === 6000. The desktop log only reports UNKNOWN; the underlying Node errno was not independently measured for this specific package, so the exact errno mapping here is inferred from the matching reproductions already documented in this issue.
    • Repeated failure: Logs show failures on repeated bundled-plugin reconciliation attempts, not merely a single interrupted install.

    The official Chrome extension has already been reinstalled, but this does not resolve the missing Codex-side service. A separate, read-only inspection found no direct evidence of a Defender block or target-directory ACL denial. No WindowsApps files, plugin caches, app binaries, registry, Native Host, ACLs, or security settings were modified.

    This adds a 26.1021.x reproduction affecting Chrome/Browser control, and supports investigating the narrowly scoped protected-source copy fallback described above. Please avoid treating all UNKNOWN copy errors as encryption errors.

  10. jienhuang7615 commented on Oct 25, 2026

    @jienhuang7615

    Additional Local Work executor evidence — MSIX 26.1021.3705.0, 2026-10-25

    This adds executor-specific evidence to #51218, beyond the Browser/marketplace reproduction already reported for this package. It also relates to the executor startup failure described in #49582.

    Environment: Windows 10 Pro x64 build 19045; MSIX 26.1021.3705.0; application component 26.1021.31345. The installed package uses a secondary NTFS AppX volume exposed through a valid WindowsApps junction; generated runtime/config/cache directories are on the system volume. This layout is context, not proof of causation. Stale user runtime overrides had been removed before this reproduction; current generated Node/Codex paths use the official system-volume runtime.

    Observed startup failure at 2026-10-25 13:48:30.541 UTC+08:

    Local Work executor startup failed: UNKNOWN: unknown error, copyfile '<Package>/app/resources/plugins/openai-bundled/plugins/codex-app-tools/.codex-plugin/plugin.json' -> '<AppData>/Codex/web/Codex/executor-plugins/codex-app-tools/.codex-plugin/plugin.json'

    The source exists, is readable, is marked Encrypted, and has 243 bytes, SHA256 51ddd54c552d6ba3bee921b223e65d656b3f582e69233cdace969c0a082bba21. Alias and physical-source reads agree. The destination parent exists; the manifest is absent. An earlier target snapshot also contained a stale server.mjs (949811 bytes versus 1164011 bytes in the current package), so copying only the manifest would not establish current-plugin completeness.

    Current-package read-only implementation comparison

    1. In .vite/build/main-BPBEjAxi.js, executor preparation (loe) directly invokes recursive fs.cp. This call does not use the encrypted-copy fallback. The inspected capability-root preparation invokes this copy without a target-hash reuse check; pre-filling the executor directory therefore does not establish a durable workaround.
    2. The generic plugin-copy path (Nie) invokes .vite/build/windows-file-copy-CwPoUCbe.js. That helper recognizes only native-style errno 6000 (represented as 6e3 via a constant in the bundle).
    3. In .vite/build/application-network-startup-B4Wezh-6.js, runtime copying (Oa) already recognizes both errno 6000 and the combination code UNKNOWN / errno -4094, then uses a byte-read/write fallback.

    Bundle-entry SHA256 values, in the order above:

    • main: 2327d031e32c8d80c0dbf9bd81144466a90f8e49d3bc64e6604c23fbab900d7f
    • windows-file-copy: 3dc3f8c8af29af57a65e4e9be2124c79db92050a13af7ee58163c838802787b3
    • application-network-startup: 9775ead462eb9ab9c31b4a8aedf92b18a5a657f186be21f207a9b7adb143895f

    Bounded native API comparison, 14:03:37 UTC+08

    Each probe was run once, to a new temporary filename, with overwrite prohibited. Native GetLastError was captured immediately in the native-call wrapper.

    Probe Result
    Ordinary synthetic file, CopyFileW Success; source/destination hashes equal
    Current encrypted manifest to a new system-volume target, CopyFileW Failure: 6000 / ERROR_ENCRYPTION_FAILED; no destination file left
    Same source to a new secondary-volume target, CopyFileW Failure: 6000; no destination file left
    Same source to another new system-volume target, CopyFileExW with FAIL_IF_EXISTS and ALLOW_DECRYPTED_DESTINATION (0x9) Success; 243 bytes, same SHA256, output not encrypted

    The secondary-volume target was neither compressed nor encrypted and was on the same volume as the source. The successful system-volume output remained compressed. Thus cross-volume copying and target compression are not necessary conditions for this reproduction. The source hash and Encrypted attribute remained unchanged. The probes did not touch the real executor cache, package files, permissions, EFS policy or credentials.

    Evidence boundary: this package's Electron log reports UNKNOWN. The application call was not instrumented, and this reproduction did not independently measure current Node errno -4094. The native probe establishes error 6000 for this exact current source, while the code comparison establishes the inconsistent handling. These are distinct observations, not a claim that the app itself logged native 6000.

    Requested fix: route executor preparation through a consistent, narrowly scoped encrypted-resource compatibility path, cover both error representations where justified, preserve unrelated copy errors, validate the complete plugin tree before publishing, and test upgrade/cold-cache/stale-cache cases. UNKNOWN/-4094 alone must not be treated as proof of encryption failure globally. Include Windows 10/11, protected package resources, same/secondary volumes and compressed/non-compressed destinations in regression coverage.

    No installed application files were patched and no global encryption setting was disabled. A temporary plaintext official-resource snapshot is not claimed to restore executor startup here, because preparation recopy remains in the current implementation. A WebSocket 1006 observed separately at 13:51:05.652 UTC+08 is tracked as a separate connection issue; plugin startup recovery would require independent connection-stability acceptance. Repeated failure log rows are not counted as independent incidents.

  11. chopper10elf-lan commented on Oct 27, 2026

    @chopper10elf-lan

    [Windows 11] Computer Use unavailable — bundled marketplace initialization fails on Codex Desktop 26.1021.31345

    Environment

    • OS: Windows 11 x64, Build 26300
    • Desktop application: ChatGPT, powered by Codex & OWL
    • Desktop version: 26.1021.31345
    • Release date shown in About dialog: October 24, 2026
    • MSIX package: OpenAI.Codex_26.1021.3705.0_x64
    • npm Codex CLI: 0.164.0
    • App-bundled Codex CLI: 0.164.0-alpha.11.1
    • Date of latest observed failure: October 27, 2026

    Problem Description

    Computer Use is officially documented as supported on Windows, but the feature is unavailable in my current Windows 11 installation.

    The Computer Use plugin does not appear in the desktop application's plugin marketplace, and the Computer Use settings page does not expose the "Any App" option.

    Local diagnostics performed through PowerShell and Codex identified a reproducible failure during the initialization of the built-in openai-bundled plugin marketplace.

    The installed application package contains the Computer Use plugin resources, but the desktop application fails to copy them into the user-side marketplace staging directory.

    Steps to Reproduce

    1. Launch the Windows ChatGPT/Codex desktop application.

    2. Open the Plugins marketplace and search for "Computer Use".

    3. Observe that the plugin is not available.

    4. Open the following deep link:

      codex://plugins/computer-use@openai-bundled

    5. Observe the error:

      "Plugin not found. This plugin is not available in your current plugin marketplace."

    6. Open Settings > Computer Use.

    7. Observe that the "Any App" option is missing.

    Diagnostic Evidence

    1. Bundled plugin resources exist

    The installed MSIX package contains both:

    • computer-use
    • unified-computer-use

    The bundled manifests identify both plugins as AVAILABLE.

    Their presence was verified inside the official application package, although a full file-by-file integrity verification was not performed.

    2. Bundled marketplace initialization fails

    The desktop logs repeatedly contain:

    plugin_marketplace_folder_write_failed
    folderWritePhase=copy_plugins
    marketplaceName=openai-bundled
    errorCode=UNKNOWN
    
    bundled_plugins_marketplace_resolve_failed
    errorCode=UNKNOWN
    

    A representative sanitized error is:

    UNKNOWN: unknown error, copyfile
    
    Source:
    C:\Program Files\WindowsApps\
    OpenAI.Codex_26.1021.3705.0_x64__2p2nqsd0c76g0\
    app\resources\plugins\openai-bundled\
    plugins\unified-computer-use\.codex-plugin\plugin.json
    
    Destination:
    C:\Users\<USER>\.codex\.tmp\
    bundled-marketplaces\openai-bundled.staging-<ID>\
    plugins\unified-computer-use\.codex-plugin\plugin.json
    

    The most recent locally observed failure was recorded on October 27, 2026, at 19:33:57 (UTC+08:00).

    Historical desktop logs contain repeated matching failures between October 11 and October 27. Repeated log entries should not be interpreted as independent incidents.

    3. Bundled marketplace is not registered

    Both the npm-installed CLI and the desktop-bundled CLI were queried.

    The commands completed with exit code 0:

    codex plugin marketplace list --json
    codex plugin list --available --json
    

    The listed marketplaces were:

    openai-primary-runtime
    openai-curated
    

    openai-bundled was absent.

    The inspected user-side configuration and cache locations also lacked a complete bundled marketplace installation.

    Remote plugin catalog queries emitted network-related warnings, so these results do not establish a complete account-level catalog.

    4. Encrypted application resources may explain the copy failure

    The affected files have the Windows Encrypted attribute.

    The cipher /c command identifies them as:

    Compatibility Level: Application Protected
    

    This closely matches previously reported Windows EFS/Application Protected copy failures.

    However, on this specific machine, the desktop logs report only UNKNOWN. The underlying native Windows error and Node.js errno have not yet been independently reproduced.

    Therefore, the encryption-copy failure mechanism remains a strong hypothesis rather than a fully verified local root cause.

    Expected Behavior

    The application should successfully initialize the official bundled plugin marketplace and expose Computer Use on supported Windows installations, subject to applicable account and policy restrictions.

    The Computer Use plugin should be discoverable and installable, and its corresponding desktop settings should become available.

    Actual Behavior

    The bundled marketplace cannot complete its initialization because a packaged plugin manifest copy fails.

    As a result, Computer Use is absent from plugin discovery, the deep link fails, and the expected application-control settings are unavailable.

    Other core Codex functionality, including local shell execution and project-file access, continues to work.

    Related Issues

    Other reports involving the same MSIX package version have independently reproduced Node.js UNKNOWN / -4094 file-copy failures and identified a possible mismatch with the application's fallback logic.

    Requested Fix

    Please investigate the Windows bundled marketplace resource-copy path, particularly when copying Application Protected resources from the MSIX installation directory.

    It would be helpful to:

    1. Handle confirmed encrypted-source copy failures using an appropriate fallback while preserving error specificity.
    2. Log the underlying Windows or Node.js error accurately instead of reporting only UNKNOWN.
    3. Preserve a previously valid bundled marketplace when staging or synchronization fails.
    4. Add regression coverage for Windows MSIX protected resources and Computer Use plugin initialization.
    5. Clarify whether a supported recovery procedure exists for users already affected by this issue.

    Additional Notes

    No WindowsApps ownership or ACL changes were made.

    No bundled plugin resources, application binaries, encryption settings, or plugin configuration were modified during diagnosis.

    The diagnostic process was limited to inspecting installed resources, configuration, logs, and supported CLI commands.

    I can provide additional sanitized logs and the application's About dialog screenshot if needed.

    Thank you for investigating this issue.

  12. BlueLi66 commented on Nov 3, 2026

    @BlueLi66

    Additional independent reproduction on 2026-11-03, with desktop release 26.1027.30824 (production build 22943), MSIX 26.1027.3384.0, Windows 11 Home x64 25H2, build 26200.9711. The configured updater reports up_to_date.

    The bundled-plugin copy helper still checks only error instanceof Error && error.errno === 6000 before entering its existing stream-copy fallback. In this package, the helper is in .vite/build/early-bootstrap-523-ca88d406c9d70622.js, called by the Windows marketplace directory-copy path.

    Using the same packaged Browser plugin.json, marked Encrypted / Application Protected, controlled probes showed:

    Probe Result
    Native CopyFileExW, flags 0x1 (FAIL_IF_EXISTS) Fails with 6000 / ERROR_ENCRYPTION_FAILED
    Native CopyFileExW, flags 0x9 (also ALLOW_DECRYPTED_DESTINATION) Succeeds; SHA-256 matches
    Actual Node fs.cp through the unchanged packaged helper, evaluated in isolation Throws UNKNOWN, errno -4094, syscall copyfile; no fallback events
    Same isolated helper, with that independently confirmed encryption error classified as 6000 by a diagnostic adapter Emits fallback-started/succeeded events; copied content hash matches

    The independent Node probe used the app-shipped CUA Node v24.22.1 / libuv 1.52.1; this is not a claim about Electron's embedded Node version. The adapter was limited to this verified fixture, not applied to the running application.

    Desktop logs also show plugin_marketplace_folder_write_failed, folderWritePhase=copy_plugins, followed by bundled_plugins_marketplace_resolve_failed. Existing plugin sources/caches remained older than the installed package until a manual byte-copy resynchronization. That restored the current files but does not repair automatic synchronization on future updates.

    This confirms the reported guard mismatch persists in 26.1027. Please normalize or narrowly classify confirmed protected-resource copy failures so they can reach the existing bounded fallback, and add regression coverage for the actual Node error representation. UNKNOWN/-4094 alone should not globally be treated as proof of encryption failure.

    No installed application code, WindowsApps permissions, certificates, registry, or encryption policy was modified. Private paths and raw logs are omitted.

  13. xiaodeng2025 commented on Nov 3, 2026

    @xiaodeng2025

    Codex-Browser-Public-Evidence-2026-11-03.zip

    Additional Browser recurrence evidence: 17 events on one Windows installation

    I am adding this as related Browser-impact evidence. It is not a claim that the historical ProcMon capture independently reproduced the UNKNOWN / -4094 error described in this issue.

    Scope

    Latest recurrence: Occurrence #17 (2026-10-31)

    The recorded version chain was:

    Component Version
    AppX 26.1027.3384.0
    Runtime 26.1027.30824
    WindowsApps Browser 26.1027.30824
    Managed Marketplace Browser 26.1023.51421
    Browser cache 26.1023.51421

    The WindowsApps and managed Marketplace .bundle-id values differed.

    The browser-service.mjs files also differed:

    Location Length SHA-256
    WindowsApps 1,612,417 bytes 853EBBFE30056EB252C31434FEFFA15F6C6FCA4C4CD457AC4DDAAAEFE326A6EC
    Marketplace 1,615,408 bytes 3C76D34FD0FB1E771D6CB58127D0368B8989E6B95D62805C22AFFAF2765EE705
    Cache 1,615,408 bytes 3C76D34FD0FB1E771D6CB58127D0368B8989E6B95D62805C22AFFAF2765EE705

    Browser initialization requested the new 26.1027.30824 cache service, which was missing.

    After manual recovery, the user-provided external Diagnose showed Runtime, WindowsApps, Marketplace, and Cache all at 26.1027.30824; the three service files existed and matched in length and SHA-256. In-app Browser core acceptance then passed: example.com title and DOM were readable, Learn more navigated to the IANA example-domains page, the destination title and DOM were readable, and both pages had no Console messages. CDP / Network were unavailable in the tested session and were not counted as passed. Manual recovery does not establish that automatic product synchronization is fixed.

    September 24, 2026 Process Monitor evidence

    The filtered capture contains 94,601 data rows over approximately ten minutes.

    A re-check of the CSV found:

    • 13 distinct openai-bundled.staging-* directories.
    • Each of the 13 staging marketplace.json files had a WriteFile result of SUCCESS with a length of 2,015 bytes.
    • A subsequent successful SetDispositionInformationEx delete operation was recorded for each staging marketplace.json.
    • No successful promotion of a staging marketplace to the active openai-bundled directory was observed in this filtered capture; the active marketplace remained on the older version and the expected new Browser cache was not materialized.
    • ACCESS DENIED: 0.
    • SHARING VIOLATION: 0.
    • FILE LOCKED WITH ONLY READERS: 26; all 26 were MsMpEng.exe read-only mapping events.
    • No explicit 0x80071770 / encryption failure was observed.

    This capture was taken during the earlier 26.917.9434.0 package update, not the October 31 26.1027.3384.0 recurrence. It narrows the observed failure boundary to staging versus promotion, but does not establish why the staging transaction was abandoned or prove that the UNKNOWN / -4094 copy-helper defect caused this particular capture.

    The earlier Browser-specific report and ProcMon evidence are tracked in #47443, including the existing September 24 ProcMon comment.

    The November 3 reproduction already posted in this issue uses the same Desktop release (26.1027.30824) and MSIX package (26.1027.3384.0) as Occurrence #17. Those reports are consistent with a related Windows bundled-plugin problem, but the error-code reproduction and the historical staging/promotion trace are distinct observations; I am not claiming they prove one identical failure path.

    Questions for maintainers

    1. Does the Windows bundled-marketplace materialization path in these builds use the copy helper discussed here?
    2. Can the staging transaction log why a successfully written staging snapshot is later discarded instead of promoted?
    3. Can regression coverage include app update → bundled-marketplace refresh → plugin-cache materialization → Browser startup, while distinguishing protected-resource copy failures from staging/commit failures?

    A separately prepared sanitized evidence archive contains the incident history, 34 snapshots, and the filtered ProcMon CSV. The three raw PML captures were excluded because they have not completed sensitive-data review.

  14. wuxievip commented on Nov 11, 2026

    @wuxievip

    Adding a similar reproduction on Windows with desktop client version 26.1103.60933, affecting the bundled Computer Use plugin.

    Read-only investigation found:

    • The official bundled plugin and Windows runtime are already present.
    • After restarting the client and running Windows Settings → Apps → ChatGPT → Repair, initialization still fails with copyfile UNKNOWN, followed by bundled_plugins_marketplace_resolve_failed.
    • A native copy of the affected encrypted plugin manifest into a temporary directory fails with Win32 6000 / HRESULT 0x80071770 (ERROR_ENCRYPTION_FAILED). Creating and copying an ordinary test file in the same destination succeeds.
    • The installed client's copyDirectoryAllowDecryptedDestinationOnEncryptionFailure helper checks error instanceof Error && error.errno === 6000 before its stream-copy fallback.
    • Subsequent logs report No app tools discovered for server=cua_repl; desktop control remains unavailable.

    We have not independently measured the numeric Node errno on this installation, so this confirms the native error and the fallback condition, but does not establish that every UNKNOWN error has this cause. The relationship to a separate expired-approval message is also unconfirmed.

    No client code, encryption settings, ACLs, or generated plugin caches were modified. Windows Repair did not resolve the issue. Please check the Windows-to-Node error mapping in the bundled-plugin copy fallback and provide a supported recovery path.

  15. Abyssal-si commented on Nov 21, 2026

    @Abyssal-si

    Additional Local Work Executor reproduction — Windows 11, desktop package 26.1117.4957.0

    I am reporting another reproduction of the protected bundled-plugin copy failure, this time affecting the desktop ChatGPT mode's Local Work Executor.

    Environment

    • OS: Windows 11 x64
    • Desktop MSIX/AppX package: OpenAI.Codex_26.1117.4957.0_x64__2p2nqsd0c76g0
    • Package status: Ok
    • Install location: C:\Program Files\WindowsApps\OpenAI.Codex_26.1117.4957.0_x64__2p2nqsd0c76g0

    User-visible behavior

    • Desktop app in ChatGPT mode: ordinary chat works, but Local Work reports local work executor failed to start.
    • Switching the same desktop app to Codex mode works.
    • ChatGPT Work in the web app works.
    • This points to the desktop Local Work Executor initialization path rather than a general account or connectivity failure.

    Reproduction on the exact bundled source file

    The failing source is the packaged manifest:

    app\resources\plugins\openai-bundled\plugins\codex-app-tools\.codex-plugin\plugin.json

    1. Test-Path confirms the source file exists.
    2. cipher /c reports:
      • E plugin.json
      • Compatibility Level: Application Protected
    3. A .NET [System.IO.File]::Copy($src, $probe) to a normal writable TEMP directory fails with: “The specified file could not be encrypted.”
    4. The same source copied with xcopy /G /Y /I succeeds.
    5. SHA-256 of source and copied file is identical:
      BC98998F98ACAD398EF6502ABC797DBDDA7F433BF78963A759917E36E37B7385.
    6. Separate write probes to %APPDATA%\Codex\web\Codex, its executor-plugins child, %USERPROFILE%\.codex\.tmp, and bundled-marketplaces all succeeded. Disk space was ample.

    The desktop log reports Local Work Executor startup failing during copyfile of this bundled codex-app-tools manifest from the WindowsApps package into the user-side executor plugin directory, with UNKNOWN: unknown error, copyfile.

    Impact and request

    This is consistent with the protected-resource copy failure described in this issue, and provides a direct reproduction on package 26.1117.4957.0. Please confirm whether this build is affected by the same Windows/Node copy-error handling defect, and whether the Local Work Executor preparation path can use the same narrowly scoped protected-resource-compatible fallback. A supported user-side recovery or fixed-build guidance would also be appreciated.

    I have not changed WindowsApps files, package ACLs, EFS settings, application binaries, or Codex caches. User-specific paths have been redacted.

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

    appbugcode-reviewskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions