Skip to content

Windows desktop: local runtime preparation exhausts organization-policy startup deadline; Retry succeeds #48729

Open

Description

@QQ1364941371

What version of the Codex App are you using?

Windows MSIX package: 26.924.2738.0.
Installed app package.json version: 26.924.22138.
Bundled app-server: 0.158.0-alpha.2.1.
The same startup warning was also observed with Windows package 26.924.1866.0.

What subscription do you have?

Signed-in ChatGPT account. Exact plan was not captured for this report.

What platform is your computer?

Windows 10 Pro for Workstations, build 19045, x64; Microsoft Store installation on a non-system AppX volume.

What issue are you seeing?

Following recent updates, the first app launch displays the blocking "Organization settings could not be loaded" dialog. Clicking Retry then opens the app successfully. The user originally described this as the first launch after boot; the two inspected failure occurrences also coincide with different runtime versions, so a same-version every-boot reproduction is not yet established.

Sanitized startup log:

Desktop startup policy read failed attempt=1 phase=policy-read reason=timeout retrying=false

Read-only inspection of the installed JavaScript identified a local-preparation/request-budget interaction that reproduces this symptom without a network fault:

  1. initializeNodeNetworkPermissions establishes a 60-second outer deadline and passes at most 30 seconds to readStartupApplicationRequirements.
  2. The latter records its start time before resolving/preparing the local app-server launch configuration.
  3. On WindowsApps installations, this preparation can synchronously hash/copy the bundled executable and Node runtime into the local runtime cache.
  4. Only after preparation does the transport start. Its timer is computed as max(1, timeoutMs - elapsedPreparationTime).
  5. If local preparation takes more than 30 seconds, the newly started transport may get only 1 ms. If preparation also exhausts the 60-second outer deadline, the first timeout is logged with retrying=false.
  6. The dialog suggests network/proxy/firewall/account issues, although the policy RPC need not have been sent. Manual Retry resets the deadline and benefits from the now-prepared runtime.

Observed evidence and limitations

On September 27 (UTC), the app process started around 15:04:08; the new CLI cache file was created around 15:04:11; the new Node runtime cache directory was created around 15:04:12 and last modified around 15:05:23 (approximately 71 seconds). After Retry, normal app-server initialization completed (151 ms recorded) and configuration-requirements reads succeeded.

These filesystem times are not a function profiler, and early log events are buffered. They strongly fit the mechanism but do not prove the unique cause of every real failure. The live failure was not instrumented, and this report does not claim to rule out every concurrent factor.

What steps can reproduce the bug?

A deterministic isolated test used the actual extracted policy-read function and complete startup-requirements module from this installed app, with a simulated clock, local resolver, transport and policy boundary:

  • Advance the clock by 71 seconds during local launch preparation.
  • Let the mock transport open after 5 ms and return valid initialization/policy responses.
  • Original code: timeout, no automatic retry, dialog displayed, zero policy RPC requests.
  • Original code with simulated manual Retry: successful policy validation and startup.
  • Candidate excluding local preparation from both request and outer retry budgets: succeeds without the dialog.

This is synthetic source-level proof, not live patched Electron/MSIX or cold-boot acceptance. Production source was unmodified when this report was submitted.

What is the expected behavior?

Prepare the local runtime before charging the organization-policy request/retry budget, or account for preparation separately. Preserve fail-closed enforcement: genuine authentication, protocol, policy-validation and network failures must not be ignored. Report local initialization delays distinctly from network failure.

Additional information

Affected installed members:

  • .vite/build/startup-requirements-Bp7TI6kn.js
  • .vite/build/application-network-startup-CY4ZWOz-.js

A review-only candidate restarts the per-request timing after local preparation and returns that elapsed preparation time to the outer deadline. Twelve isolated tests pass, including real request-timeout simulation, server timeout, authentication rejection, invalid protocol, missing executable, policy-validation rejection and transient-503 retry. It does not disable the policy gate or use a background launcher.

Original member SHA-256:

  • startup-requirements: 9EBAAB3AA876547CC4FC4F2D6AD57E79A51649D74852AA2B523C0108326C3CC2
  • application-network-startup: 7936A5B6373BE818C7CCE78CAD7C18E4E156C8400D3B16F5B440D2626A1CC661

Related but not established duplicates: #48590 (same Windows dialog, different unresolved DNS theory and Retry still fails) and #48481 (macOS local backend exit incorrectly described as organization/network failure).

No credentials, conversation transcripts, personal paths or user configuration are included. No VPN, proxy, DNS, firewall, sign-in or organization-policy settings were changed during diagnosis.

Maintainer routing

CC @tibo-openai — sharing at the affected user's request. Could the desktop startup team review the local-runtime-preparation versus policy-deadline interaction above? The proposed correction preserves fail-closed organization-policy enforcement; no network configuration changes are requested.

Related relocation-performance report

#47770 independently reports slow synchronous Windows runtime materialization. This issue is narrower and complementary: charging that local work to both the organization-policy request and retry deadlines can produce a blocking, network-worded dialog before any policy RPC. A faster copy path may reduce its frequency, but separating the budgets is still necessary on sufficiently slow local preparation.

Local deployment finding

Read-only inspection found EnableEmbeddedAsarIntegrityValidation and OnlyLoadAppFromAsar enabled in the installed chrome.dll. The current ASAR header hash also matches the Integrity / ElectronAsar resource embedded in the signed ChatGPT.exe. Therefore a source-only local archive replacement is not being deployed: changing members requires a changed header, which no longer matches the signed executable. No integrity fuse, executable, ACL, or official package has been modified. An official packaged fix is needed to preserve the existing signature/update chain.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Sep 27, 2026
  2. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. ohjaewook8-prog commented on Sep 30, 2026

    @ohjaewook8-prog

    Additional read-only evidence from Windows MSIX build 26.928.2636.0:

    • The first launch took about 144 seconds before the first main-process log. The new cua_node directory's creation-to-last-write timestamp span was about 132 seconds. These timestamps are correlations, not function profiling.
    • Startup recorded phase=policy-read reason=timeout retrying=false. The local stdio app-server initialized successfully in 111 ms afterwards.
    • The installed build still has a synchronous per-file copyFileSync attempt followed by readFileSync / writeFileSync fallback for errno 6000 or UNKNOWN/-4094.
    • The policy-reader starts its timer before resolving the local launch configuration and subtracts preparation time from the request deadline. The outer retry deadline is also started before that preparation.
    • An isolated small-file reproduction against the installed packaged runtime selected 12 files totaling 4,459 bytes. All 12 initial copy attempts failed with UNKNOWN/-4094; fallback then succeeded. The observed strategy took 231.754 ms; direct byte copying took 8.795 ms. Both sets matched the source bytes. This is a small, order-dependent sample, not a whole-tree cold-cache benchmark, and does not establish a whole-app speedup.
    • A later same-version restart with the runtime cache already populated reached main-window ready-to-show in 5.127 seconds from process creation, with no policy-read failure. This excludes shortcut activation time before process creation.
    • A separate cloud WebSocket routing issue recovered with the existing TUN path. That recovery is not evidence that runtime materialization has been fixed.

    The installed executable has a valid OpenAI Authenticode signature. The Electron fuse wire is version 1 with both embedded ASAR integrity validation and ASAR-only loading enabled. No signed executable, archive, fuse, ACL, or organization policy was modified. No active runtime cache was deleted or replaced.

    Could the desktop startup team provide an official signed fix that:

    1. Handles consistently failing WindowsApps copy semantics once per source condition, rather than paying a failed copy attempt for every file.
    2. Moves heavy runtime preparation off the Electron main thread, or completes it during update staging before user-visible launch.
    3. Separates local preparation time from both the policy RPC timeout and the outer retry budget, without weakening policy enforcement.
    4. Validates the first launch with a genuinely unprepared runtime cache, including real policy/authentication failures, rather than using a fast warm restart as acceptance.

    The current restart is usable, but the update-first-launch defect has not been accepted as permanently fixed. Please identify the release/build containing the correction and its first-launch regression coverage.

  4. GuoYichenOVO commented on Oct 2, 2026

    @GuoYichenOVO

    Additional occurrence on a separate Windows x64 Microsoft Store installation, reported with the affected user's authorization.

    Package: OpenAI.Codex 26.928.4866.0. The previous package was 26.928.3736.0. The blocking Chinese dialog is “无法加载组织设置” (Organization settings could not be loaded), with Retry / Sign out / Quit.

    Observed relative timeline (exact date, timezone and wall-clock times omitted):

    • T+0: application process start.
    • Approximately T+14 seconds: new CLI runtime cache directory created.
    • Approximately T+15 seconds: new Node runtime cache directory created.
    • Approximately T+212 seconds: new ripgrep cache directory created.
    • Approximately T+235 seconds: first startup log resolves the copied CLI, Node and ripgrep paths, records stdio_transport_spawned, and immediately records:
    Desktop startup policy read failed attempt=1 phase=policy-read reason=timeout retrying=false
    

    Read-only inspection of the installed application-network-startup member confirms readStartupApplicationRequirements starts its clock before awaiting local launch preparation, then constructs its timer with Math.max(1, timeoutMs - (performance.now() - start)). The Windows preparation includes synchronous runtime hashing/materialization and removal of older cached runtimes. This is consistent with the budget interaction described in this issue.

    After runtime preparation completed, a separate diagnostic invocation of the new bundled CLI initialized in 185 ms and returned configRequirements/read successfully at 188 ms total (requirements: null). In the previous version, separate diagnostics also returned successfully with and without proxy environment variables. These are backend tests, not a complete cold-start Electron acceptance test.

    Limitations: filesystem creation times and process times are not a function profiler; no precise breakdown of copying versus cleanup versus antivirus overhead was captured. The evidence strongly supports local preparation consuming the deadline in this occurrence, but does not establish the cause of every dialog or rule out concurrent factors.

    Please review this startup budget separation and the misleading network-focused recovery message. Preserve policy enforcement and genuine request/authentication failures. No packaged source, integrity checks, authentication state, proxy or firewall settings were modified. This comment contains only sanitized diagnostic findings; no credentials, personal file paths or conversation transcripts.

  5. Asylum831 commented on Oct 3, 2026

    @Asylum831

    Additional occurrence after updating to Windows MSIX 26.930.3748.0, submitted with the affected user's explicit authorization. This is an update to the earlier diagnosis, not a claim that the old timeout implementation is unchanged.

    New evidence (October 3, 2026)

    The first launch after this update again showed the blocking Chinese "Unable to load organization settings" dialog.

    Sanitized log excerpt (UTC):

    2026-10-03T01:37:32.143Z warning Desktop startup policy read failed attempt=1 phase=preparation reason=timeout retrying=false
    

    Read-only inspection of the installed bundle shows an important improvement compared with 26.930.2377.0:

    • Local launch preparation and the policy RPC are now separate.
    • The 60-second policy retry deadline starts after preparation succeeds; each policy RPC retains a maximum 30-second timeout.
    • However, preparation itself has a 120,000 ms elapsed-time limit. The preparation wrapper races the promise against a timer and also checks elapsed time after it resolves.
    • The synchronous recursive runtime-copy path still tries copyFileSync per file, then falls back to readFileSync / writeFileSync for errno 6000 or UNKNOWN/-4094.

    Observed filesystem evidence for the newly prepared Node runtime:

    • First file creation: 2026-10-03T01:35:04.623Z.
    • Last file creation: 2026-10-03T01:37:24.901Z.
    • Timestamp span: 140.2778 seconds.
    • 2,367 files, totaling 251,349,184 bytes; the installed source has matching file count and total size.
    • SHA-256 comparisons for manifest.json, bin/node.exe, and bin/node_repl.exe all match the installed source. These are selected-file checks, not a claim of whole-tree hash verification.
    • Following recovery, configRequirements/read succeeded at 2026-10-03T01:37:47.037Z, with recorded duration 5 ms and no error code.
    • Runtime selection remained coreGateEnabledAtStartup=false, selectedRuntimeSource=bundled.

    Filesystem timestamps are not a function profiler and do not uniquely attribute the full delay to a single syscall. Nevertheless, the explicit phase=preparation timeout, the >120-second runtime materialization span, and subsequent successful policy reads strongly support a remaining local preparation deadline failure on this occurrence, rather than establishing a network or account failure.

    Remaining issue

    Separating the policy budget is a meaningful improvement, but the same user-visible blocker still occurs when cold runtime preparation exceeds the new 120-second budget. The unchanged slow copy path is related to #47770. A successful warm restart should not be considered first-launch regression acceptance.

    Could the desktop startup team review:

    1. Avoiding repeated predictably failing copy attempts for WindowsApps files, and moving heavy synchronous materialization off the UI/main thread or preparing it during update staging.
    2. Safe handling of completed/continuing preparation when the preparation budget expires, without weakening organization-policy enforcement.
    3. A distinct local-runtime preparation message instead of the network/proxy/firewall/organization-settings wording.
    4. Cold-cache, update-first-launch coverage where materialization exceeds 120 seconds, while retaining tests for genuine authentication, network, protocol and policy-validation failures.

    The installed app archive/executable, integrity checks, ACLs, policy settings and security protection were not modified. No conversation transcripts, project contents, memory data, credentials, account identifiers, personal filesystem paths or full configuration are included in this report.

  6. YanChao001 commented on Oct 5, 2026

    @YanChao001

    Additional occurrence on Windows MSIX 26.930.3930.0, following 26.930.2377.0, with measurements collected on October 5, 2026. The observed delay and official Retry recovery are consistent with the remaining preparation-deadline problem described in the October 3 update. This adds bounded copy-method measurements related to #47770 and a separate complete streaming-copy/full-verification test.

    Environment

    • Windows 11 25H2, x64, build 26200.9457.
    • Microsoft Store / MSIX package OpenAI.Codex 26.930.3930.0; package status Ok, executable signature valid.
    • The WindowsApps entry on the system drive is a junction to a non-system AppX volume. Both the installed source and per-user cache volumes are NTFS partitions on the same healthy NVMe SSD.
    • Examined packaged cua_node files (manifest.json, bin/node.exe, bin/node_repl.exe) have Archive, Encrypted attributes; the corresponding finalized cache files have Archive without Encrypted or Compressed.
    • The Codex CLI and VS Code extension remain usable when the Desktop GUI is blocked.

    Observed first launch and official recovery

    The first launch after this update created background ChatGPT.exe processes but did not provide a usable main window while the new bundled Node runtime was being prepared.

    • Process start / preparation begin to preparation completion: approximately 329.65 seconds (about 330 seconds).
    • New cua_node runtime: 2,367 files, totaling 251,349,200 bytes (approximately 239.7 MiB).
    • A subsequent comparison of all 2,367 files found matching relative paths, sizes, and SHA-256 digests between the installed source and finalized cache, with no mismatches. This is whole-tree verification, extending the selected-file checks reported earlier in this issue.
    • After preparation, the application had the blocking native organization-settings recovery dialog. The original phase-specific failure log was not captured in this occurrence.
    • Selecting the application's official Retry once then opened the main window within a few seconds, in the same desktop process. There was no restart between the dialog and successful window creation.

    No organization-policy check was disabled or bypassed to recover the window.

    Current deadline behavior

    Read-only inspection of the shipped .vite/build/application-network-startup-ouXbhtc5.js and .vite/build/startup-requirements-BXJhIMRW.js confirms that this build separates local preparation from the policy request/retry budgets: preparation has a 120,000 ms elapsed-time limit, followed by the policy request and retry budgets. This differs from the earlier implementation where local preparation consumed the approximately 30-second request / 60-second retry budgets.

    The preparation wrapper checks elapsed time after the preparation promise resolves as well as racing it against a timer. Consequently, a long synchronous preparation operation can complete its work and still be rejected for exceeding the 120-second limit. The roughly 330-second preparation span, installed code, observed recovery dialog, and successful same-process Retry support this mechanism as an inference. They do not substitute for an original phase-specific failure log or a trace of the first policy RPC.

    The shipped runtime-copy helper still makes a synchronous copyFileSync attempt for each file, and on errno 6000 or UNKNOWN/-4094 falls back to synchronous readFileSync plus writeFileSync. The recursive traversal and materialization path also use synchronous filesystem operations. This description summarizes the installed implementation; no production package code was changed.

    Bounded independent copy-method measurements

    Using independent Node.js 24.14, 32 small files from the same packaged runtime were tested with temporary diagnostic destinations. These are later, warm measurements, not a replay or profile of the original 330-second launch.

    Operation Median per file Outcome
    copyFileSync from the packaged source 35.52 ms 32/32 failed, code=UNKNOWN, errno=-4094
    readFileSync from the same packaged source 1.10 ms Succeeded
    copyFileSync from the finalized, unencrypted cache 0.70 ms Succeeded
    Direct readFileSync + writeFileSync from the packaged source 0.84 ms Succeeded

    These probes show a reproducible cost in the failed packaged-source copy attempts on this installation. They also demonstrate that the same bytes can be read and written successfully using the alternate byte-copy path. The sample medians should not be multiplied by the total file count to claim an exact explanation of the full startup delay.

    Complete streaming copy and full verification

    A separate test streamed the complete installed cua_node tree into an isolated, diagnostic-owned temporary directory and verified all relative file paths, sizes, and SHA-256 digests against the source before and after copying.

    Measurement Result
    Files 2,367
    Directories 337
    Bytes 251,349,200
    Streaming copy plus full per-file verification 25.8932106 seconds

    The copied runtime's three-file descriptor hash (manifest.json, bin/node.exe, bin/node_repl.exe) produced 45309f9050f7314b, matching the application's existing finalized cache key. All full-tree checks passed. The signed installed package and existing application cache were not modified by this test, and the isolated temporary copy was removed afterwards.

    This was a later warm test. The earlier approximately 329.65-second interval was an update-first-launch observation under different conditions, so these timings are not a controlled cold-start comparison. The result establishes that the complete bytes and required runtime descriptor can be reproduced and verified using a streaming path; it does not guarantee a 26-second first launch after the next update, or claim production launcher integration has been accepted.

    Evidence limits

    • The approximately 330-second interval is based on process, filesystem, and preparation/startup observations; it is not per-call profiling of the original launch.
    • The preparation-deadline diagnosis for this occurrence is inferred from inspected code and recovery behavior. The original phase-specific failure log was not captured.
    • The 32-file probe used an independent Node executable and warm files. It does not establish the production Electron runtime's exact per-file timings or a whole-app speedup.
    • The 25.893-second test includes a full copy and complete verification, but used a warm source and an isolated destination. It is not production cold-start or next-update acceptance.
    • The source Encrypted attribute and UNKNOWN/-4094 failures were observed directly. This occurrence did not capture the underlying native Win32 error for every failed production copy call, so it does not attribute every millisecond to encryption processing or security software.
    • Both volumes report healthy status and no corresponding recent storage error was found. That does not rule out all filesystem filters, contention, or other concurrent work.
    • Successful official Retry does not show that every organization-settings error has this cause, or that real network/authentication/policy failures should be ignored.

    Requested follow-up

    Could the desktop startup team retain the improved preparation/policy budget separation and address the remaining cold preparation behavior?

    1. Avoid thousands of predictably failing packaged-source copy attempts where an appropriate Windows copy mode or buffered copy is required, while preserving validation, staging, and atomic finalization.
    2. Move heavy local materialization off the main/UI thread, or prepare it during update staging, with visible progress and a clear local-preparation diagnostic.
    3. Handle completed or continuing preparation safely when the preparation deadline expires, without weakening fail-closed organization-policy enforcement.
    4. Cover update-first-launch cases where local materialization exceeds 120 seconds. Warm-cache recovery alone should not count as regression acceptance.

    The installed archive/executable, integrity checks, ACLs, proxy, firewall, sign-in, security protection, and organization-policy settings were not changed. This comment contains selected diagnostic facts only, with no raw logs, configuration, credentials, account identifiers, session identifiers, conversation content, project contents, usernames, or personal paths attached.

  7. OrdinaryFolk01 commented on Oct 7, 2026

    @OrdinaryFolk01

    Windows desktop 26.1002.6548.0: first-launch runtime preparation exceeds 120-second limit

    Additional occurrence on Windows MSIX 26.1002.6548.0

    The first launch after updating again displayed the blocking Chinese dialog “无法加载组织设置” (“Organization settings could not be loaded”), with Retry / Sign out / Quit. The affected user reports that this recurs on the first launch after updates and explicitly requested this English report.

    This adds a newer affected build and an explicit preparation-phase timeout log to the remaining 120-second preparation-deadline behavior already discussed here.

    Environment

    • Microsoft Store / MSIX package: OpenAI.Codex 26.1002.6548.0.
    • Platform: Microsoft Windows NT 10.0.26340.0, x64.
    • Observation date: October 7, 2026.
    • Diagnostics were read-only; the installed package and active runtime cache were not modified.

    Observed evidence

    The desktop startup log records:

    Desktop startup policy read failed attempt=1 phase=preparation reason=timeout retrying=false
    

    The newly created local cua_node runtime contains 2,365 files. Across those files, the earliest-to-latest creation-time interval is 184.174 seconds, approximately 3 minutes 4 seconds. This exceeds the installed preparation wrapper's 120,000 ms limit.

    These are filesystem timestamps, not a profiler measurement of the copy function. They support a prolonged new-runtime materialization interval; they do not identify the exact contribution of copying, hashing, cleanup, filesystem filters, or other concurrent work.

    Read-only inspection of the installed members:

    • .vite/build/startup-requirements-BePnAl1c.js
    • .vite/build/application-network-startup-Bt0a8E1L.js

    confirms:

    1. The startup code awaits local launch preparation before entering policy-read and starting the policy retry deadline.
    2. The preparation wrapper races preparation against a 120-second timer and also rejects if elapsed time is at least 120 seconds after the promise resolves.
    3. For a WindowsApps source requiring relocation, preparation can synchronously copy the bundled runtime into the per-user cache. The recursive copy helper still tries copyFileSync per file, with readFileSync / writeFileSync fallback for errno 6000 or UNKNOWN/-4094.
    4. A preparation timeout is sent to the same recovery dialog used for organization-settings failures. The user-facing text suggests a network, proxy, firewall, or account issue even though this branch has not yet entered the policy-read stage.
    5. The logged retrying=false is consistent with the installed automatic-retry condition being limited to eligible policy-read failures.

    The inspected desktop process subsequently reached normal app startup, including the local app-server and an active chat. This report does not assert whether recovery involved a Retry click or a separate relaunch; that interaction was not captured.

    Reproduction pattern

    1. Update the Windows desktop app to a build with a bundled runtime that has not yet been prepared in the local cache.
    2. Launch the app for the first time after the update.
    3. On an affected installation where local runtime preparation exceeds 120 seconds, observe the blocking organization-settings dialog and the phase=preparation reason=timeout retrying=false log.
    4. Once the runtime cache exists, later startup can proceed without repeating the full materialization work.

    No cache was deleted to force another reproduction during this investigation. The user-reported repeated-update pattern and the inspected logs are the real-world evidence; no instrumented cold-start replay or controlled performance benchmark was run.

    Requested fix

    Please address the remaining update-first-launch behavior while retaining the improved separation between local preparation and policy requests:

    • Optimize packaged-runtime materialization, including the per-file failed-copy/fallback path where applicable, and move heavy synchronous work off the main/UI thread or into update staging.
    • Handle completed or continuing preparation safely when the preparation deadline expires, rather than presenting it as an organization/network failure.
    • Show progress and a specific local-runtime preparation diagnostic.
    • Add coverage for a genuinely unprepared runtime taking more than 120 seconds, alongside genuine authentication, network, protocol, and policy-validation failures.

    The evidence strongly supports local preparation exceeding its deadline in this occurrence. It does not prove that every organization-settings dialog has this cause or that every fallback copy attempt failed on this installation.

    Only selected diagnostic facts are included. No credentials, account or session identifiers, personal filesystem paths, conversation transcripts, project contents, or full configuration files are attached.

  8. NoelCornel commented on Oct 7, 2026

    @NoelCornel

    Additional reproduction on Windows desktop 26.1002.6548.0 (October 7, 2026)

    Adding a sanitized latest-build reproduction to this existing startup-deadline issue, rather than filing a duplicate. Related runtime-materialization performance report: #47770.

    Verified versions

    • Windows 11 x64, build 26100.
    • Microsoft Store/MSIX package updated successfully from 26.930.7945.0 to 26.1002.6548.0; both the registered AppX version and new packaged executable path were verified.
    • New desktop-bundled CLI: 0.162.0-alpha.2.
    • Independent npm CLI: 0.160.1 (separate install; updating it did not fix desktop startup).

    Sanitized installation / migration topology

    • The registered C:\Program Files\WindowsApps\OpenAI.Codex_<version>_x64__<family> directory is a Junction to D:\WindowsApps\OpenAI.Codex_<version>_x64__<family>.
    • D: is an online non-system AppX volume.
    • Package LocalCache and LocalState under %LOCALAPPDATA%\Packages\<package-family> are Junctions to D:\WpSystem\<SID>\AppData\Local\Packages\<package-family>\....
    • %USERPROFILE%\.codex is a Junction to a normal directory on E:; CODEX_HOME points to that same E: directory. The current project/workspace is also on E:.
    • The materialized runtime directory %LOCALAPPDATA%\OpenAI\Codex is a normal directory under the C: user profile, not a Junction.
    • Packaged app\resources\cua_node\bin\node.exe exists and has the Windows Encrypted attribute.
    • No C:-only installation / non-Junction CODEX_HOME A/B test has been performed. The topology is a potential contributing condition, not proof that moving the project or CODEX_HOME caused the failure.

    Observed post-update timeline (UTC+08:00)

    • New desktop main process started at 16:32:42.
    • The CUA cache key changed from 71e3f41277f96d73 to 2c9e75c4e9c71beb.
    • The new CUA tree has 2,365 files / 251,256,760 bytes. Earliest-to-latest file CreationTime spans 179.6996 seconds, approximately 16:32:51 to 16:35:50.
    • A blocking “Organization settings could not be loaded” dialog appeared.
    • After the user selected Retry, startup recovered. The log records:
    2026-10-07T08:38:58.389Z warning Desktop startup policy read failed attempt=1 phase=preparation reason=timeout retrying=false
    2026-10-07T08:38:59.371Z info [AppServerConnection] initialize_handshake_result durationMs=340 outcome=success transportKind=stdio
    
    • The preceding package also produced phase=preparation reason=timeout, with 2,367 files / 251,349,184 bytes materialized over approximately 176 seconds. A subsequent warm launch of that package succeeded without the dialog.

    Source inspection and important limits
    Read-only inspection of the new installed .vite/build/startup-requirements-BePnAl1c.js still shows a 120,000 ms preparation deadline, a Promise.race against that deadline, and an elapsed-time check after preparation returns. The current observed failure is phase=preparation, distinct from the older policy-read budget described in the initial issue.

    Filesystem creation spans are not a profiler: these measurements locate slow local CUA preparation, but do not isolate decompression, source copying, metadata work, per-file fallback costs or filtering. A later [install-primary-runtime] primary_runtime_selection ... runtimeSource=archive log belongs to the primary runtime after Retry, not evidence that the earlier CUA preparation was .tar.gz extraction. No cache was deleted to manufacture this reproduction, and no signed application binaries, integrity settings, organization policy or proxy settings were modified.

    Requested investigation
    Please investigate local runtime preparation exceeding the startup deadline on secondary AppX volumes / packaged-file contexts, and report this phase separately from network/account-policy errors. Any fix should retain fail-closed organization-policy enforcement. We have not established that every Windows reboot or future update will reproduce the issue.

    Only sanitized versions, path topology and minimal diagnostic excerpts are shared here; no raw logs, chat transcripts, usernames, SIDs, credentials or project names are attached.

  9. Nitroglycerine-X commented on Oct 16, 2026

    @Nitroglycerine-X

    Further update-first-launch reproduction on Windows MSIX 26.1013.3656.0 (October 16, 2026)

    The affected user reports the same pattern: the first launch after an update waits several minutes, shows the Chinese “Unable to load organization settings” dialog, and recovers after Retry. Later launches of the same build are fast.

    Read-only checks found:

    • The installed Microsoft Store package is OpenAI.Codex 26.1013.3656.0 (the preceding running build was 26.1007.9446.0).

    • The new per-user cua_node runtime cache contains 2,369 files totaling 252,264,484 bytes. File creation timestamps span 244.7 seconds. These timestamps are a correlation, not a function profile.

    • The desktop log starts immediately before the new runtime cache begins to materialize. About four minutes later it records:

      Desktop startup policy read failed attempt=1 phase=preparation reason=timeout retrying=false
      
    • After startup continued, the local configRequirements/read request returned without an error, and the account lookup reported a signed-in ChatGPT account and result=succeeded.

    • The app package is installed on a secondary AppX volume through a WindowsApps junction. The new runtime cache is on the system volume. This topology may contribute to preparation cost but is not proven to be the unique cause.

    The phase=preparation timeout, 244.7-second new-runtime creation span, and successful later policy/account reads strongly support the existing local-preparation deadline diagnosis for this occurrence. The network wording in the dialog does not establish a network failure. This check did not profile individual copy operations or verify whether the newest build's preparation implementation changed.

    The app package, runtime cache, integrity settings, proxy, firewall, sign-in state, and organization policy were not modified. No raw logs, credentials, account identifiers, usernames, personal paths, sessions, or conversation contents are included here.

  10. Xieyuha commented on Oct 17, 2026

    @Xieyuha

    Additional verified occurrence on Windows desktop 26.1013.4894.0, submitted with the affected user's explicit approval of this public destination and sanitized diagnostic content.

    The desktop log records Desktop startup policy read failed attempt=1 phase=preparation reason=timeout retrying=false. File creation timestamps for the newly prepared runtime span approximately 130 seconds. That timestamp span is not a function profiler, but is consistent with preparation exceeding the installed code's 120-second limit. Later configRequirements/read calls succeed with no error.

    Read-only inspection of the installed startup helper confirms a 120,000 ms preparation deadline and a post-resolution elapsed-time check. An isolated test of the exact extracted helper, with a simulated clock and successful preparation promise, succeeds at 1,000 ms and 119,999 ms, but throws timeout at 120,000 ms and 130,150 ms. All four assertions passed. This is an isolated behavior test, not a full cold-start acceptance test. No production code or policy enforcement was modified.

    Please fix handling of slow local runtime preparation and the misleading organization/network-settings dialog, and identify the desktop release containing the fix. A successful warm retry does not establish that the next update's first launch is fixed.

    Only the approved version, error type, measurements and test findings are included here. No personal paths, usernames, account identifiers, credentials, raw logs or chat contents are attached.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions