codex icon indicating copy to clipboard operation
codex copied to clipboard

[Windows] Recurring "workspace routing discovery timed out" during goals and subagent workflows

Open InTheta opened this issue 1 month ago • 16 comments

What version of the Codex App are you using?

Windows package OpenAI.Codex: 26.1013.3656.0. The latest local app-server startup log reports 0.163.0-alpha.10.2. The timeout examples below span earlier app processes as well; the exact runtime version for each failure has not been established.

What platform is your computer?

Windows x64, release 25H2, OS build 26200.9711.

What issue are you seeing?

The Codex Windows desktop app repeatedly reports:

workspace routing discovery timed out

This keeps happening during use of goals and subagents, disrupting those workflows. This is the user's observed context; a deterministic minimal reproduction and causal relationship to goals/subagents have not yet been established.

Inspection of local desktop logs confirms 12 matching account/read request failures on 15–16 October 2026, across multiple app processes. Each request takes approximately 15 seconds before returning error code -32603. The same failures are followed by Failed to read service tier for request with the same error.

What steps can reproduce the bug?

  1. Use the Codex Windows desktop app with an authenticated account.
  2. Work with goals and subagents.
  3. During ongoing use, the workspace-routing timeout recurs.

These are the observed workflow conditions, not a verified deterministic reproduction. Exact goal/subagent actions triggering the timeout remain unknown.

What is the expected behavior?

Goals and subagent workflows should run reliably without recurring workspace-routing discovery timeouts. If discovery temporarily fails, the app should recover and show actionable guidance.

Additional information

Selected, sanitized diagnostic fields from the desktop logs (timestamps are UTC):

Timestamp Method Duration (ms) Error code Pending count after
2026-10-15T09:41:55.562Z account/read 15019 -32603 9
2026-10-15T11:56:39.736Z account/read 15048 -32603 2
2026-10-15T19:15:27.937Z account/read 15013 -32603 2
2026-10-15T23:12:13.781Z account/read 15010 -32603 2
2026-10-15T23:18:45.632Z account/read 15023 -32603 2
2026-10-15T23:28:14.746Z account/read 15516 -32603 2
2026-10-15T23:33:09.819Z account/read 15016 -32603 8
2026-10-15T23:35:12.330Z account/read 15005 -32603 4
2026-10-15T23:59:21.745Z account/read 15018 -32603 14
2026-10-16T00:09:46.487Z account/read 15004 -32603 2
2026-10-16T06:58:05.597Z account/read 15012 -32603 8
2026-10-16T07:10:50.493Z account/read 15006 -32603 5

All rows have error message workspace routing discovery timed out, source account, priority critical, and conversationId none. Queue waits are 0–1 ms. This identifies a repeated account/workspace discovery failure, but does not establish its root cause or connect an individual timeout to a particular goal/subagent.

Related reports with the same error family:

  • #50828 (Windows desktop sign-in)
  • #53520 (Windows desktop login timeout)
  • #47145 (Windows bundled-runtime workspace routing)
  • #49921 (macOS workspace-routing timeout)

Please investigate whether this is the same underlying workspace-routing issue and specifically its impact on ongoing goals/subagent workflows. Only selected diagnostic fields are included; no raw session transcripts, credentials, account identifiers, or local paths are attached.

InTheta avatar Oct 16 '26 07:10 InTheta

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

  • #54462
  • #53520

Powered by Codex Action

github-actions[bot] avatar Oct 16 '26 07:10 github-actions[bot]

Additional Windows desktop report: persistent discovery timeouts until app restart

Codex Desktop on Windows repeatedly reports:

workspace routing discovery timed out

The errors occurred while preparing or starting model requests. This is additional evidence for the same error family; a shared root cause with the original goals/subagent report has not been established.

Observed on 2026-10-17 (all times UTC):

  • Local diagnostic queries found 7 failed turns, 110 retry log entries, and 2 startup/prewarm errors. These are log-entry counts, not 119 separate incidents.
  • Two earlier app-server processes were affected.
  • Last observed failure: 19:02:40 UTC.
  • App restart: 19:06 UTC. Subsequent model connections succeeded during the follow-up checks.
  • Automatic fallback to HTTP at 19:01:03 UTC did not resolve the failure.
  • ChatGPT login status was valid.
  • No custom proxy or CA environment variables were configured.

Versions at the time of investigation:

  • Desktop app: 26.1013.40934, build 20770, production channel; updater reported up_to_date.
  • Windows package: 26.1013.4894.0. This is a separate version field from the desktop app version.
  • Bundled runtime: codex-cli 0.163.0-alpha.10.2.
  • The active runtime matched the packaged runtime.

Expected behavior / requested investigation:

Please investigate recovery after routing-discovery timeouts and provide a supported recovery that does not require restarting the desktop app. A suggested regression check is that, after delayed, failed, or cancelled discovery, a later model request can recover within the same app-server process.

The exact trigger, deterministic minimal reproduction, and internal root cause remain unknown. The observations do not establish a specific internal deadlock or cache defect.

Privacy: Text-only report. No raw logs, conversation contents, file paths, account identifiers, email addresses, tokens, session identifiers, or session transcripts are attached.

AndyGebel avatar Oct 18 '26 04:10 AndyGebel

Follow-up: recurrence on 2026-10-18, checked on 2026-10-19

Additional findings following the previous report. All times below are UTC.

  • The exact error workspace routing discovery timed out recurred on 2026-10-18 at 04:32:21 UTC, after the previous report, in codex_core::responses_retry.
  • In the inspected diagnostic records since 2026-10-18 00:00 UTC, this was one additional matching retry entry. This does not by itself establish a fully failed turn; no matching terminal turn error was found in the follow-up check.
  • No new matching timeout was found on 2026-10-19 through the checked log snapshot at 04:15:10 UTC.
  • Successful model WebSocket connections were recorded as recently as 2026-10-19 04:15:09 UTC. However, a successful connection in the same earlier process context after the recurrence could not be established. Therefore, neither automatic recovery in that process nor a restart caused by this specific timeout is confirmed.
  • The later successful connections are not evidence of a permanent fix. The exact trigger and internal root cause remain unknown.
  • No new version check was performed for this follow-up; the version information in the previous report should not be assumed revalidated.

Please include this recurrence in the investigation and advise on supported recovery without restarting the desktop app.

Privacy: This update contains only the error text, technical logger name, counts and UTC times. No raw logs, conversation contents, local paths, account/session/process identifiers, credentials, or attachments are included.

AndyGebel avatar Oct 19 '26 14:10 AndyGebel

me too

Yuutakasan avatar Oct 20 '26 00:10 Yuutakasan

me too

xiaokunhou avatar Oct 21 '26 14:10 xiaokunhou

Linux reproduction: workspace-routing timeouts exhaust retries and block long-running Goals (0.163.0)

Adding independent Linux observations to #54540. Five long-running Goal turns terminated with the same routing-timeout error. The immediate failure propagation can be traced through the rust-v0.163.0 source, although the underlying cause of the routing stall remains unconfirmed.

Environment

  • Ubuntu 26.04, Linux x86_64
  • Managed app-server daemon: 0.163.0-x86_64-unknown-linux-musl
  • TUI client: 0.160.0
  • ChatGPT Plus authentication; no configured proxy environment variables
  • Single-thread Goal workloads using gpt-6-luna, effort=max
  • Responses-over-WebSocket transport; turns lasting approximately 4–25 hours

Observed failures

Five Goal turns terminated during October 19–22, 2026, with the identical terminal error:

{"type":"task_complete","error":{"message":"workspace routing discovery timed out","codex_error_info":"other"}}

Elapsed time from the last token_count event to task_complete:

Failure (UTC) Elapsed
Oct 19, 12:30:20 96.229 s
Oct 19, 18:01:17 96.196 s
Oct 20, 16:31:08 96.634 s
Oct 21, 23:30:35 95.905 s
Oct 22, 12:23:22 96.300 s

These durations closely match six 15-second routing-discovery attempts plus five exponential backoffs (nominal total: 96.2 seconds).

A separate recoverable occurrence on October 19 shows four consecutive sampling_error=workspace routing discovery timed out retries in logs_2.sqlite (at 15.0/15.2/15.4/15.8s spacing), followed by a successful fifth attempt with auth_connection_reused="true".

This indicates that routing-discovery failures can be transient. Connection reuse was observed on recovery, but the health of the WebSocket during each failed attempt was not independently established.

Failure propagation in rust-v0.163.0

  1. Sampling request setup calls current_client_setup(ClientRouting::Workspace) (codex-rs/core/src/client.rs:1984), reaching workspace discovery through the authentication manager.
  2. read_account is wrapped in a 15-second timeout (codex-rs/app-server/src/request_processors/account_processor/workspace_routing.rs:433).
  3. DiscoveryTimeout is converted to an I/O error (workspace_routing.rs:117-127). CodexErrorDetails::Io is retryable (codex-rs/protocol/src/error.rs:451), using the normal sampling retry budget.
  4. DEFAULT_STREAM_MAX_RETRIES = 5 (codex-rs/model-provider-info/src/lib.rs:67) permits five retries after the initial attempt, consistent with the observed ~96-second failures.
  5. Once retries are exhausted, GoalExtension::on_turn_error maps the resulting non-usage-limit error to ActiveGoalStopReason::TurnError (codex-rs/ext/goal/src/extension.rs:423-435), which transitions the Goal to Blocked (codex-rs/ext/goal/src/runtime.rs:316-317). It does not automatically resume.

The relevant routing timeout and retry paths were compared across versions 0.160.0–0.163.0 without finding a change explaining the observed behavior. This does not exclude regressions elsewhere in the client or backend.

Proxy fallback and diagnostics

The SystemProxyFallback feature defaults to enabled in rust-v0.163.0. When active, exec_bootstrap_get (codex-rs/backend-client/src/client.rs:343-376) bounds the first GET attempt to five seconds, then may retry using the system-proxy route (which resolves to direct when no proxy exists).

The fallback attempt has no per-request bound of its own in this function. A stalled retry may therefore consume the remaining outer 15-second routing-discovery budget.

This is consistent with the observations but does not establish which stage actually stalled. There is currently insufficient stage-level tracing to distinguish configuration loading, internal synchronization, DNS, connection establishment, response headers, response body, or authentication refresh. (workspace_routing.rs emits no tracing.)

Other observations

  • No concurrent thread activity was found in the inspected thread_history windows. This does not exclude internal daemon contention.
  • Examined system-journal windows showed no temporal correlation with USB storage resets or Tailscale DNS failures. Those observations do not rule out transient network or I/O problems.
  • At least one routing failure recovered on retry without a daemon restart.
  • Separately, the same backend's account/rateLimits/read route hit client-side 15s timeouts in TUI refresh logs on Oct 13/14/17 (local observation, no upstream issue filed for that route).

Suggested improvements

  1. Add stage-labeled, privacy-safe timing diagnostics to workspace discovery, distinguishing configuration loading, synchronization, HTTP request stages, and authentication refresh.
  2. Bound individual bootstrap HTTP attempts, including proxy-fallback retries, so a single stalled request cannot silently exhaust the discovery budget.
  3. Consider a dedicated structured error for routing-discovery timeouts and a recovery policy that does not permanently block long-running Goals after transient infrastructure failures.

The most consequential behavior here is not just the 15-second discovery failure: a temporary routing stall can exhaust retries and terminate a Goal that has already been running for many hours.

No credentials, account IDs, thread IDs, session transcripts, or local project paths are included.

nico2525nn avatar Oct 22 '26 14:10 nico2525nn

Additional macOS observations — 2026-10-23, Desktop build 21161

Observed in Codex Desktop 26.1016.51333 (21161) on macOS while existing goal chats were already working, rather than during a new login.

Native thread history directly confirmed two terminal failed turns with the exact error workspace routing discovery timed out:

Turn started (UTC) Terminal failure (UTC) Total turn duration
2026-10-23 04:01:06 2026-10-23 05:12:24 4,278.096 s
2026-10-23 05:07:19 2026-10-23 05:11:19 240.274 s

These are whole-turn durations, not measured durations of individual routing-discovery requests.

A separate tool permission-review attempt also failed with workspace routing discovery timed out; the tool explicitly said the action had not executed. A later ordinary attempt through the same review path succeeded. No protection was disabled and no unknown external write was replayed.

A bounded diagnostic using the bundled public App Server stdio interface completed initialize in 31.124 s, then thread/goal/get in 2.325 s. The existing goal was blocked. One explicitly authorized status-only recovery subsequently read back the same goal as active with objective, budget, creation time and accounting preserved. This verifies that administrative recovery, not subsequent productive continuation or a permanent routing fix. Our own administrative client's former 20-second startup deadline was separately corrected; that local change does not explain or fix the Desktop turn errors.

Important confounder: the machine had an earlier ENOSPC event. Later checks showed approximately 10–15 GiB available. Its causal relationship to these routing failures has not been established. We have no deterministic minimal reproduction and have not reproduced the proxy-specific explanation in #49921.

Please investigate recovery of existing goal chats after routing-discovery failures, including actionable structured error reporting and a supported way to continue the same goal without resetting its accounting or restarting healthy chats/apps. Human pauses, protected actions and real budget limits must remain respected.

Text-only observations: no account/thread/session IDs, private conversation contents, local paths, credentials or raw logs are attached.

brodyga45 avatar Oct 23 '26 06:10 brodyga45

Windows follow-up: measured multi-minute desktop coordination delays and cancellation gaps

Additional observations from 23 October 2026. This is related diagnostic evidence; a shared root cause with the original workspace-routing timeout is not established.

Versions actually used

  • Before restart: Windows Store package 26.1016.6573.0, app-reported version 26.1016.51333, build 21161, production channel; actual bundled App Server 0.163.0-alpha.11. The active copied runtime hash matched the packaged executable.
  • At 06:59:15 UTC, the desktop process restarted and the installed Store package became 26.1016.8622.0, with actual bundled runtime 0.163.0-alpha.11.2. The restart initiator is unknown. This investigation did not trigger it.
  • A separately installed 0.163.0 CLI was verified but was not the desktop App Server. Updating that CLI would not prove the desktop path changed.

Measured pre-restart behavior

Independent correlation of renderer tool start/response records found:

Operation UTC interval / response time Result
Desktop send_message_to_thread 06:23:20.615–06:30:04.069, 403.454 s Eventually returned successfully
App Server thread/read Response at 06:26:51.260, 209.263 s, queue wait 0 ms Returned without an error code
App Server mcpServerStatus/list Response at 06:26:51.356, 210.768 s, queue wait 1 ms Returned without an error code

MCP startup/discovery timeouts and orphan/no-waiting-promise response messages cluster around this interval. Across the inspected desktop-process logs, 1,064 renderer calls started and 1,063 responded. The final unmatched call had run approximately 52 seconds when shutdown produced a MessagePort error; that is not proof of an indefinite wait.

We also observed coordination calls reporting an unavailable local host and later recovering. Existing remote build work and desktop coordination have separate lifecycles: a desktop restart can invalidate a tool-host generation and interrupt an attached command. A reviewed, checkpointed remote job can continue independently; that is work preservation, not a fix for desktop routing.

The invalid thread-list limit was a separate, promptly recovered error

The model-authored caller used list_threads with a limit greater than 50. It received a deterministic validation failure and corrected the argument. A controlled live check rejected 51 in 21 ms, returned 50 entries in 1,476 ms, and returned one entry in 433 ms.

The installed renderer's advertised JSON schema specifies integer limits 1–50, matching server validation. The TypeScript declaration exposed to the model shows only limit?: number, omitting the bound. Preserving numeric bounds in the model-facing description would help prevent this error. It should not be retried unchanged as a transient failure.

The current list_threads contract exposes no cursor, unlike list_archived_threads and read_thread. Repeating the first call or inventing a cursor is not pagination. Three actual read_thread cursor pages returned distinct turns without duplicates. This validation error does not explain the 403-second coordination delay.

Concrete candidate improvements for maintainer review

Read-only inspection of the bundled app-tools adapter found that discovery does not propagate its caller cancellation signal, and a request awaiting initial pipe connection cannot finish cancellation until that connection settles. We prepared an isolated, unapplied candidate that:

  1. Propagates cancellation through discovery, with a 30-second discovery ceiling.
  2. Allows a cancelled connection waiter to return promptly while preserving another caller sharing that connection.
  3. Bounds initial pipe connection to 10 seconds.
  4. Adds no automatic replay of tools/call side effects and no short blanket response deadline for legitimate connected long-running tools.

Independent QA passed 11 focused tests against extracted source fixtures, including the original cancellation behavior versus the candidate, a real 30.002-second discovery deadline, a real 10.011-second connection deadline, shared-waiter preservation, disconnect, late response, pre-abort and reconnect without replay.

Limits: these are Linux/Node fixtures with surrounding schema/registration stubs, not the signed Windows renderer/named-pipe lifecycle. The candidate is not installed, is not a confirmed fix for shared App Server congestion, and has not passed an integrated desktop soak. No proprietary source or patch is attached here.

Suggested additional regression coverage: delayed/disconnected discovery; cancellation during connect; one blocked request without starving independent thread/read/status calls; stale-generation reconnect; repeated deterministic errors; legitimate long builds; preservation of thread/goal accounting and task ownership during task-specific recovery. Privacy-safe stage timing would help separate routing/network/auth work from local synchronization or event-loop congestion.

Supported deployment / next verification

Please advise on the supported route for a fixed app-tools adapter and desktop runtime, or include the change in an eligible signed Windows build. We have not edited session databases, cleared history/budgets/claims/circuits, weakened approval policy, replaced bundled executables, or treated a separate CLI update as desktop deployment.

A fresh observation on the actual new bundled runtime began at 07:03:53 UTC and is still running. The earlier observer stopped during restart after approximately 572 seconds; a 312-second capture gap is preserved. Those segments cannot count as a continuous two-hour soak. We will report measured results separately and will not infer a permanent fix from a restart, heartbeat, token usage, or elapsed time alone.

The current contribution policy directs external work to issues rather than code PRs, so this follow-up supplies evidence and possible fixes here. No permanent fix, deterministic hourly trigger, or specific internal deadlock is claimed.

Privacy: selected technical timings and versions only; no raw logs, account/thread/session IDs, private tracker/repository details, local paths, prompts, credentials or attachments.

Update: recurrence on the updated bundled runtime (23 October, 07:28–07:48 UTC)

The updated Windows desktop/build21477 with bundled0.163.0-alpha.11.2 reproduced the problem. Independent correlation measured thread/resume 107.627seconds, mcpServerStatus/list 106.466seconds, and same-thread thread/items/list 74.892seconds, all completing within approximately0.2seconds around07:30:17UTC. Other requests and15-second timer callbacks continued mid-window, and an independent observer kept sampling every31–33seconds. This rules out a complete Windows/app-server freeze for that interval; it does not identify the exact blocked resource.

Later requests reached 227.451seconds for config/read and 160.569seconds for mcpServerStatus/list. Coordination calls returned after about30seconds with underlying history timeouts and fallback validation errors for unsupported historical placement formats2/3. Those validation failures are a separate concrete boundary from the corrected list_threads limit. A subsequent independent QA attempt also failed workspace routing discovery timeout.

MCP startup notifications for numerous integrations were delivered together at a release boundary, including core adapter discovery failures. Public-main request scopes alone do not prove a single global lock: thread/resume and MCP registry requests use distinct serialization scopes, and status handling spawns asynchronous work. Shared initialization/configuration/registry waits or notification delivery need stage-level tracing against the actual bundled source revision. We are not claiming a proven deadlock or blaming a specific optional integration.

The desktop restarted again at approximately07:48UTC, with the same package/runtime hash. The user subsequently confirmed this and the later08:02UTC restart were manual. This investigation did not restart the app. The independent observer survived. Consequently there is still no accepted two-hour fixed-runtime soak, and the updated build cannot be called a fix. The isolated cancellation candidate remains unapplied and does not address all observed boundaries.

Narrowed admission/cancellation mechanism (independent reproduction)

The227.451-second config/read spent 100.254seconds in the desktop admission queue, so its full duration must not be attributed to Rust request execution. During the same congestion window, privacy-safe scheduler metadata records eight requests in flight, seventeen interactive requests queued, additional background backlog, and30–60-second queued expirations.

Independent QA reproduced a concrete mechanism using the actual scheduler and abandonment methods extracted read-only from the current signed desktop build. Four abandoned dispatched ordinary reads retain all four ordinary admission slots; a fifth remains queued until an actual response completes. Caller failure and admission release are separate: the existing outcome-unknown path releases a slot exactly once while retaining correlation for a late result. Tests also exercised coalescing and refusal to drop a request already sent to transport. Three real-scheduler tests and four narrower method tests passed. These are extracted-code fixtures, not full GUI transport acceptance, and the exact live request IDs/caller-destination flags responsible for the entire stall are not yet established.

A potential vendor repair should explicitly bound abandoned read-only work, preserve bounded accounting for requests still executing, propagate cancellation where supported, and isolate late responses. Simply freeing every slot can create unlimited backend concurrency; replaying uncertain writes is unsafe. Please distinguish read-only tombstones and transport cancellation from side-effecting outcomes. We have not changed scheduler limits, feature assignments, package/cache code or running integrations.

Six isolated native app-server A/B runs with the same bundled executable did not reproduce the multi-minute stall or show a meaningful benefit from process-only disabling two legacy optional MCP servers. This does not exercise Desktop callbacks/admission, so no global configuration change was made. The configured signed updater still reports build21477 up to date. We need a supported vendor fix or diagnostic route for the actual Desktop admission/cancellation layer; a separate CLI update is insufficient.

Completed baseline and current stability assessment (23 October, 09:25 UTC)

Independent QA verified227samples spanning 2h00m46.810s; collector wall time was 2h01m19.380s, maximum intersample gap33.570seconds. The observer survived the two user-confirmed manual restarts and completed normally. This is completed observation, not two hours of fixed-runtime acceptance: three desktop process epochs and recurring delays occurred. No candidate repair was installed.

The desktop has remained in the same process epoch since08:02UTC, using the same bundled0.163.0-alpha.11.2 runtime. However, current logs still show config/read141.281seconds, mcpServerStatus/list132.574seconds, and thread/read/thread/turns/list about97.4seconds. These requests show0–1ms desktop admission queue time, so the previously reproduced admission-retention mechanism cannot by itself explain all later delays. Backend/configuration/discovery waits remain an additional investigation boundary. We cannot currently claim stable operation or a sustained improvement from a fix. A lower maximum than the earlier403seconds is not a controlled before/after result.

At the current snapshot,187renderer tool executions had started and186had responses; the one unmatched call was a newly started wait_threads, not evidence of an indefinitely stuck call. Those counts alone do not establish useful task progress. Concurrent existing-owner work did produce concrete test/review milestones, but is not an integrated runtime acceptance pass.

Fix status: the cancellation candidate and scheduler findings described above remain unapplied, independently tested fixture evidence and possible vendor repair directions. Shared configuration, installed packages and feature assignments remain unchanged. The supported signed updater last reported build21477 up to date; no supported local deployment route for replacing the proprietary Desktop admission layer has been established. We still need a supported repair build/path before a new continuous fixed-runtime soak. Please keep the issue open.

Local repair implementation and independent adversarial testing

We implemented an isolated bounded-accounting/cancellation candidate around the current extracted Desktop queue and scheduler. It separates backend execution budget from caller admission, reserves bounded interrupt capacity, waits for real terminal settlement before freeing backend budget, handles shared callers, preserves uncertain writes, rejects duplicate IDs and fences stale connection responses. This is a local research candidate, not a signed Desktop deployment.

Independent QA found five initial candidate defects (resetting old backend budget, window identity, cancelled shared-result delivery, duplicate IDs and interrupt starvation). All were corrected in the isolated candidate. Current root coverage has9passing queue regressions, with independent targeted regressions passing. Four real Windows pipe integration cases pass:100ignored cancellations keep actual peer backend work bounded at4while interrupt succeeds;20terminal cancellation responses release accounting without delivering results to cancelled callers; original request frames precede cancellation; disposal during connect prevents later dispatch. Separate Windows transport tests include a120-second pending request and30-second discovery deadline.

QA also exposed a local close lifecycle gap: pending caller promises could remain unsettled if the client cleared its socket identity before disconnect handling, and a pending connection could later dispatch after disposal. The isolated tracked transport now rejects pending callers before clearing socket identity and fences in-progress connection/disposal. Local disconnect is deliberately NOT counted as proof that remote backend execution has ended.

The10,000-cycle real Windows pipe stress rerun passed and was independently verified:310.273seconds,0failures/0cancelledtests; actual peer saw10,000call frames and10,000cancel frames, backend work stayed bounded, correlation maps drained every1,000cycles, no result reached cancelled callers, and owned test resources were cleaned up. The first run exceeded an undersized240-second harness deadline and remains recorded as cancelled, not a pass; the successful rerun used480seconds with the same workload. This is sequential acknowledged-cancellation stress, not10,000concurrent unacknowledged calls, proof of memory-leak absence, or a GUI acceptance soak. These controlled peers do not prove actual server cancellation guarantees. Required integration remains explicit: the actual Desktop response router must carry connection generation/request-record identity and use settlement-filtered recipients, while backend termination acknowledgement must be genuine. No proprietary source or patch is published, installed package/cache remains unchanged, and there is still no accepted two-hour patched-Desktop soak. A supported vendor integration/build is still needed.

Actual isolated desktop integration — acceptance in progress (23 October, 13:35 UTC)

With the owner's authorization, the candidate now runs in a separate Windows desktop development copy using the actual desktop queue/response-router path and the same bundled App Server 0.163.0-alpha.11.2. This is an unsigned private experiment, not a vendor-supported or signed update. The installed application artifacts and original profile/history remain unchanged; no proprietary source, binaries or patch are being published.

The copy uses its own profile, home, runtime cache and IPC namespace. An initial isolation defect exposed a mismatch between the JavaScript runtime-cache root and the native reserved-marketplace trust root. We corrected the copied core child's environment only, leaving the desktop host environment intact and preserving reserved-source validation. Actual desktop marketplace restoration subsequently succeeded. This isolation correction is not evidence that the original hourly stall is fixed.

Independent QA approved initial actual-desktop functional qualification: seven meaningful tests, a real 120-second command completing normally, and separate scoped child termination. Two concurrent model-driven code/test campaigns and a read-only observer are now active on the patched desktop. A deliberate overlapping observation tail is scheduled because the campaigns began after the first collector; elapsed collection time will not be substituted for a full representative-work window.

A streaming test harness failed after approximately 91 seconds with a Windows metadata-file replacement error. Its bounded-retry correction resumed from preserved numbered records, retaining the failed attempt and approximately 62-second gap. That component will not be reported as an uninterrupted pass. A separate adversarial audit campaign remains in progress. Metadata RPC errors are also retained rather than reporting zero errors.

Actual UI Stop testing distinguishes two cases. Canceling a poll of an already-yielded shell session left its bounded child running. A separate probe then canceled the initial command before it yielded: the tool call returned an abort after 6.1 seconds, but its child still ran to its natural 120-second completion. Therefore UI/tool-call cancellation is demonstrated; subprocess termination is not. Retained interactive-process semantics must be distinguished from a completion-only cleanup contract. We have not treated a caller abort, local disconnect or fabricated acknowledgement as proof that backend work ended, and no uncertain command was replayed.

Acceptance is still pending. No stable/fixed claim or causal before/after improvement is established yet. The original multi-minute backend waits are not fully explained by the admission-retention mechanism. We will report the completed actual-runtime soak, independent review, remaining cancellation/reconnect limitations and any failures separately. Please keep this issue open; a vendor-supported repair path is still needed for normal deployment.

Patched acceptance attempt interrupted — cause unknown (23 October, 15:03 UTC)

The private patched desktop disappeared between 14:49:13 and 14:49:45 UTC, before either representative-work campaign reached two hours. Independent review found 1h49m28s of valid observed desktop continuity, not an accepted two-hour soak. The user is unsure whether the window was closed manually. The scoped desktop log, private crash-report metadata and Windows application-event check do not establish a crash, normal quit or other exit cause; please do not infer one.

All checkpoints, incomplete campaign receipts and both streaming test failures/recovery gaps are preserved. An interrupted command had already appended its report and written an observation, so it was reconciled rather than replayed. The planned observation tail was disabled before it started, preventing a misleading continuous-window claim.

We recovered only the same isolated development copy under a limited-user external Windows supervisor, preserving the lab profile and history. The supervisor records actual process creation identity and exit code and never respawns automatically. This tests a possible launch-lifecycle boundary and improves attribution; it is not a proven fix or a confirmed explanation for the disappearance. Installed signed application artifacts remain unchanged. The recovered runtime is undergoing a new functional qualification; any subsequent soak must start a fresh window and cannot include the interrupted interval. No stable/fixed claim is made.

23 October: second acceptance attempt interrupted; native termination accounting correction

The second isolated-desktop attempt was interrupted by a confirmed Windows reboot (OS boot and unclean-shutdown events), not an established app-only crash. Its valid observed runtime window was 1h52m21s. The reboot cause remains unknown. Neither this attempt nor the earlier 1h49m28s attempt meets the continuous two-hour acceptance requirement, and their durations are not being combined.

Independent review found an integration gap in the experimental patch: retaining backend accounting on disconnect was conservative, but verified native-process termination was not wired to settle that accounting. This could leave capacity retained across a later restart. An offline correction associates requests with their exact owning transport and releases only that owner's records after real child termination and stdout draining. Stale callbacks cannot release a replacement transport's work; generic disconnect alone still does not release uncertain work or replay requests.

Focused tests execute the copied native lifecycle class with real Windows child processes (parser/FIFO/telemetry dependencies are test doubles). Independent testing also found duplicate error delivery to an already-cancelled coalesced caller on closure; that defect was corrected. The expanded 12-case suite passes on the local rerun. These are component/integration results, not desktop soak acceptance. The new revision has not yet been packed or deployed; independent correction review remains the next gate. No fixed/stable or automatic native-reconnect claim is made. The installed signed application, original profile and history remain untouched.

Local development-copy update — 23 October, 18:59 UTC

A separate isolated Windows desktop development copy now integrates the bounded backend accounting and cancellation candidate; the installed signed application and original sessions/history remain unchanged. This is an unsigned local experiment, not a vendor-supported release.

Independent QA passed 22 focused regressions, including caller abandonment retaining backend capacity, terminal response settlement, stale-generation/ID protection, orphan bookkeeping and exact recipient delivery. The actual GUI runtime also passed the suite and a naturally completed 120-second command. An idle workload-core fault was followed by native replacement about 95 ms after the scoped stop completed, with subsequent successful initialization and reads; this does not prove cancellation cleanup or settlement of outstanding writes.

A fresh continuous actual-desktop workload began at 18:53:53 UTC, with an independently reviewed observer and concurrent producer/readers plus model-driven validation. The two-hour point is 20:53:53 UTC; terminal and independent acceptance reviews are still pending. Earlier interrupted windows are not combined. A separate interactive Stop probe left its bounded child to complete naturally after 120 seconds, so subprocess-cleanup acceptance remains open. No fixed/stable claim or single-cause explanation for all observed waits is established.

Actual desktop workload result — 23 October, 21:13 UTC

Independent QA verified a continuous 7,800.273-second (2h10m) representative concurrent workload on the actual isolated patched Windows desktop copy. Both readers matched all 74,328 producer records and checksums/totals, all three children exited successfully, all ten frozen inputs remained unchanged, and the desktop/core process epochs remained stable. Earlier interrupted attempts were not combined.

This is a narrow local-runtime result, not a zero-error or uninterrupted-model-service claim: one turn ended with explicit server_overloaded (selected model at capacity). A single same-chat continuation restored model/tool supervision after a preserved 17m40.123s result gap, while the existing background reference work continued without restarting. A frozen validation oracle also rejected a valid truncation transition; its failures remain preserved separately from an independently reviewed phase-aware verifier.

Supported exact-session Ctrl-C passed: a genuinely yielded session received one interrupt, returned a terminal result, and its probe child exited before its fallback deadline. Active-turn Stop can retain interactive sessions and is not blanket subprocess cleanup. Normal File → New Window also attached a fresh renderer and reopened the existing test chat within 60 seconds with unchanged checkpoints/runtime identities. Reload Window is unavailable in the Prod-flavor menu, so no reload result is claimed.

The signed installed app and original sessions/history remain unchanged. The experiment is unsigned and is not a vendor-supported release. Final capture review, several broader recovery gates and definitive original hourly-stall causality remain open; this does not establish a stock-desktop fix or general stability guarantee.

Final independent capture review — 23 October, 21:26 UTC

The capture has now completed: 9,000.757 seconds wall time, 293/293 valid main-process samples, no sampled core epoch changes, and a maximum sampling interval of 33.762 seconds. Independent QA confirms that the complete 2h10m workload lies within this continuous runtime window. Across the recorded desktop calls, 325 admissions matched 325 routed responses; maximum duration was 3,042 ms and maximum queue wait 737 ms. Nineteen filesystem responses returned -32603 (18 metadata reads and one file read); their causes are not all established. There were no unmatched observed model tool calls at final analysis. Sampling and captured calls do not prove absence of every possible fault.

The capture task is finished and disabled; the private test app remains running. The model-capacity gap, original validation-oracle failures and all earlier interrupted attempts remain disclosed above. QA passes the continuous-runtime/representative-work evidence, while full incident acceptance remains open. Actual settlement after losing a native process with nonzero retained work is still untested: current admission diagnostics cannot positively correlate the exact request and process owner before a fault. Repeating an idle crash would not establish that property. Better privacy-preserving dispatch/owner/terminal-settlement correlation is needed before that test. No claim of a signed upstream fix or complete original-cause resolution is made.

24 October 2026: actual diagnostics qualification on a separate unsigned development copy

The next diagnostics revision is now deployed only to the isolated development copy. The prior completed soak and its disclosed failures remain separate evidence; they are not being counted as a soak of this new revision. The installed normal application was left untouched: its executable/archive hashes and all 13 captured process identities were independently unchanged across the scoped lab shutdown and deployment.

A normal UI navigation to an existing completed lab conversation produced 17 matched dispatch/terminal pairs. The history reads used thread/turns/list and thread/items/list, alongside resume and related requests; no thread/read request was observed in this check. Independent review matched the allowlisted conversation hash, opaque request token, queue instance, transport owner, and genuine terminal response, and externally verified the owner's OS creation time, executable identity, and parent process. The diagnostics intentionally omit arguments, conversation contents, and credentials. All ten frozen workload source inputs and the retained checkpoint evidence still matched their prior hashes.

This establishes actual UI-to-native-owner/terminal correlation for those observed methods. It does not establish recovery after losing a backend with nonzero retained work, disconnected-tool deadline behavior, repeated-no-progress detection, or resolution of the original recurring stall. No fault was injected during this qualification. Those functional gates remain open, and a completed fast read is not evidence that a later fault would hit the intended in-flight request. This remains an unsigned local experiment, not a supported upstream release.

24 October 2026: adapter cancellation candidate tested and deployed to the lab only

Independent source review confirmed a separate adapter-layer gap: tool discovery and cold-call catalog loading did not forward the caller's cancellation signal, while waiting for shared pipe connection setup could outlive that caller. The connected tools/call path already forwarded cancellation. These are source-level findings; they are not proof of the original recurring stall's cause, and native request-queue diagnostics alone do not repair this layer.

An isolated candidate forwards discovery cancellation, bounds discovery at 30 seconds and connection establishment at 10 seconds, preserves independent waiters on a shared connection, and prevents explicit disposal from reviving a late connection. It adds no automatic replay and no discovery-sized timeout to healthy long-running tool calls. On the lab's Windows Node 24.21 runtime, independent review ran 10 focused lifecycle cases successfully. Three additional whole-server MCP/real named-pipe cases passed, including cancellation followed by successful catalog/call use, the actual 30-second discovery ceiling, and a healthy call exceeding 31 seconds; those same three cases also passed with the deployment loader. Earlier test-harness failures were retained and diagnosed separately rather than discarded.

The candidate is now activated only in the private lab through an absolute, hash-checked loader path. The original adapter was preserved, the native development artifacts did not change, and independent deployment checks verified the original installed artifacts and all 13 captured normal-app process identities remained unchanged. No sessions or history were cleared.

Qualification remains deliberately partial. Startup receipts record the expected candidate module and Node runtime loading. One bounded ordinary read-only app-tool invocation then returned successfully, but it used the code-mode tool path; we have not proved that this invocation traversed the MCP adapter candidate. A bounded observer did not capture a live adapter process epoch, so the loader receipts alone are not being presented as external process-lifetime or end-to-end deadline evidence. No live fault was injected. The retained-work backend-loss, repeated-no-progress, and new integrated-work acceptance gates remain open. This is still an unsigned local experiment, not an upstream supported fix.

Deployment persistence correction: A final post-launch hash check found that the lab's cached MCP launch configuration had been regenerated back to the original definition after the candidate's brief startup imports. The candidate files and tests remain intact, but the cache-only launch change is not durable and is no longer selected. This attempt is preserved as a failed persistence check; it is not an accepted deployment or an end-to-end adapter fix. A supported lab-only configuration path is being investigated without altering the installed normal app or weakening plugin verification.

24 October 2026 — adapter selection correction independently verified

The private-config follow-up retained the exact adapter definition after startup reformatted the settings, but that alone did not select it in the desktop. A pinned source trace shows the desktop derives adapter settings from its packaged definition and regenerates the cache. I retained both unsuccessful selection attempts and their evidence.

A new unsigned, isolated lab artifact now changes only that adapter-selection seam, guarded to the exact private Windows test environment. It selects the same independently tested cancellation/lifecycle candidate through a hash-checking loader outside the regenerated cache. Independent review verified every archive entry and its integrity blocks (21,230 entries), exactly one changed source entry, and only the embedded archive digest changed in the executable. Focused tests of the real extracted selection/cache/executor helpers passed, with filesystem/runtime stubs explicitly recorded; these are not actual host-RPC tests.

After an independently verified lab-only shutdown, the preceding lab artifact was preserved and the new one deployed. Actual loader import was linked to a successful live OS process snapshot, including creation time, executable and parent chain. Selection and exact artifact hashes remained correct beyond 75 seconds after startup. Normal paginated reading of an existing completed lab conversation passed. Independent review verified 17 matched native dispatch/terminal pairs in the same startup/read epoch and all frozen workload inputs still match; some startup requests preceded the click, so I cannot attribute all 17 pairs to that click. All 13 captured normal installed-app process identities and installed binary hashes remain unchanged. Sessions, history and prior evidence were preserved.

This qualifies the narrow lab deployment/selection scope, not the original recurring-stall cause or a vendor-supported fix. The captured loader process later exited, so its receipt is historical load proof, not current adapter health. A genuine adapter host-request terminal and disconnected-host timeout recovery remain unqualified, as do the remaining native in-flight loss/no-progress gates and a new representative two-hour integrated run. No additional model prompt, fault injection or repeat of the completed soak was used to manufacture coverage.

Qualification evidence reconciliation — 24 October 2026 (issue remains open)

The completed V5 campaign and the later adapter probes are narrower evidence, not proof that the original workspace-routing stall is fixed. This update preserves all earlier failed attempts and later V6/V7 deployment qualifications above.

  • The exact V5 regression command ran once: node --test --test-reporter=spec work/qa-v4-caller-completion.test.mjs work/qa-v5-orphan-bookkeeping.test.mjs: 22 unique tests passed, zero failed/cancelled/skipped, exit 0. One legitimate 120-second child completed naturally in 120.006 seconds, exit 0.
  • The fresh streaming campaign ran once, 2026-10-23 18:53:53.950190–21:03:54.223477 UTC, 7800.2733 seconds. Both readers matched the producer at 74,328 records, total 2,762,288,628, 6,758 duplicates, and 371 deliberate truncations, with the expected bounded gap tails. All three children exited 0 and cleanup was independently verified. There were 260 checkpoints / 1,040 recorded reference assertions. All ten frozen input hashes matched.
  • Preserved validator results: the frozen deep validator passed 34 of 157 executions and failed 123, repeatedly rejecting the same historical truncation-before-generation-advance checkpoint. These are repeated observations of an oracle mismatch, not 123 independent desktop stalls. A separate additive phase-aware verifier passed the final 260-checkpoint history; the frozen validator was never edited or relabelled PASS.
  • One observer execution failed its nonnegative-lag assertion when independently sampled producer/reader metadata showed 70,998 versus 71,000 records. Subsequent scheduled observation passed; the original failure remains. One additive verifier execution also failed because a transition snapshot did not yet have the later advancement checkpoint it required; subsequent and final checks passed. Neither result is discarded. The monitor correctly exited 1 with failures retained, despite the workload itself exiting 0.
  • Model service returned server_overloaded: Selected model is at capacity at 20:16:32.540 UTC. The independently measured tool-result gap was 1060.123 seconds; a conservative model-review gap of at least 17m38.4s is separately recorded. The existing campaign and automated validation continued; one bounded continuation resumed supervision without restarting it or changing its deadline. This is not uninterrupted model-service acceptance. Earlier setup/formatter/read failures remain preserved.
  • Three later bounded read-only get_usage_limits probes each returned successfully. These prove only ordinary tool completion on the exposed path. They do not prove that the requests traversed the repaired MCP factory, exercised disconnection recovery, or validated cancellation.

Still required before calling the stall fixed:

  1. Establish a supported ordinary invocation route and correlate the actual loaded adapter factory, immutable connection/wire request, and genuine terminal response. Code-mode success, catalog startup and module import cannot substitute.
  2. Qualify caller cancellation, disconnected-host bounded settlement/reconnect, nonzero retained-backend loss and repeated-no-progress recovery on the actual correlated runtime path, preserving backend accounting and uncertain-write/no-replay semantics.
  3. Reproduce the original recurring failure against a controlled baseline and demonstrate recovery/improvement on the repaired path; the entire multi-minute backend/discovery delay is not explained by admission retention alone.
  4. After the relevant integrated functional gates pass, complete a new representative >=2-hour run on the exact final artifact, with independent desktop observation and disclosed service/validator failures and gaps. The finished V5 campaign must not be restarted or relabelled as V7 acceptance.
  5. Obtain a supported upstream/signed Windows release for a vendor-supported fix; the private unsigned lab artifacts remain experiments.

Please keep this issue open. No full fix, original-cause resolution, or recovery guarantee is claimed. No private identifiers, account details, local paths, raw logs, proprietary source or binaries are attached.

Additional offline adapter settlement correction — 24 October 2026

Further focused work found a separate reproducible gap in the preserved lab adapter: request serialization/oversize errors and synchronous socket-write exceptions could leave a pending correlation entry behind. A throwing cancellation-frame write could also skip rejection of the cancelled caller. These are concrete local lifecycle defects; neither is established as the cause of the original workspace-routing stall.

A new offline, undeployed candidate serializes/validates before registering a pending request, removes and rejects only the affected pending record after a synchronous write error, and ensures local cancellation settlement even if sending its cancellation frame throws. It preserves the original abort reason, other callers, backpressure semantics and late-response isolation. It adds no retry/replay, short blanket deadline for healthy work, or claim of remote cancellation acknowledgement.

The preserved adapter failed five of eight new regression cases. The candidate passed all eight. Against the exact lab-pinned Node 24.21.0 executable, the new candidate passed 8 settlement + 10 lifecycle + 3 whole-SDK/Windows named-pipe cases (21 cases; repeated runtime runs are not additional unique cases). The SDK discovery deadline completed at 30.024 seconds, and healthy work completed at 31.028 seconds.

An initial comparison using the shell's Node 22.15.0 is retained as a failure: the whole-SDK deadline case did not receive its response within 35 seconds. A traced comparison failed with both the preserved and modified adapter under Node 22; that runtime-specific failure has not been causally explained. It was not erased or treated as a pass based on the Node 24 result.

Only the offline request-settlement method differs. The current running lab artifacts, preserved baseline and all ten frozen campaign input hashes remain unchanged. No deployment, new acceptance campaign, actual adapter host-path recovery qualification or independent review of this new revision is claimed. Independent review and the supported, correlated actual invocation path remain deployment gates. The issue remains open; no proprietary source or patch is attached.

24 October 2026 — supported MCP ingress and one host read independently verified

One real read-only MCP round trip has now passed independent review on the isolated, modified private lab copy. We used the documented custom stdio MCP configuration with a distinct QA server name, the previously deployed hash-pinned adapter, and only read_thread exposed. Activation used the normal MCP settings and its backend Restart control; no hidden IPC, feature switch, endpoint injection or normal-app restart was used.

The model invoked that exact MCP server's read_thread once against an existing completed lab probe. The actual returned tool output reported success, and the private backend recorded a matching own-probe thread/read dispatch and wire result, plus paginated history reads during the same call interval. Independent review checked the configuration, pinned adapter/runtime identity, actual invocation/result and backend correlation. Two adapter processes existed, so their individual server assignments are not inferred from timing alone. A later attachment read occurred after task completion and is excluded from this correlation.

The approximately five-minute pending interval was the normal MCP permission prompt before dispatch. Selecting Allow once released the call. That interval is not evidence of an adapter hang, host latency, timeout or cancellation recovery. No repeated read or fallback route was used.

The earlier public App Server sidecar attempts remain preserved and did not complete an MCP read. A quoted CLI override parsing error in the test harness was independently corrected; the remaining sidecar discovery/connection limits do not establish the original stall's cause.

All 14 normal installed-app process identities in the fresh baseline were unchanged, its signed artifacts retained their hashes and valid signature, all ten frozen workload inputs matched, and the probe's existing history remained byte-for-byte unchanged. Sessions and failure evidence were preserved.

This qualifies MCP ingress and one successful host read on the previously deployed adapter only. It does not qualify the newer offline settlement revision, disconnected-host deadlines, caller-cancellation recovery, nonzero retained-backend loss, repeated-no-progress recovery, a new two-hour integrated workload, or a signed vendor fix. The incident remains open. No proprietary source, local identifiers, history, credentials or raw logs are attached.

25 October 2026 — evidence reverified; settlement reentrancy amendment now tested offline

The successful distinct MCP read above has been rechecked against the saved metadata and independently reviewed load/process evidence, without issuing another read. The configured patched R1 Node/loader/payload pins were rehashed, and strict queue/generation/dispatch/owner correlation yields three native dispatch/send/result triples during the call: thread/read, thread/turns/list, and thread/items/list. The native thread/read portion took 1.798 ms; that is not the entire tool latency. The later attachment read is excluded. Two identical adapters were loaded, so exact per-server process/socket/wire attribution is still not established. This supports the narrow patched R1 MCP ingress plus host-read round trip, not disconnected-host recovery or qualification of a newer offline revision. The one-time permission wait remains separate from transport latency.

The independently source-reviewed settlement amendment has now been constructed offline with zero-fuzz context matching and the exact declared output hash. Its separately hashed inert class/encoder harness uses real AbortSignal and deterministic socket doubles, measures pending resolve/reject callback attempts and listener/map/frame effects, and never imports the full stdio-server entrypoint or connects to the native app.

All 23 planned unique cases passed on the pinned Node 24.21.0 runtime, with no failed/cancelled/skipped cases or unhandled asynchronous errors. Coverage includes serialization-side abort/close/socket replacement, synchronous result/disconnect during write, abort-before-enqueue ordering, original-write-error priority, throwing/reentrant cancellation sends, other callers, backpressure and stale/late responses.

The earlier offline settlement revision was also positively identified. Four selected reentrancy cases failed against it and passed in the new suite: serializer-triggered abort still allowed a request to be sent, reentrant success retained an abort listener, abort-before-enqueue ordering failed, and an internal result could mask a subsequent original-write exception. Those four comparison executions are not additional unique coverage. Earlier narrower passing results and all failures remain preserved. A console encoding error after comparison stdout/receipts had already been saved was retained; tests were not rerun to erase it.

Not deployed. The amendment's source and test plan had independent review; these new construction/harness/execution results have not yet had independent review. Current live adapter files and all ten frozen campaign inputs remain unchanged. The successful historical read exercised deployed R1, not this amendment.

Remaining gates are independent review of these exact bytes/results, positively correlated actual adapter host-path cancellation/disconnected settlement and recovery, nonzero retained-backend loss, repeated-no-progress recovery, original recurring-stall causal before/after evidence, and a representative >=2-hour integrated run on the final qualified artifact. Any live change or fault requires its own reviewed plan and fresh preservation/ownership checks. Keep this issue open; the original stall is not proven fixed. No private identifiers, returned history, proprietary source, patch or raw logs are published.

InTheta avatar Oct 23 '26 07:10 InTheta

Additional Windows desktop evidence: multiple active chats, global request-queue stalls, routing timeouts, recovery after restart

Reporting an additional case for #54540, with sanitized local measurements. The user reports that one active chat is responsive, while multiple active chats repeatedly lead to long stalls. This seriously interrupts ordinary work and repeatedly requires restarting the desktop application. The exact concurrency threshold and a deterministic minimal reproduction have not been established.

Environment

  • Windows 11 Pro 25H2, build 26200.9711, x64; Windows-native desktop execution.
  • Windows Store package OpenAI.Codex 26.1016.8622.0.
  • Desktop build 21477, reported commit 293b23553a2ef1949121cc87c52983472a85ea23.
  • Bundled/local app-server codex-cli 0.163.0-alpha.11.2, confirmed in the app startup log and executable version output.
  • ChatGPT authentication, Pro plan; affected turn used gpt-6-astra, reasoning effort ultra.
  • Installed plugins and local/remote MCP connections were enabled. Agent activity also occurred during the investigation. This has not yet been isolated to one plugin or to subagents specifically.

User-visible behavior and observed workflow

  1. Use the Windows desktop app with several chats active concurrently.
  2. A new message can remain in a waiting/thinking state for minutes, while switching chats and typing still work.
  3. Some turns show reconnect attempts through 5/5, then fail with workspace routing discovery timed out without producing an answer.
  4. After the application is restarted, ordinary replies resume quickly. Single-chat use is reported to be substantially more reliable.

These are observed conditions, not a deterministic load test. The application logs establish the restart but do not establish unchanged network state, so the before/after comparison is observational rather than a controlled network experiment.

Local control requests stall too

All timestamps below are UTC on 2026-10-23 (local observations were just after midnight on 2026-10-24, UTC+08:00).

The desktop logs were queried over a fault window [16:10, 16:29) and a post-restart window [16:30, 16:36). The windows differ in duration and workload. Counts refer to recorded log events, not unique incidents, and the table compares observed maxima rather than matched benchmark operations.

Desktop measurement Fault window Post-restart window
Recorded response events 632 421
Responses with elapsed-time / queue-wait fields 596 421
Recorded queue waits exceeding 30 seconds 39 0
Queue-expiration events 78 0
Maximum recorded queue wait 358,171 ms 1,541 ms
Maximum config/read response duration 317,606 ms 932 ms
Maximum fs/getMetadata response duration 120,004 ms 5 ms
Maximum fs/readDirectory response duration 119,366 ms 1 ms
Maximum turn/start response duration 119,810 ms 79 ms

durationMs and queueWaitMs are the desktop's recorded elapsed fields, not CPU time. A thread/queue/list response at 16:24:15.444Z recorded durationMs=0 and queueWaitMs=358171. Several other pending responses were released at nearly the same time. This demonstrates a shared request-processing/queueing problem during the incident; it does not identify a particular lock or prove a deadlock. The filesystem log entries do not expose their target paths, so no assumption is made about a particular drive or file.

One failed turn and the restart

UTC time Sanitized event
16:18:14.246 User input received
16:18:44.685 ChatGPT MCP discovery HTTP POST timed out; error_is_timeout=true, error_is_connect=false
16:20:24.715 Codex analytics HTTP send failed
16:22:30.030 Sampling retry 1/5: workspace routing discovery timed out
16:22:45.234 Retry 2/5, same error
16:23:00.669 Retry 3/5, same error
16:23:16.424 Retry 4/5, same error
16:23:32.969 Retry 5/5, same error
16:23:51.225 Backend Turn error: workspace routing discovery timed out
Approximately 16:24:15 Desktop turn history records terminal failed, total duration 360,803 ms
16:28:05 Application lifecycle disposes the old local and remote transports
16:30:08.603 Newly started local app-server connection is connected
16:30:16.359 New user input received
16:30:22.594 Assistant message observed, about 6.2 seconds later

The roughly four-minute interval before the first sampling-retry record is not attributed to a particular operation: complete stage-duration instrumentation was unavailable. Other agent threads had routing timeouts during the same fault window. A shutdown-time EPIPE happened after transport disposal and is not presented as the initiating failure.

Additional checks and limits of the evidence

  • Some optional remote-plugin authentication errors and a local MCP connection failure persisted after restart while replies resumed. Those individual errors do not explain the entire before/after difference.
  • Review of 876 backend log records for the affected process during the failed-turn window found no explicit 429, quota exhaustion, 403, account suspension or policy-denial message. Missing HTTP details do not rule out every remote failure.
  • The current usage endpoint returned ordinary usage allowed and no quota-limit-reached indicator. This is a current observation, not a retrospective account-policy determination.
  • No full credential files, account details, conversation contents or screenshots were needed to establish the timing evidence. No application binaries or network/security settings were modified for this report.
  • Same-version source wraps workspace routing/account discovery in a 15-second deadline that includes more than the network request. The error text alone therefore cannot distinguish slow network I/O from internal configuration/coordination waits: workspace_routing.rs.

Requested investigation

Please investigate whether concurrent chats can leave shared desktop/app-server request processing, admission/queueing, configuration reload or routing discovery in a degraded state that requires an app restart. In particular:

  1. Why do filesystem/control requests and routing discovery stall together, and why do many pending responses drain together?
  2. After a timeout/cancellation, are all relevant pending requests and shared permits released so subsequent chats can recover?
  3. Can diagnostic events distinguish queue wait, configuration/lock wait, endpoint request start and network timeout, without including credentials or user content?
  4. Is there a supported recovery or released fix that avoids repeatedly restarting the entire desktop app?

The observations are related to this issue's symptoms; a shared root cause with other reports has not been proven.

Privacy: Only selected diagnostic fields and aggregate timings are shared. Usernames, local paths, account/session/turn/request identifiers, process identifiers, IP addresses, private URLs, tokens, prompts, responses and full raw logs have been excluded. The usual GitHub account attribution of this comment remains visible.

Sanitized event extracts (field allowlist; no raw log bodies)

These are selected field projections with normalized event/error labels, not complete original log lines. Timestamps are UTC.

Desktop events:

{"timestamp":"2026-10-23T16:14:30.512Z","event":"response_routed","method":"hooks/list","durationMs":120055,"queueWaitMs":0}
{"timestamp":"2026-10-23T16:22:14.770Z","event":"response_routed","method":"fs/getMetadata","durationMs":120004,"queueWaitMs":119984,"error_class":"OS_PATH_NOT_FOUND"}
{"timestamp":"2026-10-23T16:22:14.774Z","event":"response_routed","method":"fs/getMetadata","durationMs":4,"queueWaitMs":239987,"error_class":"OS_FILE_NOT_FOUND"}
{"timestamp":"2026-10-23T16:24:15.396Z","event":"response_routed","method":"config/read","durationMs":120587,"queueWaitMs":146461}
{"timestamp":"2026-10-23T16:24:15.443Z","event":"response_routed","method":"skills/list","durationMs":453774,"queueWaitMs":0}
{"timestamp":"2026-10-23T16:24:15.444Z","event":"response_routed","method":"thread/queue/list","durationMs":0,"queueWaitMs":358171}
{"timestamp":"2026-10-23T16:26:15.827Z","event":"response_routed","method":"fs/readDirectory","durationMs":119366,"queueWaitMs":3}
{"timestamp":"2026-10-23T16:28:03.426Z","event":"app_server_client_request_queue_rejected","method":"app/installed","queueWaitMs":30001,"error_class":"QUEUE_EXPIRED"}
{"timestamp":"2026-10-23T16:28:05.690Z","event":"local_executor_lifecycle_stop_disposed"}
{"timestamp":"2026-10-23T16:28:05.694Z","event":"app_server_connection_stop_process","transport":"websocket","hostId":"durable","status":"disconnected"}
{"timestamp":"2026-10-23T16:28:05.694Z","event":"app_server_connection_stop_process","transport":"stdio","hostId":"local","status":"disconnected"}
{"timestamp":"2026-10-23T16:28:05.697Z","event":"ipc_socket_error","error_class":"EPIPE"}
{"timestamp":"2026-10-23T16:30:08.214Z","event":"app_server_connection_start_process","transport":"stdio","hostId":"local","status":"connecting"}
{"timestamp":"2026-10-23T16:30:08.603Z","event":"app_server_connection_post_initialize","transport":"stdio","hostId":"local","status":"connected"}
{"timestamp":"2026-10-23T16:30:15.136Z","event":"app_server_connection_post_initialize","transport":"websocket","hostId":"durable","status":"connected"}
{"timestamp":"2026-10-23T16:30:16.432Z","event":"response_routed","method":"turn/start","durationMs":79,"queueWaitMs":0}
{"timestamp":"2026-10-23T16:30:16.513Z","event":"response_routed","method":"fs/getMetadata","durationMs":5,"queueWaitMs":0}
{"timestamp":"2026-10-23T16:30:16.523Z","event":"response_routed","method":"fs/readDirectory","durationMs":1,"queueWaitMs":0}
{"timestamp":"2026-10-23T16:30:30.354Z","event":"response_routed","method":"config/read","durationMs":932,"queueWaitMs":0}
{"timestamp":"2026-10-23T16:30:49.264Z","event":"response_routed","method":"mcpServerStatus/list","durationMs":35321,"queueWaitMs":58}

Backend events:

{"timestamp":"2026-10-23T16:18:14.246Z","event":"user_input_received"}
{"timestamp":"2026-10-23T16:18:44.685Z","event":"http_post_timeout","service":"ChatGPT tool discovery","error_is_timeout":true,"error_is_connect":false}
{"timestamp":"2026-10-23T16:20:24.715Z","event":"http_send_failed","service":"Codex analytics"}
{"timestamp":"2026-10-23T16:22:30.030Z","event":"sampling_retry","retry":"1/5","error_class":"workspace routing discovery timed out"}
{"timestamp":"2026-10-23T16:22:45.234Z","event":"sampling_retry","retry":"2/5","error_class":"workspace routing discovery timed out"}
{"timestamp":"2026-10-23T16:23:00.669Z","event":"sampling_retry","retry":"3/5","error_class":"workspace routing discovery timed out"}
{"timestamp":"2026-10-23T16:23:16.424Z","event":"sampling_retry","retry":"4/5","error_class":"workspace routing discovery timed out"}
{"timestamp":"2026-10-23T16:23:32.969Z","event":"sampling_retry","retry":"5/5","error_class":"workspace routing discovery timed out"}
{"timestamp":"2026-10-23T16:23:51.225Z","event":"turn_error","error_class":"workspace routing discovery timed out"}
{"timestamp":"2026-10-23T16:30:16.359Z","event":"post_restart_user_input_received"}
{"timestamp":"2026-10-23T16:30:22.594Z","event":"post_restart_assistant_message_observed"}

weiwei187242 avatar Oct 23 '26 16:10 weiwei187242

Additional Windows evidence — parallel sessions stall together, UI remains clickable (24 October 2026)

I repeatedly experience a loss of progress particularly when running parallel Codex sessions. Essentially all conversations hang together, while the desktop app remains clickable. During the latest incident I had to restart the computer to get responses again. I do not observe CPU burden explaining the stalls; no pre-reboot CPU trace was captured to establish or exclude a specific resource bottleneck.

Read-only inspection of local desktop logs and the backend diagnostic database found the following. All timestamps below are UTC on 2026-10-24.

Time Verified diagnostic event
15:01:54.724 Local thread-catalog synchronization failed: Timed out waiting for MCP response to thread/list.
15:01:54.726 thread/read timed out after 30,000 ms; recorded queue wait 1 ms and pending count 3.
15:02:10.343 account/read failed after 15,020 ms with code -32603: workspace routing discovery timed out; recorded queue wait 0 ms.
15:08:48 Tool-host warning: code-mode host request exceeded its deadline request_type="wait". Three different conversations recorded code-mode host timed out waiting for wait response.
15:10:48 Three different conversations recorded cell … belongs to a stale code-mode host generation.
16:39:22.798 and 16:39:36.144 account/read requests were still timing out. These endpoints show recurrence across the window, not a measured continuous duration for one request.
16:41:00.970 thread/attachment/list failed with Codex app-server process is not available; pending count after the request was 60. This was close to shutdown/recovery and is not established as the initiating failure.
16:41:04.741 Local transport disposal logged cause=stop_process, previous=connected, next=disconnected. A connected flag alone did not establish useful forward progress.
16:42:58 Windows Kernel-General boot event.
16:44:21 New desktop main process started.

After reboot, two existing active chats showed changed tool/message markers between read-only snapshots, and diagnostic commands executed successfully. This establishes observed recovery after reboot, with no permanent-fix claim.

Environment verified locally

  • Windows x64 desktop package: OpenAI.Codex 26.1021.3705.0, from the running executable path.
  • Observed sandbox command-runner executable: 0.164.0-alpha.11.1. This is a runner-version observation; the app-server version was not separately verified.
  • Multiple parallel sessions; exact concurrency threshold and deterministic reproduction remain unknown.

The logs support a failure affecting shared runtime/communication paths across conversations: local catalog/account requests and tool-host waits failed during the same incident. The initial trigger, causal order, and shared root cause with other reports remain unconfirmed. No pre-reboot dump or wait-chain capture was available.

Please investigate why concurrent sessions can stop making progress together while the interface remains usable, whether tool-host generation changes leave pending work unable to recover, and how to restore execution without rebooting the machine.

Only selected diagnostic fields and aggregate observations are included here. No raw logs, conversation contents, private project details, local paths, credentials, account identifiers, session identifiers, or attachments are published.

Project12x avatar Oct 24 '26 17:10 Project12x

Adding an independent Windows occurrence on October 26, 2026 with the same visible error. I filed a consolidated, sanitized report at #57063.

  • Desktop Windows package: 26.1021.3705.0; separate CLI: 0.164.0.
  • Read-only query of ~/.codex/logs_2.sqlite, past 6 hours: 50 rows containing workspace routing discovery timed out and 47 containing stream disconnected.
  • Last stream-disconnect match: 08:31:15 UTC; last routing-timeout match: 08:31:33 UTC, 18 seconds later. Not proven to be the same request/session.
  • Basic TCP connectivity to chatgpt.com:443 and api.openai.com:443 succeeded, but that does not validate persistent WebSockets or exclude a network intermediary.
  • SQLite PRAGMA quick_check returned ok.

I did not independently verify account/read latency, RPC error codes, or subagent causality in my own data. It would be helpful to know whether the routing-discovery error path can also explain nearby response-stream retry/disconnect events. Details, counting limitations, and other related issues: #57063.

aventtoventuri avatar Oct 26 '26 08:10 aventtoventuri

Additional Windows recurrence across desktop versions — October 26, 2026

Summary and impact

Reporting another occurrence of workspace routing discovery timed out during ongoing parallel chapter-processing chats. The user reports repeated interruptions. A causal relationship to concurrency has not been established.

Environment and observed workflow

  • Windows x64 desktop application with an already-authenticated ChatGPT account.
  • Multiple local project chats performing bounded source-processing tasks, reading local files and publishing through connected tools.
  • Some chats completed successfully; others stopped with the routing-discovery error. Successful earlier requests do not establish continued routing health.
  • Recurrence interrupts unattended work and requires manual inspection/resumption. It is not confined to initial sign-in.
  • These are observed conditions, not a deterministic minimal reproduction. Exact concurrency at each failure, network/proxy conditions, and runtime version for each event have not been established. The OS build listed by the original issue author should not be assumed to describe this independent machine.

Selected evidence

Read-only inspection of local desktop logs found these selected occurrences (UTC):

Timestamp Context Recorded package version
2026-10-17 04:27:39.161 Background ambient-suggestions refresh 26.1013.3656.0
2026-10-18 18:03:08.753 account/read, error -32603, duration 15006 ms, queue wait 0 ms, pending count after 4 Not established for this event
2026-10-24 04:05:35.663 and 04:06:26.430 Background ambient-suggestions refresh 26.1016.6573.0
2026-10-24 14:40:42.961 Background ambient-suggestions refresh 26.1021.3705.0
2026-10-26 18:44:31.632 Background ambient-suggestions refresh 26.1021.3705.0

The version values above come from the packaged application paths in the corresponding error stacks; they are Windows package versions, not independently checked About-dialog or app-server versions. This was a bounded search, not an exhaustive incident count.

The error affects account/background operations as well as the user's observed interrupted work. The evidence does not identify a particular lock, network fault, or shared root cause. Restarting/resuming work has not provided durable recovery in the observed workflow.

Expected behavior and requested investigation

Temporary discovery failures should recover within the running app where possible, or surface actionable guidance while preserving saved work and accurately reporting incomplete execution. Resuming a chat should not silently duplicate previously completed external writes.

Please investigate recovery of routing discovery during already-authenticated, ongoing work, and provide a supported workaround that preserves bundled-app features and does not require repeatedly restarting interrupted chats.

It would help to know which supported diagnostic capture can distinguish endpoint/network delays from internal routing/configuration waits, and whether a particular release contains a fix. No controlled restart, proxy change, runtime override, or clean-profile experiment was performed as part of this report.

Privacy

Only selected diagnostic fields are included. No raw logs, source/book content, project details, local paths, credentials, account identifiers, session identifiers, or attachments are published.

Travis-Barton avatar Oct 27 '26 05:10 Travis-Barton

Additional occurrence on November 3, 2026 — Windows desktop app 26.1027.3384.0 (Windows x64).

Observed workflow: starting a new subagent failed twice with Agent errored: workspace routing discovery timed out, while follow-up tasks to existing subagents continued working. A later diagnostic subagent started successfully. This is intermittent; no deterministic minimal reproduction or concurrency-limit cause has been established.

A bounded, read-only diagnostic of the local technical log database found at least 50 rows containing the exact timeout text between 2026-11-03 13:34:00 and 14:00:03 UTC:

  • component: codex_core::responses_retry
  • level: WARN
  • sampling_error=workspace routing discovery timed out
  • retry sequences: retries=1..5, max_retries=5
  • example sequence timestamps (UTC): 13:34:00, 13:34:15, 13:34:30, 13:34:46, 13:35:03.

These are matching log rows, NOT fifty distinct failed subagents. The SQLite main database was read in immutable read-only mode, so recent WAL-only writes may be omitted.

A separate issue appears in the desktop logs: activation of runtime update 26.1026.10807 repeatedly fails with EPERM while renaming the runtime cache directory, failureStage=activate_runtime, hasConfiguredRuntime=true. One observed timestamp is 2026-11-03 13:27:45.960 UTC. A causal relationship with the routing timeout is NOT established.

The root cause remains undetermined. No configuration changes, cache deletion, or application restart were performed during diagnosis. Please investigate the workspace-routing discovery/retry path and whether failed runtime activation contributes.

Only sanitized technical findings are shared here; no credentials, account identifiers, local username/path, raw log files, or conversation contents are attached.

GaspardBLANC avatar Nov 03 '26 14:11 GaspardBLANC

Additional Windows data point on bundled app-server 0.169.1. This is a comparison between processes, not a claim that every report has the same cause.

  • A fresh turn in a local project on the running Desktop engine logged the routing timeout, then later reached tool execution without a restart. During its nominal 15-second failure window, a second process using the same bundled executable, signed-in profile and local working directory returned the expected model reply in 2.1 s. The processes did not have matched workload or model selection.
  • In another isolated run, with a successful routed account/read first, two fresh local turns completed in 13.1 s and 2.4 s while overlapping separate network-folder config/read calls that took 89.0 s and 82.8 s. A slow network-folder read alone did not reproduce the local timeout in that test.
  • In the live Desktop process, a cwd-less configRequirements/read took 89.6 s with 0 ms reported Desktop queue wait. It does not call workspace account discovery. That demonstrates a separate configuration delay; it does not identify what a particular timed-out routing future was awaiting.

Is there a supported diagnostic build or trace for this path? The most useful event would report, on expiration of the existing deadline, the stage still pending and its elapsed time, plus the longest completed stage and elapsed time. In particular: initial retained-config load vs requirements recheck, policy permit/local policy/cloud snapshot, layer loading/rebuild, discovery permit, and accounts check/auth recovery. Fixed labels distinguishing local, UNC and no-session reads would suffice; no path, account, prompt, headers or payloads are needed.

skipgyt avatar Nov 19 '26 09:11 skipgyt

A macOS data point, in case concurrency is useful for narrowing this down.

We run many background Codex tasks in parallel from one machine (macOS, 14 cores, codex-cli 0.172.0 now; the history below spans earlier CLI versions from August onward). Tasks die with workspace routing discovery timed out in bursts. On 2026-11-28, 13 tasks died within 16 minutes. In the local log DB (logs_2.sqlite, target codex_core::responses_retry), every retry in that window gives sampling_error=workspace routing discovery timed out as its cause. Each failed task shows two rounds of Reconnecting... 1/5..5/5 before it dies.

I counted how many Codex tasks were running on the machine when each task started (counting the task itself), then grouped the outcomes by that number. The data is 6,729 tasks from 2026-08-08 to 2026-11-30:

tasks running at start, including itself tasks died of the discovery timeout
1-4 4,021 12 (0.3%)
5-8 1,332 20 (1.5%)
9-12 561 33 (5.9%)
13+ 805 45 (5.6%)

What we ruled out: the OpenAI status page showed no incident in those windows. A direct accounts/check request answered in 0.14 s right afterwards. Nothing in our config sets the 15 s bound.

The host was also heavily loaded during the worst burst (load average around 199 on 14 cores), so I can't yet separate local starvation from backend slowness, and I may be misreading the code. It looks to me like read_account() in app-server/.../workspace_routing.rs wraps the config reload and the accounts check in one fixed 15 s timeout. The cache is keyed per auth generation, so if I read it right, a new auth generation makes every running process rediscover at the same moment. Does that match how you see it? And is a per-process stampede on a new auth generation expected?

Our tooling collected these numbers, and I checked them against the raw job records. We now limit how many tasks run at once on each host, and we hold new tasks while this error is occurring, as a workaround.

escooterclinic avatar Nov 30 '26 21:11 escooterclinic

Follow-up to my macOS data point above, with measurements (codex-cli 0.172.0, macOS, 14 cores, 36 GB). The source is unchanged through rust-v0.174.0-alpha.13.

What the 15 s budget covers. In app-server/src/request_processors/account_processor/workspace_routing.rs, read_account() reloads config (load_retained_session_config / load_latest_config → refresh_application_network_policy, the config layers, the macOS managed preferences) at lines ~318-350. That happens before the routing-cache lookup (~394-424), and all of it is inside tokio::time::timeout(Duration::from_secs(15), read) (~586). route_responses_api_provider (model-provider/src/provider.rs) calls it for every Responses HTTP request and every WebSocket handshake. So even with a warm routing cache, every request (and every reconnect) has to finish a config reload within 15 s.

Negative controls. Timing account/read on fresh codex app-server processes, which run the same read_account():

  • 1 process: 2.4 s for a full discovery, 0.01 s when cached.
  • 12 / 24 / 48 concurrent processes: median ~1.6 s, max 2.1 s, 0 errors. Discovery does not slow down with concurrency.
  • 24 concurrent with 100 busy loops on 14 cores: median 2.1 s, max 2.4 s.
  • 24 concurrent with 12 disk writers running fsync: median 2.4 s, max 2.7 s.
  • 12 concurrent real background tasks, both on an idle host and at load1 ~180 from busy loops: 0 deaths.
  • An account/read {refreshToken:true} from another process (auth.json rewritten) did not invalidate the routing cache in 12 live app-servers.

What the deaths do track: host memory pressure. Across three death windows (53 one-minute samples), compared with the week's baseline:

metric death windows, median baseline, median
swap-ins/s 435 1 (p90 112)
swap used 15.5 GB 10.1 GB
load1 146 5
CPU busy ~60% —

Inside one failing task in that window, applying a single-file patch took 60 s, and discovery alternated between success and timeout for 70 minutes. The app-server process itself was stalling on page-ins. The single network call was not the problem.

Suggestion. Keep the config reload (and the semaphore waits) out of the timed section, or skip the reload when the cached routing key still matches. A stalled host would then fail only real discovery, not every request that reuses a cached routing. A distinct error for a timeout during config reload versus during accounts/check would also make reports like these easy to split.

Edit (2026-12-01, later the same day): this weakens the memory-pressure part above. I ran 48 more real background tasks, 12 at a time, while the host was worse off than in the death windows (load1 median 80, max 112; swap-ins ~690/s; swap used 17.5-19.7 GB). None hit the timeout, and the local log DB has no workspace routing discovery timed out rows for the whole session. So memory pressure alone doesn't reproduce it here, and I don't have a reproduction yet. One thing I did confirm live: with an unreadable project-layer config.toml placed mid-turn, the very next reconnects failed on the config load (failed to load workspace requirements: invalid input parameter). So config really is reloaded on every reconnect, which is the path the 15 s timeout covers.

escooterclinic avatar Dec 01 '26 08:12 escooterclinic