Skip to content

[Windows] Primary runtime updater re-downloads 501.8 MB hourly after non-retryable EPERM activation failure #40182

Open

Description

@jan013013

What version of the Codex App are you using?

  • Current Windows Store package: OpenAI.Codex 26.818.5229.0 (x64)
  • The repeated failures were logged by package build 26.814.5167.0
  • Codex CLI: 0.147.0
  • Primary runtime bundle requested: 26.819.11345

What platform is your computer?

Windows 11 Pro x64, version 10.0.26200 (build 26200).

What issue are you seeing?

The Codex desktop primary-runtime updater downloaded the same 501,849,919-byte archive from persistent.oaistatic.com approximately once per hour after every activation failure.

The download URL was:

https://persistent.oaistatic.com/codex-primary-runtime/26.819.11345/codex-primary-runtime-win32-x64-26.819.11345.tar.gz

Local log analysis found:

  • First attempt: 2026-08-19 08:37:52 local time
  • Successful completion: 2026-08-23 11:48:03 local time
  • 101 scheduled attempts in roughly 4 days
  • 96 complete archive downloads followed by activation failure
  • 4 network-stage failures
  • 1 eventual success
  • At least 48.678 GB of confirmed traffic from complete archive downloads alone

The repeated error was:

[primary-runtime-installer] primary_runtime_bundle_install_outcome
errorCategory=permission_denied
errorCode=EPERM
failureStage=activate_runtime
outcome=failed
retryable=false
trigger=scheduled_update
errorMessage="EPERM: operation not permitted, rename '%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime' -> '...previous-<uuid>'"

The current runtime directory contained executables being used by Codex. Windows therefore refused the directory rename. That part is expected Windows file-lock behavior. The bandwidth-consumption problem is that Codex deleted the staging directory (including the fully downloaded, verified archive) after the non-retryable activation failure, then the hourly scheduler downloaded the identical 501.8 MB archive again.

This happened silently, with no user notification or visible bandwidth warning.

What steps can reproduce the bug?

  1. Run Codex Desktop on Windows with the current primary runtime actively in use.
  2. Make a newer primary runtime bundle available to the hourly scheduled updater.
  3. Allow the 501.8 MB bundle to download.
  4. Let activation attempt to rename the active codex-primary-runtime directory.
  5. Observe EPERM at failureStage=activate_runtime.
  6. Leave Codex running.
  7. Observe another full download on the next hourly scheduled check, despite retryable=false.

What is the expected behavior?

After a complete bundle download and a non-retryable activation failure, Codex should not discard the verified archive and download it again every hour.

Any of the following would prevent the traffic loop:

  • retain the verified archive and activate it after Codex exits/restarts;
  • defer activation when the current runtime has live processes;
  • stop automatic retries after a non-retryable error;
  • use exponential backoff and a retry/traffic cap;
  • notify the user and offer “restart to finish update”;
  • respect metered-network settings.

At minimum, one failed 500 MB update must not become an unbounded hourly re-download loop.

Additional information

No raw log files are attached because they can contain local paths and session details. The counts above were derived from the local Codex desktop logs and the archive size was verified from the HTTP response.

Activity

  1. added
    bug
    app
    windows-os
    connectivity
    on Aug 23, 2026
  2. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. jan013013 commented on Aug 23, 2026

    @jan013013
    Author

    I reviewed #38999. It is related to primary-runtime installation on Windows, but the failure mode and impact here are distinct: the runtime was present, each verified 501.8 MB payload was discarded after a retryable=false activation failure, and the scheduler downloaded it again hourly, producing at least 48.678 GB of traffic. This report is specifically about the unbounded re-download loop and missing backoff/cache/restart handling.

  4. zemeng5208 commented on Aug 23, 2026

    @zemeng5208

    This is a good match for one narrow Windows-local failure mode I’ve been tracking. I maintain WinBridge Recovery: https://github.com/zemeng5208/winbridge-recovery

    For this issue, the part WinBridge may help with is diagnosing the local activation blocker, not the updater’s hourly retry policy itself. In particular, an EPERM on

    rename %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime -> ...previous-<uuid>
    

    is consistent with Windows still having one or more executables/DLLs under the active runtime tree mapped by a live or stale Codex/helper process. WinBridge’s local diagnostics are intended to identify this class of file-lock / runtime-helper ownership problem and distinguish it from cache/version/staging drift before attempting recovery.

    A useful separation here is:

    • Local layer WinBridge can help diagnose/recover: stale helper/runtime processes holding the current runtime directory, inconsistent user-side runtime staging/version state, or a partially activated local runtime after a failed rename.
    • Upstream behavior WinBridge cannot fix: Codex deleting a verified ~501.8 MB staged bundle after retryable=false, scheduling another full download every hour, or failing to defer activation until the owning processes exit. That retry/cache policy needs an OpenAI-side fix.

    I would also avoid deleting the active runtime directory manually while Codex is running; on Windows that can turn a clean lock failure into a partially staged state. WinBridge does not modify WindowsApps, and I would not expect it to guarantee a fix if the only problem is the updater lifecycle/backoff logic.

    The fact that your final attempt eventually succeeded is also useful evidence: it makes a persistent package-corruption explanation less likely and is consistent with the blocking handle eventually disappearing.

  5. scroner888-ux commented on Aug 25, 2026

    @scroner888-ux

    This looks like the same underlying issue as #40455 (which I opened independently, before finding this one). My report approaches it from a different angle — network-level packet capture rather than internal error logs — but points to the exact same subsystem and even the same bundle version (26.819.11345).

    Adding a few things that might help narrow this down further:

    1. Confirmed to also trigger on cold launch, not just the hourly background scheduler — I never left the app running for an hour; the ~400MB burst happens within the first 15 seconds of every fresh start (measured via pktmon, deduplicated by PktGroupId+PktNumber to rule out double-counting across NDIS capture points).
    2. DNS correlation: persistent.oaistatic.com resolves to two A records (104.18.32.47, 172.64.155.209); together they accounted for 98.9% of all captured traffic in a 63-second launch window.
    3. Reproduced across two consecutive Store updates (26.818.3698.0 → 26.818.8289.0) — so this isn't specific to one build. If the EPERM/rename-on-active-runtime root cause you found is accurate, that would explain why updating the app version alone doesn't fix it: the lock condition (runtime files in use by the running process) would still apply on the new build too.

    Given this, this bug seems to affect anyone who either keeps the app open long-term (hourly loop, as you found) or restarts it frequently (per-launch loop, as I found) — same root cause, different observed cadence. Closing my duplicate (#40455) and linking here.

  6. wakare commented on Aug 28, 2026

    @wakare

    Independent confirmation on Windows 11 x64. I am not attaching raw logs because they may contain local paths and session details.

    Environment

    • Codex Windows package: OpenAI.Codex_26.818.2441.0_x64__2p2nqsd0c76g0
    • Previously installed primary runtime: 26.813.12317
    • Runtime update target: 26.826.12353

    Network observations

    A local per-process/per-destination traffic collector observed:

    • about 3.79 GiB attributed to the Codex desktop executable over an approximately 8-hour capture window;
    • about 3.75 GiB of that traffic downloaded from persistent.oaistatic.com;
    • near-hourly bursts of approximately 503,300,000 bytes (~480 MiB) each;
    • at least 25 failed scheduled update attempts in approximately 24 hours in the desktop logs.

    The requested archive was:

    https://persistent.oaistatic.com/codex-primary-runtime/26.826.12353/codex-primary-runtime-win32-x64-26.826.12353.tar.gz
    

    Sanitized failure signature

    trigger=scheduled_update
    bundleVersion=26.826.12353
    errorCategory=permission_denied
    errorCode=EPERM
    failureStage=activate_runtime
    outcome=failed
    retryable=false
    errorMessage="EPERM: operation not permitted, rename
    'C:\Users\<redacted>\.cache\codex-runtimes\codex-primary-runtime'
    -> '...codex-primary-runtime.previous-<redacted>'"
    

    Process inspection showed a long-lived bundled pwsh.exe running from inside:

    C:\Users\<redacted>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe
    

    It was a child of the Codex process. Because the executable being used is inside the directory that activation tries to rename, this is consistent with Windows denying the rename while the old runtime is still mapped by a live helper process.

    This independently reproduces the same updater loop with a newer runtime target (26.826.12353). The important upstream issue is still the same: after a completed download and a retryable=false activation failure, the verified archive is not reused and the full payload is downloaded again on the next scheduled attempt. The updater should coordinate helper shutdown, defer activation until restart, retain the verified archive, and/or stop retrying the full download.

  7. abdulramonjemil commented on Aug 28, 2026

    @abdulramonjemil

    Now running into the same issue. Any reliable workarounds???

  8. scroner888-ux commented on Sep 1, 2026

    @scroner888-ux

    Independent confirmation on version 26.825.6671.0 (updated today via Microsoft Store, triggered by the same re-download loop this issue describes).

    Measured via Resource Monitor across two consecutive cold launches, ~1 minute apart, full close via tray between them:

    • Launch 1: codex.exe 613 KB/s, ChatGPT.exe 179 KB/s (~792 KB/s combined)
    • Launch 2: codex.exe 1019 KB/s, ChatGPT.exe 473 KB/s (~1.49 MB/s combined) — higher than launch 1, not lower

    This rules out "it's just the first-run download" as an explanation — the second launch was worse than the first, consistent with the activation failure described here causing the verified archive to be discarded and re-fetched (and possibly triggering additional requests, as several new remote endpoints appeared on the second launch that weren't present on the first).

  9. railgun20001 commented on Sep 23, 2026

    @railgun20001

    I hit the same Windows primary-runtime updater failure: repeated downloads followed by failureStage=activate_runtime, errorCode=EPERM while renaming %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime to a .previous-* directory. This was on Codex Desktop 26.917.6896.0, updating the runtime from 26.826.12353 to 26.905.11957.

    A Sysinternals Handle scan found two Code.exe (VS Code) processes holding a handle to codex-primary-runtime\dependencies\native\poppler\Library\bin. After I closed VS Code, a later scan found a bundled pwsh.exe holding DLLs under the same runtime; its parent was codex.exe. So VS Code can be one active consumer of the runtime, and Codex-launched shells can keep it in use too.

    Workaround that succeeded here: save work and fully close VS Code, restart Codex, then wait for the runtime update to finish. I did not need to delete the cache or manually rename the runtime. The subsequent install logged outcome=installed for 26.905.11957; executable probes and runtime validation passed with problemCount=0. A later dependency diagnosis reported installed=true, problemCount=0, and the active runtime.json now reports 26.905.11957.

    If you still see EPERM, run Sysinternals Handle as administrator and search for codex-primary-runtime to identify current holders before retrying. Run the scan from a system PowerShell outside Codex: a PowerShell executable bundled inside the runtime will itself show up as a holder.

    This is a local workaround for the activation/rename failure, not a fix for the updater discarding a verified download and fetching it again after a non-retryable failure. I also cannot infer from this result that it fixes the separate desktop crash symptoms reported elsewhere.

  10. WilliamsSum commented on Oct 26, 2026

    @WilliamsSum

    Additional reproduction: Windows desktop 26.1021.3705.0, observed 2026-10-25

    This hourly full-download / EPERM activation-failure loop is still reproducible on a later Windows desktop build.

    Environment

    Repeated scheduled attempts

    The local desktop logs contain the following source-selection and activation-failure pairs. All times below are UTC on 2026-10-25; these rows are scheduled updates, not the separate manual attempt also present in the logs.

    Download source logged Activation failed Error / stage Classification
    12:36:12.761 12:37:25.443 EPERM / activate_runtime retryable=false
    13:35:43.673 13:36:57.123 EPERM / activate_runtime retryable=false
    14:35:44.930 14:37:07.835 EPERM / activate_runtime retryable=false
    15:35:46.469 15:37:02.077 EPERM / activate_runtime retryable=false

    Normalized excerpt from the 14:37 outcome, with user paths and generated identifiers removed:

    2026-10-25T14:37:07.835Z
    primary_runtime_bundle_install_outcome
    bundleVersion=26.1022.11436
    durationMs=82906
    errorCategory=permission_denied
    errorCode=EPERM
    failureStage=activate_runtime
    outcome=failed
    retryable=false
    trigger=scheduled_update
    errorMessage="EPERM: operation not permitted, rename
      '%USERPROFILE%\\.cache\\codex-runtimes\\codex-primary-runtime'
      -> '<same-cache>\\codex-primary-runtime.previous-<uuid>'"
    

    Independently observed network burst

    During the 14:35 scheduled attempt, a local connection-counter sampler recorded this increase for the desktop process ChatGPT.exe (the executable name inside the Codex Windows package), counting only connections routed through the proxy:

    • 14:35:36.568Z: 1,520,539 cumulative downloaded bytes.
    • 14:36:37.083Z: 506,539,953 cumulative downloaded bytes.
    • Difference: 505,019,414 bytes in about 60.5 seconds.

    The download-source event preceded this burst; the EPERM activation error followed it. These sampled connection deltas are an observation lower bound, not an exact archive checksum or a complete accounting of historical bandwidth. No total historical traffic figure is claimed here.

    Multiple processes were running executables from the existing runtime directory. That is consistent with the in-use runtime concern in this issue, but the particular handle or process responsible for the rename failure was not isolated.

    Local workaround and verification

    Automatic workspace dependencies were disabled (workspace_dependencies=false). During a maintenance window, Codex and its old runtime tool processes were stopped, the previous runtime was retained for rollback, and a separately downloaded, SHA-256-verified official 26.1024.11018 bundle was activated offline. Unrelated user processes were preserved.

    The new runtime's Node, Python and PowerShell executables launched successfully, and Codex reopened at 2026-10-25T15:48:05Z. During the subsequent check at approximately 17:00Z, the active runtime version was confirmed, the feature remained disabled, and the still-updating desktop logs contained no new runtime-download or update-failure events after maintenance. That spans the prior hourly retry interval.

    This combined workaround does not establish that the updater defect itself is fixed, or that changing the configuration alone reliably cancels an already running updater. The automatic dependency updater was left disabled.

    Requested behavior

    Please prevent repeated full archive downloads after a non-retryable activation failure: retain and reuse a verified download, defer activation until the active runtime can be replaced, stop or back off repeated attempts, and expose a visible restart-to-finish / bandwidth warning.

    Only this sanitized technical summary is shared; raw logs, session transcripts, credentials, private URLs and personal filesystem paths are not attached.

  11. railgun20001 commented on Oct 26, 2026

    @railgun20001
  12. Joyridr commented on Oct 29, 2026

    @Joyridr

    Can confirm this still happens in 26.1023.6123.0 / 26.1023.6621.0 on Windows 11, where [primary-runtime-installer] repeatedly unpacks ~1.20 GB into %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\.staging-* and fails activation with EPERM (see also #58009).

    Why it happens & immediate local workaround

    1. Why activation fails with EPERM: On Windows, if any background child process spawned from codex-primary-runtime\dependencies\node\node.exe (such as @oai/artifact-tool or cua_node) still holds an open handle inside codex-primary-runtime, the final directory swap (fs.rename) from .staging-<id> fails with EPERM.
    2. Why it loops: Because the final swap fails, %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\runtime.json stays stuck on an older "bundleVersion" (e.g. "26.909.12148"), even when the extracted runtime binaries are already present.

    Workaround for affected users

    1. Delete any leftover .staging-* directories inside %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\.
    2. Check the target bundle version expected by your installed MSIX package (visible in the desktop logs or bundled manifest) and update "bundleVersion" in %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\runtime.json to match (e.g., "26.1025.11240").

    Once runtime.json matches the active bundle version, [primary-runtime-installer] immediately stops re-downloading/unpacking the 1.2 GB archive.

  13. TinasyChiang commented on Nov 1, 2026

    @TinasyChiang

    Additional user reproduction (Windows desktop): on cold launch, my Flash proxy traffic meter shows a several-hundred-megabyte download associated with using the ChatGPT desktop app. In one observed 24m35s window, the meter showed 594.1 MB received and 28.9 MB sent while ChatGPT was the only app I had open. I have not captured per-process packet data or confirmed the destination host, so the figures are proxy-level totals rather than a packet-level attribution. The repeated launch-time download symptom appears consistent with this report. I have not attached the screenshot because it contains network address information.

  14. dreamer12532779-afk commented on Nov 2, 2026

    @dreamer12532779-afk

    Additional reproduction, observed November 1–2, 2026

    Windows primary-runtime updater still re-downloads ~511 MB after EPERM; 26 failures and ~13.3 GB estimated traffic on desktop 26.1027.3384.0

    Impact
    The desktop app repeatedly downloads a large primary-runtime archive in the background, then fails to activate it. This has consumed my paid VPN/proxy data allowance and caused unnecessary cost. I need a fix that preserves normal Codex operation and the existing workspace dependency tools, without disabling documents, spreadsheets, presentations or PDF support.

    Environment

    • Windows x64, build 26300.9457; registry DisplayVersion 26H2.
    • Microsoft Store desktop package OpenAI.Codex_26.1027.3384.0_x64.
    • Existing usable primary runtime: 26.1029.11837.
    • Runtime repeatedly selected for installation: 26.1026.10807, win32-x64.
    • The app's read-only workspace dependency diagnosis still recognizes the existing 26.1029.11837 runtime and returns its tool paths.

    Observed failures
    Local desktop logs, deduplicated by bundleOperationId, contain 26 primary_runtime_bundle_install_outcome failures between 2026-11-01 17:56:30 and 2026-11-02 14:25:04 (Asia/Shanghai, UTC+08:00).

    • 20 trigger=scheduled_update
    • 2 trigger=startup_missing
    • 4 trigger=manual_install
      All 26 fail with failureStage=activate_runtime, errorCategory=permission_denied, errorCode=EPERM, outcome=failed. The outcome also reports retryable=false, yet the scheduled updater continues approximately hourly.

    Normalized error sample (local paths and generated identifiers removed):

    2026-11-02T06:04:06.598Z
    [primary-runtime-installer] primary_runtime_bundle_install_outcome
    bundleVersion=26.1026.10807
    durationMs=214468
    errorCategory=permission_denied
    errorCode=EPERM
    failureStage=activate_runtime
    outcome=failed
    retryable=false
    trigger=scheduled_update
    errorMessage="EPERM: operation not permitted, rename
    '%USERPROFILE%.cache\codex-runtimes\codex-primary-runtime'
    -> '\codex-primary-runtime.previous-'"

    Bandwidth evidence and limits
    The archive URL logged by the updater is:
    https://persistent.oaistatic.com/codex-primary-runtime/alpha/26.1026.10807/codex-primary-runtime-win32-x64-26.1026.10807.tar.gz
    A HEAD-only request returned HTTP 200 and Content-Length: 510862059. No full archive was downloaded as a diagnostic test.
    26 attempts multiplied by this archive size equal 13,282,413,534 bytes, approximately 13.3 GB decimal. This is an estimate based on archive size and activation-failure counts, not an exact VPN billing measurement.
    During a live attempt on November 2, the local proxy connection counter independently showed 386,520,152 downloaded bytes on one persistent.oaistatic.com connection. That attempt subsequently failed with EPERM at 14:25:04 local time and is included in the 26 failures.

    Active runtime consumer
    A read-only Windows Restart Manager resource query identified an active Node.js process using the existing runtime's node.exe. Process metadata maps it to @oai/artifact-tool/dist/artifact-session/host-daemon.mjs, launched by the desktop app. No processes were stopped. This is evidence of an active runtime consumer, not proof that it is the only cause of the directory rename failure.

    Temporary mitigation
    A reversible proxy rule currently blocks only the exact host persistent.oaistatic.com. The existing runtime, workspace_dependencies=true, normal ChatGPT proxy rules and domestic DIRECT rules are preserved. The block is live and the archive host has no active download connections. This stops additional large downloads but is not a root fix and also pauses other downloads hosted on that exact hostname.

    Requested resolution

    1. Stop or back off automatic retries after a non-retryable activation failure; do not download the same full archive every hour.
    2. Retain and reuse a verified download across activation failures.
    3. Coordinate the lifecycle of app-owned artifact/runtime helpers, or defer activation until a safe restart, rather than replacing an in-use runtime directory.
    4. Investigate why this client selects 26.1026.10807 while a usable 26.1029.11837 runtime is already installed.
    5. Provide a visible failure/bandwidth warning and a supported way to pause runtime updates independently of workspace dependency functionality.
    6. Please provide a tracking ID and a supported repair/update path that preserves normal Codex functionality. Please also advise how to submit the paid-data-loss evidence privately for review.

    Only this sanitized technical summary is intended for submission. Raw desktop logs, conversation transcripts, credentials, proxy subscription details, IP addresses, personal paths and generated session/operation IDs are not attached.

  15. Curiosi-Orch commented on Nov 3, 2026

    @Curiosi-Orch

    I don't think this issue will be resolved anytime soon. Here is a tool to interrupt these unexpected downloads and save your data. :) https://github.com/Curiosi-Orch/CodexProxyMask

  16. Marsupilami2001 commented on Nov 4, 2026

    @Marsupilami2001

    Follow-up: restart does not resolve the runtime activation lock (November 4, 2026)

    A further read-only investigation on Windows confirms that restarting Codex does not eliminate the underlying conflict: the desktop app launches its own artifact-session daemon directly from the active primary-runtime directory. The updater subsequently tries to rename that same directory during activation.

    Observed process chain

    • Codex launches a Node.js process from %USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\node.exe.
    • That process runs @oai/artifact-tool/dist/artifact-session/host-daemon.mjs within the runtime tree.
    • The primary-runtime installer then attempts to rename codex-primary-runtime to codex-primary-runtime.previous-<id>, failing with EPERM at failureStage=activate_runtime.
    • On a subsequent launch, Codex starts the daemon again from the same runtime location. Restarting alone therefore does not prevent the conflict.

    The process investigation identified PID 15032 as an active runtime consumer, but did not conclusively establish that this specific PID is the sole handle blocking the rename. The reproducible lifecycle conflict is the important finding.

    No processes were terminated, no files or configuration were changed, and no update was triggered during this investigation. Process/start-time observations were made on November 4, 2026 (CET).

    Suggested fix: Coordinate shutdown/restart of app-owned artifact-session/runtime helper processes before activation, or stage the update for an app exit/restart where the runtime directory is no longer in use. Independently, a non-retryable activation error must not cause another full archive download on the next hourly update check; preserve the verified archive or suppress retries until the blocking condition changes.

  17. bherreraicon commented on Nov 4, 2026

    @bherreraicon

    Español

    Puedo confirmar este problema en más de una máquina Windows y a través de varias actualizaciones recientes de Codex Desktop.

    Patrón observado repetidamente:

    • Después de actualizar Codex Desktop, aparece un nuevo hash de runtime bajo %LOCALAPPDATA%\OpenAI\Codex\bin.
    • En vez de crearse la carpeta final <hash>, Codex crea múltiples carpetas .staging-<hash>-XXXXXX.
    • La carpeta final no existe, aunque cada staging contiene un codex.exe válido y ejecutable.
    • La aplicación puede terminar mostrando errores secundarios como “Organization settings could not be loaded” o no localizar correctamente el CLI/runtime.
    • Reiniciar, cerrar sesión o volver a abrir la aplicación no corrige el problema.
    • Con Codex completamente cerrado, renombrar manualmente una de las carpetas .staging-<hash>-XXXXXX a <hash> funciona inmediatamente.
    • El codex.exe resultante ejecuta --version correctamente y Codex Desktop vuelve a iniciar.
    • Una vez reparado, pueden eliminarse los staging huérfanos sin afectar la instalación.

    Casos recientes que hemos reproducido:

    • Desktop 26.1027.6604.0 → hash b6c7fc9497179c98
    • Desktop 26.1029.7803.0 → hash a159911ff70742e9
    • CLI del caso más reciente: 0.166.0-alpha.6

    El mismo patrón se reprodujo también en una segunda máquina independiente.

    Workaround verificado:

    $base = "$env:LOCALAPPDATA\OpenAI\Codex\bin"
    
    $staging = Get-ChildItem $base -Directory |
        Where-Object Name -like ".staging-<HASH>-*" |
        Select-Object -First 1
    
    & "$($staging.FullName)\codex.exe" --version
    
    Rename-Item -Path $staging.FullName -NewName "<HASH>"
    
    & "$base\<HASH>\codex.exe" --version

    Después de esto, Codex vuelve a funcionar normalmente.

    Esto parece indicar que el contenido del staging ya es correcto y que el fallo está específicamente en la promoción/rename final del staging al directorio content-addressed. Sería muy útil que Codex tratara este fallo como recuperable: reintento acotado del rename, coordinación de una sola materialización por hash y limpieza posterior de staging huérfanos.


    English

    I can confirm this issue on more than one Windows machine and across several recent Codex Desktop updates.

    Repeatedly observed pattern:

    • After a Codex Desktop update, a new runtime hash appears under %LOCALAPPDATA%\OpenAI\Codex\bin.
    • Instead of creating the final <hash> directory, Codex creates multiple .staging-<hash>-XXXXXX directories.
    • The final directory is missing, even though each staging directory contains a valid, runnable codex.exe.
    • The app may then surface secondary errors such as “Organization settings could not be loaded” or fail to locate the CLI/runtime.
    • Restarting Windows, signing out, or reopening the app does not fix it.
    • With Codex fully stopped, manually renaming one .staging-<hash>-XXXXXX directory to <hash> succeeds immediately.
    • The resulting codex.exe runs --version successfully and Codex Desktop starts working again.
    • After recovery, orphaned staging directories can be deleted without affecting the working installation.

    Recent reproduced cases:

    • Desktop 26.1027.6604.0 → hash b6c7fc9497179c98
    • Desktop 26.1029.7803.0 → hash a159911ff70742e9
    • Latest reproduced CLI: 0.166.0-alpha.6

    The same pattern was also reproduced on a second independent Windows machine.

    Verified workaround:

    $base = "$env:LOCALAPPDATA\OpenAI\Codex\bin"
    
    $staging = Get-ChildItem $base -Directory |
        Where-Object Name -like ".staging-<HASH>-*" |
        Select-Object -First 1
    
    & "$($staging.FullName)\codex.exe" --version
    
    Rename-Item -Path $staging.FullName -NewName "<HASH>"
    
    & "$base\<HASH>\codex.exe" --version

    After this, Codex works normally again.

    This strongly suggests that the staged payload is already valid and that the failure is specifically in the final promotion/rename from staging to the content-addressed runtime directory. It would help if Codex treated this as recoverable: bounded retry/backoff around the rename itself, single-flight coordination per content hash, and cleanup of orphaned staging directories on the next successful launch.

  18. bherreraicon commented on Nov 4, 2026

    @bherreraicon

    🔧 Small human-readable summary / Resumen con un poco de humor

    🇪🇸 Versión corta: cada actualización nos está regalando una nueva colección de carpetas .staging-* 😅. El contenido está bien, el codex.exe funciona, pero la “mudanza” al directorio final no termina. Cerramos Codex, hacemos el rename manual y… 🧟‍♂️ Codex vuelve a la vida.

    🇺🇸 Short version: every update seems to gift us a fresh collection of .staging-* folders 😅. The payload is fine and codex.exe runs, but the final move to the content-addressed directory does not complete. Stop Codex, rename one staging folder manually and… 🧟‍♂️ Codex comes back to life.

    🧩 What makes this especially useful diagnostically:

    • same failure pattern across multiple Windows machines;
    • same successful manual recovery;
    • recurring after subsequent updates with a new hash;
    • no need to modify WindowsApps permissions;
    • no need for a permanent CODEX_CLI_PATH workaround when the final hash directory is created correctly.

    🙏 If maintainers can reproduce the final rename failure, a supported repair/retry path here would save users from having to perform the “staging resurrection ritual” after updates.

  19. cjhshady-alt commented on Nov 6, 2026

    @cjhshady-alt

    Additional reproduction on November 6, 2026

    The Windows primary-runtime download/activation loop is still reproducible after updating the desktop app. This follow-up adds a newer affected runtime, two explicit activation failures, sanitized structured log excerpts, and a successful manual recovery with the built-in spreadsheet tools still working.

    Environment

    • Windows x64, OS version 10.0.26300.0.
    • Desktop app reports 26.1029.70936, build 24905, production. Installed MSIX package version 26.1029.9216.0. The most recent app update check reported up_to_date.
    • Previously usable primary runtime 26.1103.10131, confirmed healthy by the client's dependency diagnosis.
    • Runtime selected by the actual client configuration at both launches on November 6 was 26.1104.11149, release latest, Windows x64 archive.
    • Archive size 506018696 bytes. SHA-256 5ec755e0d8a7a213d6b7e9bdff89a592d19ef293553d021cdcd344131beabfa9.
    • Public archive URL https://persistent.oaistatic.com/codex-primary-runtime/alpha/26.1104.11149/codex-primary-runtime-win32-x64-26.1104.11149.tar.gz.

    Observed sequence

    All timestamps below are UTC+08:00 on November 6, 2026.

    1. The earlier target 26.1103.10131 produced the same scheduled download / activate_runtime / EPERM sequence approximately hourly from 00:14 through 08:14. The failure events included retryable=false.
    2. At 08:56, manual activation of 26.1103.10131 succeeded after coordinating an identified artifact daemon. The client reported installed=true and problemCount=0 at 09:17.
    3. A client launch selected 26.1104.11149 at 09:21:24.875 and logged its download source at 09:21:24.927. Installation failed at 09:22:38.745 with errorCode=EPERM, failureStage=activate_runtime, trigger=startup_missing, and hasConfiguredRuntime=true.
    4. Another launch selected the same version, URL and SHA-256 at 09:26:08.878 and logged the download source again at 09:26:08.959. Installation failed again at 09:27:53.749 with the same activation error.
    5. At 09:32, the client still diagnosed the installed runtime as 26.1103.10131. Both attempts above have explicit failed outcomes. The error is the rename of <RUNTIME_DIR> to <BACKUP_DIR>.
    6. At 09:44, manual maintenance waited for other dependency consumers to exit, stopped one identity-verified artifact daemon, retained a rollback copy, and activated the verified 26.1104.11149 payload successfully. At 09:46, client diagnosis reported that version with installed=true and problemCount=0.
    7. An actual disposable workbook smoke test passed with artifact-tool 2.8.129, covering workbook creation, typed values, a SUM formula, recalculation 5 -> 7 -> 5, XLSX export/import, and value/formula round-trip assertions.

    These observations show recurrence when the client selects a newer runtime, even after the previous target has been successfully activated. Each failed attempt reached activate_runtime after logging the same archive source. The archive size above is package metadata. Exact aggregate transferred or billed bytes were not measured in this investigation.

    Failure mechanism and evidence limits

    The confirmed failure point is the local runtime-directory rename during activation. An app-owned artifact daemon used Node and native components inside the active runtime tree. Coordinating that consumer allowed the manual directory switch to complete. This supports a runtime-consumer lifecycle conflict as a leading explanation. The precise blocking handle at either failed rename remains unidentified.

    A later instantaneous read-only DELETE-access probe succeeded with Win32 error 0. Its scope was opening and closing a handle, so it provides no direct evidence about the earlier rename operation or its blocking handle.

    Read-only inspection of the installed updater showed staging cleanup after an install attempt and no durable reuse path for a verified archive after activation failure in the inspected path. A later startup or scheduled check can enter the install path again. The retryable=false result from an individual attempt therefore still permits the repeated-download loop through later invocations.

    Manual recovery restored the current runtime. Future-version recurrence remains unresolved.

    Requested fix while preserving built-in tools

    Please preserve the built-in document, spreadsheet, presentation and PDF/workspace-dependency tools as part of the solution.

    1. Separate download/verification from activation. Retain the verified archive or staged payload keyed by runtime version, platform and hash, and reuse it after a local activation failure.
    2. Represent activation failures such as EPERM as pending activation or pending restart, with bounded backoff and explicit status. Prevent the next startup or hourly check from fetching the identical archive again.
    3. Coordinate app-owned artifact hosts and other runtime consumers at a saved, idle maintenance window or complete application exit. Alternatively, use genuinely isolated versioned runtime directories and bind each consumer to its own immutable version.
    4. Make the state machine and retry policy consistent across startup, scheduled update, explicit install and recovery paths. A local activation error should retain useful download work across those entry points.
    5. Provide a supported production-mode runtime update control and a lifecycle interface that can establish saved/idle status before shutdown. The inspected dev/manual gate affects global build identity and database selection, so it has broader effects than a production runtime-update preference.

    Built-in tools remain enabled. This feedback task changes no application settings or runtime files. The successful spreadsheet test used a disposable workbook.

    Sanitized structured log excerpts

    The excerpts below were rebuilt using a field allowlist. They retain event times, versions, stages, error codes and public archive identifiers. Local paths are represented by role placeholders. Usernames, hostnames, account details, credentials, proxy details, PIDs, operation/session/thread identifiers, source log filenames, conversations and business files have been removed. Events from maintenance and smoke tests are explicitly labeled with their source.

    Structured runtime and recovery events, UTC+08:00
    # Sanitized structured excerpts; all times UTC+08:00. Not complete raw logs.
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T00:14:08.995000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T00:16:51.023000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T01:14:09.920000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T01:14:45.340000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T02:14:12.067000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T02:14:47.252000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T03:14:13.029000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T03:14:48.158000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T04:14:13.911000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T04:14:49.689000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T05:14:14.758000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T05:14:50.254000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T06:14:15.650000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T06:14:49.840000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T07:14:16.544000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T07:14:51.178000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T08:14:17.490000+08:00"}
    {"bundleVersion": "26.1103.10131", "errorCategory": "permission_denied", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureReason": "filesystem-error", "failureStage": "activate_runtime", "operation": "rename runtime directory", "release": "latest", "retryable": "false", "source": "client-runtime-log", "time": "2026-11-06T08:14:52.653000+08:00", "trigger": "scheduled_update"}
    {"bundleVersion": "26.1103.10131", "event": "manual_runtime_activation_completed", "fromVersion": "26.1026.10807", "rollback_backup_preserved": true, "source": "local-maintenance-status", "time": "2026-11-06T08:56:07.4634895+08:00", "verified_artifact_daemon_stopped_count": 1}
    {"bundleVersion": "26.1103.10131", "event": "primary_runtime_dependencies_diagnose_finished", "installed": "true", "problemCount": "0", "source": "client-runtime-log", "time": "2026-11-06T09:17:30.516000+08:00"}
    {"archive_bytes": 506018696, "archive_sha256": "5ec755e0d8a7a213d6b7e9bdff89a592d19ef293553d021cdcd344131beabfa9", "event": "runtime_config_selected", "latest_version": "26.1104.11149", "official_archive_url": "https://persistent.oaistatic.com/codex-primary-runtime/alpha/26.1104.11149/codex-primary-runtime-win32-x64-26.1104.11149.tar.gz", "source": "client-runtime-log", "time": "2026-11-06T09:21:24.875000+08:00"}
    {"event": "primary_runtime_install_started", "hasConfiguredRuntime": "true", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:21:24.926000+08:00", "trigger": "startup_missing"}
    {"bundleVersion": "26.1104.11149", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:21:24.927000+08:00"}
    {"bundleVersion": "26.1104.11149", "durationMs": "73820", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureStage": "activate_runtime", "hasConfiguredRuntime": "true", "operation": "rename <RUNTIME_DIR> -> <BACKUP_DIR>", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:22:38.745000+08:00", "trigger": "startup_missing"}
    {"bundleVersion": "26.1104.11149", "durationMs": "73826", "errorCode": "EPERM", "event": "primary_runtime_install_call_outcome", "failureStage": "activate_runtime", "hasConfiguredRuntime": "true", "operation": "rename <RUNTIME_DIR> -> <BACKUP_DIR>", "outcome": "failed", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:22:38.751000+08:00", "trigger": "startup_missing"}
    {"errorCode": "EPERM", "event": "primary_runtime_update_poll_failed", "source": "client-runtime-log", "time": "2026-11-06T09:22:38.751000+08:00"}
    {"archive_bytes": 506018696, "archive_sha256": "5ec755e0d8a7a213d6b7e9bdff89a592d19ef293553d021cdcd344131beabfa9", "event": "runtime_config_selected", "latest_version": "26.1104.11149", "official_archive_url": "https://persistent.oaistatic.com/codex-primary-runtime/alpha/26.1104.11149/codex-primary-runtime-win32-x64-26.1104.11149.tar.gz", "source": "client-runtime-log", "time": "2026-11-06T09:26:08.878000+08:00"}
    {"event": "primary_runtime_install_started", "hasConfiguredRuntime": "true", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:26:08.958000+08:00", "trigger": "startup_missing"}
    {"bundleVersion": "26.1104.11149", "event": "Primary runtime download source", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:26:08.959000+08:00"}
    {"bundleVersion": "26.1104.11149", "durationMs": "104792", "errorCode": "EPERM", "event": "primary_runtime_install_failed", "failureStage": "activate_runtime", "hasConfiguredRuntime": "true", "operation": "rename <RUNTIME_DIR> -> <BACKUP_DIR>", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:27:53.749000+08:00", "trigger": "startup_missing"}
    {"bundleVersion": "26.1104.11149", "durationMs": "104795", "errorCode": "EPERM", "event": "primary_runtime_install_call_outcome", "failureStage": "activate_runtime", "hasConfiguredRuntime": "true", "operation": "rename <RUNTIME_DIR> -> <BACKUP_DIR>", "outcome": "failed", "release": "latest", "source": "client-runtime-log", "time": "2026-11-06T09:27:53.753000+08:00", "trigger": "startup_missing"}
    {"errorCode": "EPERM", "event": "primary_runtime_update_poll_failed", "source": "client-runtime-log", "time": "2026-11-06T09:27:53.753000+08:00"}
    {"bundleVersion": "26.1103.10131", "event": "primary_runtime_dependencies_diagnose_finished", "installed": "true", "problemCount": "0", "source": "client-runtime-log", "time": "2026-11-06T09:32:34.028000+08:00"}
    {"event": "manual_stopping_artifact_daemon", "source": "local-maintenance-status", "time": "2026-11-06T09:44:36.1242724+08:00", "verified_artifact_daemon_stopped_count": 1}
    {"event": "manual_activating", "fromVersion": "26.1103.10131", "source": "local-maintenance-status", "time": "2026-11-06T09:44:36.6617030+08:00", "toVersion": "26.1104.11149", "verified_artifact_daemon_stopped_count": 1}
    {"artifactToolVersion": "2.8.129", "bundleVersion": "26.1104.11149", "event": "manual_completed", "fromVersion": "26.1103.10131", "nodeVersion": "v24.22.1", "pythonVersion": "Python 3.12.14", "rollbackBackupPreserved": true, "source": "local-maintenance-status", "time": "2026-11-06T09:44:53.8420577+08:00", "verified_artifact_daemon_stopped_count": 1}
    {"artifactToolVersion": "2.8.129", "bundleVersion": "26.1104.11149", "checks": ["Workbook.create", "typed values", "SUM formula calculation", "input change recalculation 5 -> 7 -> 5", "XLSX export", "XLSX import", "formula and values roundtrip"], "event": "disposable_workbook_smoke_passed", "finalFormula": "=SUM(B5:B6)", "finalValues": [[2], [3], [5]], "source": "local-smoke-result-file-modified-time", "success": true, "time": "2026-11-06T09:45:52.888882+08:00"}
    {"bundleVersion": "26.1104.11149", "event": "primary_runtime_dependencies_diagnose_finished", "installed": true, "problemCount": 0, "source": "client-runtime-log", "time": "2026-11-06T09:46:10.449+08:00"}
    {"deleted": false, "event": "instantaneous_delete_access_probe", "limit": "Not a rename test; did not identify the handle causing earlier activation failures.", "open_existing_delete_access_succeeded": true, "permissions_changed": false, "renamed": false, "source": "local-read-only-share-access-probe", "time": "2026-11-06T09:50:09.0291748+08:00", "win32_error": 0}
  20. shundao2025 commented on Nov 7, 2026

    @shundao2025

    I reproduced the archive activation loop on Windows x64 with desktop build 26.1103.4239.0. The installed primary runtime was 26.1103.10131 and the updater kept fetching 26.1104.22356 (508,599,655 bytes). The logs showed activate_runtime, EPERM, and retryable=false when renaming the active runtime directory. Later scheduled checks requested the same archive again.

    After ChatGPT and two PowerShell processes using the old runtime exited normally, I verified the SHA-256 of an archive left by an earlier attempt and activated it locally. The desktop client loaded the new runtime with zero reported problems. DOCX and XLSX read/write round trips passed, and no new download appeared during 70 minutes of observation. This was a manual recovery of the current version.

    Could you provide an official Windows build containing the updater fix, or identify the first build and rollout that includes it? The behavior I would like to verify on a real update is:

    1. The new runtime bundle downloads once and the verified archive is retained while the old runtime is in use, including across subsequent update checks.
    2. The updater activates the retained bundle automatically once the lock clears. The user does not have to close terminals or replace files manually.
    3. The desktop client loads the new runtime, and document and spreadsheet tools still work with actual DOCX and XLSX files.

    One follow-up on the MSIX path. On the same Windows x64 client, the runtime selection logs show frameworkEligible=true, frameworkEnabled=false, reason=gate-disabled, and runtimeSource=archive, even though the client manifest lists an x64 runtime MSIX.

    Could you confirm whether there is a supported way for eligible stable Windows clients to enable the Primary Runtime MSIX framework, and whether that update path can stage a verified package and defer activation without downloading it again? If MSIX is unavailable for this build, please identify the Windows build or rollout that will provide the same behavior for the archive updater.

  21. bherreraicon commented on Nov 9, 2026

    @bherreraicon

    🟢 Update: this time Windows sign-out was enough / Actualización: esta vez bastó cerrar sesión de Windows

    🇪🇸 Nueva observación, reproducida en dos máquinas al mismo tiempo:

    • Ambas máquinas se actualizaron a la misma build reciente de Codex Desktop.
    • Ambas mostraron inicialmente el mismo error que veníamos viendo tras actualizar.
    • En incidentes anteriores, cerrar sesión de Windows e incluso reiniciar la máquina NO resolvía el problema; terminábamos reparando manualmente la carpeta .staging-* y haciendo el rename al hash final.
    • Esta vez hicimos solamente cerrar sesión de Windows y volver a entrar.
    • En ambas máquinas, Codex arrancó correctamente después, sin rename manual, sin tocar CODEX_CLI_PATH y sin reconstruir el runtime.

    🧩 Esto parece importante porque sugiere que algo cambió para bien: quizá la build actual vuelve a intentar correctamente la promoción del runtime cuando desaparecen los handles/procesos de la sesión anterior.

    😄 En otras palabras: por primera vez en varias actualizaciones, no tuvimos que realizar el ritual de resurrección de .staging-*.

    Sería interesante confirmar si esto es resultado de una mejora deliberada en la lógica de retry/recovery. Si es así, va en la dirección correcta. 👍


    🇺🇸 New observation, reproduced on two machines at the same time:

    • Both Windows machines were updated to the same recent Codex Desktop build.
    • Both initially showed the same post-update failure pattern we had been seeing.
    • In previous incidents, signing out of Windows and even rebooting the machine did NOT fix it; we still had to manually promote a .staging-* directory to the final hash directory.
    • This time, we only signed out of Windows and signed back in.
    • On both machines, Codex started normally afterward, without any manual rename, without changing CODEX_CLI_PATH, and without rebuilding the runtime.

    🧩 This seems significant: it may indicate that the current build now retries or completes runtime promotion correctly once stale handles/processes from the previous Windows session are gone.

    😄 For the first time in several updates, the .staging-* resurrection ritual was not needed.

    If this behavior is the result of a recent recovery/retry improvement, it is definitely a step in the right direction. 👍

  22. litao1104 commented on Nov 20, 2026

    @litao1104

    It looks like this bug will never get fixed, since today is already November 20 2026.

  23. iu66666 commented on Nov 23, 2026

    @iu66666

    I can confirm that this issue is still reproducible on Windows in November 2026.

    • Codex Desktop version: 26.1117.3838.0
    • Target runtime version: 26.1119.11507
    • Error: EPERM during activate_runtime
    • Failed operation: renaming codex-primary-runtime to codex-primary-runtime.previous-*
    • Process Explorer showed node.exe loading a DLL from the active runtime directory.
    • The client repeatedly downloaded approximately 500 MB from persistent.oaistatic.com, consuming up to 10 GB of VPN traffic per day.

    Please consider deferring runtime activation while files are in use and retaining downloaded archives after activation failures instead of downloading them again. 这玩意至少消耗了我100G的节点流量,真坑

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

    appbugconnectivitywindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions