Skip to content

[Windows app] Local Work executor retries deterministic bundled-plugin copy failure every second (213,836 attempts) #55440

Open

Description

@seamusmore

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

Installed Windows package: OpenAI.Codex_26.1013.4894.0_x64__2p2nqsd0c76g0.
Bundled codex-app-tools: 0.1.6. The package version was verified locally; the About dialog version was not separately collected.

What subscription do you have?

Not collected for this diagnostic report.

What platform is your computer?

Windows 10, build 19045, x64; packaged Windows desktop application.

What issue are you seeing?

The Local Work executor repeatedly fails to copy a bundled plugin from the installed Windows package, then schedules another startup after 1,000 ms, with no effective backoff or retry ceiling in the observed logs. The attempt counter reached 213,836. Ordinary app restarts reproduce the copy failure and restart loop.

This report focuses on the persistent retry behavior and recovery across launches. The encrypted-resource copy signature is also reported in #49582 and #41164. #55417 describes a related plugin replacement failure that recovered after a few attempts; this installation kept retrying the same deterministic failure.

Sanitized diagnostic excerpts (separate events; paths shortened):

2026-10-20T01:38:39.379Z info [tpp-local-executor]
  Starting Local Work executor attempt=213836

[tpp-local-executor] Local Work executor startup failed
  errorCode=UNKNOWN
  UNKNOWN: unknown error, copyfile
  '<PACKAGE>\app\resources\plugins\openai-bundled\plugins\codex-app-tools\.codex-plugin\plugin.json'
  -> '<USER_DATA>\executor-plugins\codex-app-tools\.codex-plugin\plugin.json'

[tpp-local-executor] Scheduling Local Work executor restart
  delayMs=1000 reason=startup_failure

The error stack passes through Node copyFile, fs.cp / copyDir, and the desktop executor's readCapabilityRoots.

What steps can reproduce the bug?

On the affected installation:

  1. Start the official desktop app normally.
  2. Inspect the Local Work executor startup messages in %LOCALAPPDATA%\Codex\Logs.
  3. Observe the same UNKNOWN copyfile failure and repeated delayMs=1000 restart scheduling.
  4. Quit and reopen normally. The same failure returns.

The bundled source files are readable and have the Windows Archive, Encrypted attributes. A direct Node fs.cp(..., { recursive: true }) test against the original packaged plugin also fails with UNKNOWN.

Control experiment:

  • Copy the resource file contents into a normal local directory using byte reads/writes.
  • Verify SHA-256 against the package originals: 838 files, 49,220,670 bytes, all matching.
  • Repeat fs.cp from this local mirror: succeeds.
  • Launch the official application with CODEX_ELECTRON_BUNDLED_PLUGINS_RESOURCES_PATH pointing to the mirrored resources root: the original UNKNOWN copyfile failure disappears.

This narrows the problem to copying resources from the packaged source on this machine. The exact Windows/Node encryption mechanism remains to be established.

What is the expected behavior?

  • Packaged bundled resources should be usable across ordinary app launches and updates without a custom resource mirror or launcher.
  • Repeated deterministic local filesystem failures should trigger bounded retries/backoff and an actionable UI error.
  • Plugin staging should reuse verified resources where appropriate and recover safely from partial staging.

Additional information

Workaround validation, 2026-10-20 (UTC+08:00):

The official application was launched in its Windows package context with the resource override explicitly inherited by the child process. Package binaries and app.asar were left unchanged.

After the 10:45 restart, the original UNKNOWN copyfile count was zero. One transient ENOENT unlink occurred during startup; the executor connected to rendezvous on attempt 3 at 10:45:44 and remained connected through the final 10:51:38 observation. The staged plugin manifest matched the verified mirror.

The override is process-scoped. Launching through the normal shortcut omits it and previously reproduced the failure. A durable product fix is needed; future app updates have not been validated with this workaround.

Only sanitized error excerpts and plugin-copy validation results are included. Account/device identifiers, private paths, and raw logs are omitted.

Activity

  1. added
    bug
    app
    windows-os
    skills
    on Oct 20, 2026
  2. secheverrianogal-beep commented on Oct 20, 2026

    @secheverrianogal-beep

    The important distinction here is between the underlying copy failure and the unbounded restart policy. The reported resource-mirror control test is strong evidence that the packaged-source path matters on this machine, but it does not yet establish the exact Windows encryption/filesystem mechanism.

    Suggested implementation and regression coverage:

    1. Classify startup failures. For deterministic errors such as repeated UNKNOWN copyfile from the same source/destination, stop rapid retries and expose an actionable error; reserve automatic retry for errors classified as transient.
    2. Use capped exponential backoff with jitter and a retry budget/circuit breaker. Persist only a small failure summary across launches so a restart does not reset an effectively infinite one-second loop.
    3. Stage plugin copies in a temporary directory, validate required files and hashes, then atomically promote the staged directory. Clean up partial staging safely after failure.
    4. Add Windows packaged-app tests for encrypted/packaged source files, ordinary local mirrors, interrupted copies, and recovery after an app update. Verify that a failed copy cannot leave a partially usable plugin.
    5. Surface a diagnostic code and supported repair action in the UI, while avoiding a requirement that users launch the app with a custom environment override.

    Acceptance criteria: a deterministic failure stops retrying within a bounded number of attempts, CPU/log growth remains bounded across app restarts, and a subsequent valid package/resource state can recover without manual file edits.

  3. xiaojie0815 commented on Nov 13, 2026

    @xiaojie0815

    I reproduced this with Windows MSIX package 26.1106.6628.0 installed at D:\WindowsApps. Creating a local Work project showed “Local Work executor failed to start.” The desktop log reported UNKNOWN: unknown error, copyfile while copying the bundled codex-app-tools plugin manifest. A separate Windows copy test returned 0x80071770 (ERROR_ENCRYPTION_FAILED), while reading and writing the same file bytes succeeded.

    After moving the app to the C: drive, I could create a local Work project successfully. Please include installations on secondary WindowsApps volumes such as D:\WindowsApps when verifying the fix, so users can run Local Work without moving the app to C:.

  4. wangjiaze1982-arch commented on Nov 20, 2026

    @wangjiaze1982-arch

    I can confirm a closely related failure and a working user-side workaround on a separate Windows 10 machine. Thanks for documenting the resource-mirror approach.

    Environment / symptom

    • Windows 10 (19045), official packaged desktop app OpenAI.Codex version 26.1111.2228.0.
    • Local Work initially failed with Local Work executor failed to start.
    • A bundled codex-app-tools/.codex-plugin/plugin.json source file had Windows Archive, Encrypted attributes. Copying it via [System.IO.File]::Copy failed with an encryption-related IOException; reading and writing the same bytes succeeded.

    What worked

    1. Created an unencrypted mirror of the app's resources directory using byte-stream reads/writes, without modifying the installed package.
    2. Verified 3,424 files against the originals using SHA-256: 0 missing, 0 mismatches, 0 extras.
    3. Set CODEX_ELECTRON_BUNDLED_PLUGINS_RESOURCES_PATH to the local mirror directory.
    4. Launched the packaged application through a dedicated Windows CMD launcher with the override set, rather than relying on the ordinary app shortcut.
    5. Repeated the CMD-based launch and ran a read-only Local Work check: the executor started successfully, commands completed with exit code 0, and no files were changed.

    Important limitations

    • This confirms a practical workaround on this machine, not a proven root cause or an official product fix.
    • Merely setting the user-level environment variable and launching through Explorer had not resolved the failure during our earlier test. The working setup uses a dedicated launcher.
    • We have not validated behavior after a future application update. The external mirror and launcher may need maintenance if packaged resources change.

    No personal paths, account identifiers, or raw logs are included.

  5. juliansolimando commented on Nov 20, 2026

    @juliansolimando

    Confirmed on Windows — OpenAI.Codex 26.1117.3838.0 (November 20, 2026)

    I can reproduce the same Local Work executor failed to start issue in the latest installed version, even after updating and repairing the application.

    Environment

    • Windows desktop app: ChatGPT / Codex
    • MSIX package: OpenAI.Codex 26.1117.3838.0
    • Physical installation: D:\WindowsApps
    • Registered installation path: C:\Program Files\WindowsApps (junction to D:)
    • Package status: Ok
    • BitLocker on D: disabled

    Observed failure

    The application launches, but Local Work cannot initialize.

    The executor logs repeatedly report:

    [tpp-local-executor] Local Work executor startup failed
    errorCode=UNKNOWN
    UNKNOWN: unknown error, copyfile
    

    The failure occurs while copying:

    plugins/openai-bundled/plugins/codex-app-tools/.codex-plugin/plugin.json
    

    into the user's executor-plugins directory.

    Additional bundled plugin copy failures affect browser, chrome, and unified-computer-use.

    Independent reproduction

    I tested the affected plugin.json from the current installed package.

    cipher /c reports:

    E plugin.json
    Compatibility Level: Application Protected
    

    A standard PowerShell Copy-Item fails:

    The specified file could not be encrypted.
    HRESULT: -2147018896
    

    However, reading the source with [System.IO.File]::ReadAllBytes() and writing it with WriteAllBytes() succeeds.

    SHA-256 verification confirms that the original and resulting files are byte-for-byte identical.

    Additional observations

    • Updating the application did not resolve the issue.
    • Repairing the application did not resolve the issue.
    • Windows reports the package status as Ok.
    • The physical installation is on D:, despite the registered C: installation path.
    • The source files exist and are readable.

    This strongly suggests that the bundled plugin copy operation is incompatible with Windows Application Protected files in this installation configuration.

    Expected behavior

    Local Work should initialize successfully regardless of whether the MSIX package is installed on the system drive or a secondary application volume.

    Could the maintainers confirm whether this issue is already being addressed and whether a fix is planned for the bundled-plugin copy operation?

  6. g1331 commented on Nov 21, 2026

    @g1331

    I reproduced this on November 21 with ChatGPT Desktop 26.1117.41037 (MSIX package OpenAI.Codex 26.1117.4957.0) on Windows 11 Pro x64, build 26300.9818. The package is installed on D:\WindowsApps.

    On a normal launch, Local Work failed while copying codex-app-tools/.codex-plugin/plugin.json from the installed package to the user-local executor-plugins directory. The desktop log reported UNKNOWN: unknown error, copyfile on six consecutive attempts. The scheduled retry delay grew from 1 second to about 24 seconds, and the executor still failed on the same file.

    I tested that exact source file separately. CopyFileW returned Win32 error 6000 (ERROR_ENCRYPTION_FAILED). CopyFileExW with COPY_FILE_ALLOW_DECRYPTED_DESTINATION succeeded, and the resulting file matched the source byte for byte.

    I then launched the same desktop version with a SHA-256-verified local mirror of its bundled plugins. The Local Work executor connected on its first attempt.

    Could you include a secondary WindowsApps volume in the regression test and verify that Local Work starts through the standard app entry point?

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

    appbugskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions