Skip to content

Windows Desktop global Send stalls with a full client scheduler; need supported request lifecycle diagnostics #54969

Open

Description

@chenlongsun21-cloud

Reproduction and versions

On Windows x64, recurring incidents leave the desktop UI responsive while clicking Send in any chat has no effect and text remains in the composer. Restarting restores sending temporarily. Incidents have often been noticed while answering a question or submitting a message.

At the time of this investigation, the installed/running Desktop was 26.1013.4894.0 and its actual signed native app-server reports codex-cli 0.163.0-alpha.10.2. The confirmed queue failure below is from an earlier process generation. Recurrence in this current generation has not yet been captured; unchanged scheduler code alone is not proof of recurrence with the current native binary.

Confirmed failure boundary

A saved incident at 2026-10-18 00:57:53 +08:00 records thread/queue/add rejected with -32001, App server request queue is full, with inFlightRequestCount=8 and queuedInteractiveRequestCount=64. Composer submission failed 17 ms later. The retained incident window contains 189 queue-full rejections and 77 queued-expiry rejections.

Four plugin/installed frontend timeouts match the same request IDs and queue-expiry events. They establish downstream failures, not the initial slot holders. The earliest retained expiry has four requests in flight; arrival/admission records do not identify those requests. Attachment queries began being rejected after congestion and are not established as the initial trigger. Previously completed long requests must not be attributed as holders.

A separate older generation returned account/read with workspace routing discovery timed out after approximately 15 seconds. That native routing path bypasses the ordinary client scheduler. Its configuration/cache/semaphore/network phases have not been measured, so we cannot equate the two failures or attribute them solely to VPN settings.

Existing diagnostic limitations

The audited current client scheduler exposes aggregate counts and some arrival/rejection/forwarding events, but not the needed per-request admission, ensureReady/dispatchBarrier wait and release history. The builtin performance trace records Chromium/CPU profiling; increasing log level cannot create missing lifecycle events.

The actual public CLI advertises doctor --json as a local redacted health report, without a current-Desktop attachment or client-slot dump option. One bounded run produced no stdout/stderr within 30 seconds; only its new diagnostic process was ended. Existing Desktop/native process generations and configuration/authentication file hashes remained unchanged.

Version-matched public source explains that doctor buffers JSON until build_report completes, runs parallel health checks and has no universal 30-second deadline for direct SQLite integrity checks. Thus that cutoff neither identifies a stuck phase nor proves the same Send fault. Human progress labels do not export Electron scheduler occupancy. The source tag is a version match, not binary-equivalence proof.

The actual public app-server daemon help has no status command. Its version command advertises version metadata, without a current Desktop PID/connection selector or request lifecycle dump. We have not conflated the SSH-managed daemon with the Desktop's stdio app-server.

No ASAR, signature, fuse, private IPC or runtime was patched. No diagnostic build or third-party binary was installed. Related report #37401 describes plugin-framework isolation, but it does not establish that cause on this machine. A successful plugin inventory cannot rule out a framework defect.

Separate local mitigation

We found and corrected a separate deadline-placement defect in a locally maintained Windows MCP lazy wrapper. Its timeout previously covered response waiting only, leaving write-lock acquisition and stdin drain unbounded. A simulated backpressure case failed on the original, and the corrected whole-transaction deadline passed nine isolated cases and the same nine cases against the installed source. No existing process was restarted; hot activation is unverified. This is a local wrapper correction, not proof of the cause or repair of the Desktop-wide Send failure. The initial Desktop scheduler slot holders remain unidentified.

Request

Please provide a supported current-process capture procedure or an official signed Windows diagnostic build that records metadata only for:

  • process generation, connection, request ID and method;
  • enqueue/admission and ensureReady/dispatchBarrier wait boundaries;
  • scheduler markSent separately from actual transport write;
  • response, cancellation, expiry and clear/release, with durations;
  • internal phases of the native workspace-routing discovery deadline.

We need the initial occupied requests and their wait/release history to identify the defect. A general health report or another restart does not supply that evidence. Please specify compatible versions, supported activation and a safe procedure. Raw logs and credentials are intentionally not attached.

Activity

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

    @github-actions
    Contributor
  3. willfeldman commented on Oct 18, 2026

    @willfeldman

    Reviewed both linked issues - #54969 looks particularly relevant as my macOS logs also show “App server request queue is full,” “App server request expired while queued,” and plugin/installed timeouts. The failures span several request types, so plugin loading may be a downstream symptom.

    There are some differences: my queue-full burst shows 128 background requests queued with two in flight, whereas #54969 describes interactive queue saturation. I also don’t see the distinctive two-minute tools/list timeout from #54789 in my log.

    Restarting, signing out/in, and reinstalling haven’t resolved this. I’m keeping this open as a potentially related macOS case, since a shared root cause hasn’t been confirmed. Happy to provide targeted, sanitized diagnostics.

  4. cicada0133 commented on Oct 18, 2026

    @cicada0133

    Additional incident on Windows x64, installed Desktop package 26.1013.4894.0. The UI remained usable, but responses/operations stalled; the user restarted the app to recover on 2026-10-18 at approximately15:46MSK.

    Sanitized observations from the preceding Desktop process:

    • At15:41:49MSK, the scheduler reported inFlightRequestCount=8, queuedCriticalRequestCount=11, queuedInteractiveRequestCount=25 and queued background work. A hooks/list request expired after30000ms still waiting in the client queue.
    • At15:42:19MSK, the same in-flight/critical/interactive counts remained; thread/turns/list expired after60006ms while queued.
    • At15:42:21–23MSK, permissionProfile/list, hooks/list and mcpServerStatus/list expired after roughly30005–30010ms, with the same eight occupied slots and11 critical/25 interactive requests queued.
    • The inspected signed installed bundle has a scheduler cap of8 and checks total in-flight occupancy before selecting critical queued requests. Its timeout wording distinguishes not-yet-dispatched requests from dispatched requests. Aggregate occupancy and expiry are confirmed; the initial holders and the reason they failed to complete are not identified.

    This is separate from a verified large-history problem: one image-heavy session previously prepared a149.82MiB compressed /responses request and received HTTP408 after901seconds. Native supported history compaction subsequently reduced that session's requests to approximately0.45–0.47MiB, with recent successful HTTP200 status intervals of2–3seconds. The later global queue stall still recurred, so compaction is not a verified repair for this scheduler incident.

    The VPN core had been started about six minutes before the Codex restart; it was not restarted by the diagnostic agent. Its exact current route could not be attested from the unelevated process, and network/MCP failures also exist in the timeline. We are not claiming that network conditions cannot trigger the retained queue state, or that every earlier incident has the same cause.

    No ASAR/signature/private-IPC/remote experiment patch, global plugin disable, cache/auth deletion or automatic application restart was performed. Only read-only log/source inspection and one separately human-authorized history-compaction test were used. No raw logs, conversations, payloads, tokens or credential-bearing headers are attached.

    Please provide a supported current-process diagnostic that records the identities/methods of admitted requests, ensureReady/dispatchBarrier wait boundaries, actual transport write and eventual release/cancellation. The aggregate counters establish the stalled boundary but do not identify the original stuck slot holders or a safe supported recovery without restarting the app.

  5. ClarusIubar commented on Oct 20, 2026

    @ClarusIubar

    Additional Windows x64 incident on October 20, 2026.

    Environment: Desktop 26.1013.4894.0, bundled codex-cli/app-server 0.163.0-alpha.10.2.

    Multiple chats stalled and message submission displayed “App server request queue is full”. After a computer reboot, successful commands were observed in two tasks around 07:59–08:01 UTC. Queue expiry was recorded again at 09:55 UTC, followed by queue-full errors at 10:09 UTC.

    The following log values were checked against the original files and independently recounted. All timestamps are UTC.

    • 07:32:38.205–07:53:55.932: 109 queue-rejection events with 109 distinct request IDs, comprising 102 queue-expired and 7 queue-full. All reported inFlightRequestCount=8.
    • 09:53:28.015: account/read returned “workspace routing discovery timed out”, with durationMs=15003 and queueWaitMs=0.
    • 09:55:19: permissionProfile/list and hooks/list expired while queued after 30000/30001ms, with inFlightRequestCount=7.
    • 10:06:51.833–10:12:38.678: 81 queue-rejection events with 81 distinct request IDs, comprising 78 queue-expired and 3 queue-full. Eight requests were in flight in 80 events; one event reported seven.
    • 10:09:42.889: configRequirements/read was rejected as queue-full with inFlightRequestCount=8, queuedBackgroundRequestCount=37, queuedCriticalRequestCount=16 and queuedInteractiveRequestCount=50.
    • At 10:07:32.364 and 10:07:33.039, thread/start response_routed records reported durationMs=452554 and 419291 respectively, both with queueWaitMs=0 and errorCode=null. These are response-observation timing fields, not measured native execution times.

    The counts represent rejected request attempts, not distinct user actions. The earlier successful task commands were recorded by a separate diagnostic check, not established by the queue-log recount.

    The initial blocked requests and root cause remain unidentified. The logs do not establish that the same eight request identities remained occupied or that this incident has the same underlying cause as the original report. This is an additional case with matching versions and queue-full symptoms across multiple chats and request methods.

    No raw logs, local paths, repository details, conversation IDs or credentials are attached.

  6. andrea-kingautomation commented on Oct 20, 2026

    @andrea-kingautomation

    Live recurrence on the newer build, October 21 UTC

    The installed 26.1016 build has now reproduced the failure. A fixed 07:50:00–08:17:02.868 UTC native-log window contains four SSH-reset closures, 70 queue-full rejections and six queue-expired rejections. The first queue-full event is 08:06:25.898, with 4 in flight and 64 queued interactive requests.

    Generation 6 closes at 08:06:08.867 with 0 client / 8 internal pending; SSH reset/255 follows at .870. Generation 7 connects at 08:06:31.598 with 67 / 1, then closes at 08:07:05.176 with 72 / 17; reset/255 follows at .189. Generation 8 connects at 08:07:30.227 with 69 / 1. Another reset in this window occurs with 0 client / 0 internal pending, so retained client occupancy is not necessary for every transport failure.

    Two native read-thread tool starts bracket the generation-7 close. Their start markers do not include target-thread arguments or terminal outcomes. They do not prove that either read caused the disconnect, nor that stopping a caller wait canceled its underlying request or released capacity. The newer package is therefore not accepted as a permanent repair. Exact historical slot ownership and transport fault location remain open.

    Earlier source qualification and evidence follow.

    Current-build qualification: 26.1016, October 21 UTC

    The Windows installation now reports package 26.1016.6573.0, internal 26.1016.51333 / build 21161 / prod, with the native updater reporting up to date. I did not initiate the application update or restart. Read-only qualification of this new installed bundle still reproduces the account-read fanout and sent-request retention described below.

    The current renderer module app-initial-2b6b8063022d.js has SHA-256 6cb0ab2a8d03a47f95c4df668aa8e5a3004e42614a7d596cb239442344f1a497; native module src-CsH31EEu.js has SHA-256 6a266611954c6f0c72aca09bb13c0c793959a69e8d6330778a7cdef21835a1db. The exact current hook again produces one initial shared read and 96 additional reads per auth-status broadcast for 96 synthetic consumers, including an unchanged repeated status. Per-hook cleanup still evicts shared pending state. Sent requests still lose their admission deadline, account/read is still not coalesced, and sent account/read abandonment retains an outcome-unknown slot.

    Thirty-six offline cases pass: 23 characterize exact packaged source and 13 exercise separately authored candidate models. The native mark-sent, drop-unsent and slot-completion method bodies are byte-identical to the retained old native extraction. Old renderer comparison relies on its preserved exact-source harness/results because the previous ASAR is no longer installed. No installed code was patched.

    A fixed current-build log window, 06:57:25.159–07:23:15.247 UTC, has a connected remote generation without another queue-full marker. It does not establish prevention or complete reconnect acceptance. Changes elsewhere in this release remain possible, but these reproduced paths are still present. A supported versioned repair and generation-qualified request diagnostics remain needed.

    The earlier-build evidence follows.

    Additional Windows Remote SSH evidence from Desktop package 26.1013.4894.0, internal 26.1013.40934 / build 20770 / build commit af80d4d7c7e0e5dc58b4a67945df0188de153061. Remote CLI reports 0.159.3. Native updater reports this Desktop installation up to date. No app bundle, runtime, credentials, integrations or live server was modified.

    This separates a confirmed reconnect fanout/capacity problem from an unresolved delayed-response cause. It does not establish that the initial four requests leak or that large history caused this incident.

    Correlated sequence, 2026-10-20 UTC

    • 12:22:06.156: SSH-host WebSocket connection 41 closes 1006 with 0 client / 8 internal pending. SSH proxy exits 255 with client_loop: send disconnect: Connection reset. Next reconnect begins with 0 client / 0 internal pending.
    • 12:22:23.890: connection 42 opens. Initialize completes at 12:22:38.029, taking 14,139 ms.
    • 12:22:38.728-38.778: 26 rejected account/read requests in 50 ms, each observing 4 in flight and 64 interactive queued. Connected state publishes at 12:22:44.189 with 70 client / 1 internal pending.
    • The four initial slot intervals reconstructed from response_routed timestamp minus durationMs are config/read (38.241 -> 45.446), model/list (38.419 -> 44.189), and two account/read (38.551/38.552 -> 45.447/45.448). All times in minute 12:22. The installed routing code confirms this duration measures time from startedAtMs. All four complete; none is initially a history request. Native INFO routing events lack hostId, so this is a timing-based reconstruction consistent with the remote queue counts, rather than direct per-host dispatch proof.
    • 12:22:48.713: 8 in flight, 64 interactive and 2 background queued. Eight corresponding response intervals finish within 305 ms. Responses continue through 12:23:12.092.
    • At 12:23:37.818 and subsequent expiry events, 6 slots remain occupied with 51 interactive requests waiting. Final holder identities cannot be proven because successful admission/dispatch events are not retained at this log level.
    • 12:24:13.958: connection 42 closes 1006 with failureReason=pong_timeout, distinct from the preceding explicit SSH reset. Sixty client requests then fail remote_unavailable, including 49 account/read. Pending client state clears across close.

    Across the retained day's main-process logs: 1,499 queue rejections, including 988 queue-full account/read. These counts are rejection events, not a count of unique operators or logical operations. Interleaved local-host successes are not proof that the remote path recovered.

    Installed-code regression evidence

    An isolated deterministic Node VM harness evaluates the exact installed scheduler and client queue regions, with fake time, inert transport callbacks and stub tracing. It reads the installed-source extraction at runtime and does not vendor or modify the implementation. All 13 test cases pass:

    1. Marking a request sent removes its queue deadline; ten minutes of fake time and dropUnsentRequest do not release it.
    2. An admitted unsent request does expire and release its slot.
    3. Four ordinary sent requests prevent model/list dispatch, while critical work can occupy up to eight total slots. The ordinary limit is four, noncritical limit five, total eight.
    4. Sixty-four interactive requests wait; the next is rejected.
    5. A late completion frees capacity without replaying the holders.
    6. Isolated fixture clear removes queues, slots and timers.
    7. Identical account/read requests do not coalesce; identical model/list requests do.
    8. Exact sent account/read abandonment retains its pending record/slot with unknown outcome.
    9. Exact sent thread/resume abandonment releases its slot.
    10. Exact sent plugin/list abandonment detaches and releases its slot.
      11-13. An in-memory experiment coalescing only identical account/read calls with refreshToken explicitly false reduces fanout, preserves different params/refresh-enabled calls/opt-out, but still cannot recover a withheld leader reply. It is not an incident fix.

    Harness SHA-256: 6b9e93f2b133f7fa89754ad9271ca0a7d413ccf9ba5363eb5b68b71df837e035. Installed source module SHA-256: 28a0918f01c50b0eb17676e894998ad7182f119d978adf0467ccaac3583f259c. These tests characterize current behavior; they do not establish remote cancellation, wire delivery or live resilience.

    The SSH settings row's Restart connection handler in this build explicitly sets killCodexProcess:true. The distinct Reconnect path omits it. We did not use the restart action against active remote work. Please distinguish these paths in supported diagnostic/recovery instructions.

    Remaining diagnostic/fix boundary

    We still need generation/host-qualified metadata for admission, ensureReady and dispatchBarrier waits, markSent versus actual write, server response enqueue versus flushed bytes, client frame receive/parse/route, and release/cancellation/unknown outcome. The metadata should identify the six enduring holders and which side stopped making progress. A fresh fast independent RPC does not settle the old stream.

    Relevant server improvements such as #51499 (blocking-worker rollout parsing) and #50380 (disconnect during required MCP startup) merit controlled evaluation, but their existence does not prove this incident's cause. No three-cycle live acceptance or permanent cure is claimed. A supported signed Desktop diagnostic build or versioned lifecycle repair remains needed; ordinary effectful requests must retain outcome-unknown reconciliation rather than being blindly replayed.

    Follow-up: reproducible renderer source for the account-read amplification

    An independent read-only source review now identifies a concrete fanout mechanism in this same signed build. Renderer module app-initial-5851df3f6cb1.js has SHA-256 c70d95da34ba7e5962a559dbf68d0102d10b4b47b877f5d9933629bb5a1f3a10. UTF-8 offsets identify auth hook UIn at 3236405, shared subscription KIn at 3238714, pending-read helper qIn at 3239403, and the native account wrapper at 2880911.

    • Initial readiness shares a pending account read through qIn.
    • KIn shares one auth-status subscription per client and broadcasts its event to all hook listeners.
    • Each UIn listener deletes the shared pending memo, switches its local branch, and calls getAccount directly rather than qIn. The wrapper sends account/read with refreshToken:false.
    • Individual hook cleanup also evicts the shared memo while other consumers may still use that pending read.

    A second isolated harness evaluates the exact packaged hook and memoization helpers with synthetic React/effect and subscription stubs. Five current-code characterizations pass: 96 chosen fixture consumers initially share one read; one broadcast creates 96 additional reads; another unchanged broadcast repeats the fanout; simply replacing the direct call with qIn still creates 96 reads because each listener invalidates first; and unmounting one consumer evicts a read still shared by another. The fixture count is not a historical measurement. A separate independent exact-KIn check confirms 96 attachments share one native subscription, one event invokes 96 callbacks, and only the last detach disposes that subscription.

    The smallest proposed native correction reuses the existing qIn/KIn ownership: invalidate the pending account/auth memo once at the shared event boundary, send every consumer through shared pending-read memoization, and move cleanup to shared subscription disposal rather than individual hook unmount. Preserve per-hook stale/client/disposal guards and existing native refresh parameters. Existing qIn already has an identity-guarded finally; it shares pending operations rather than caching settled results. Do not suppress an event merely because authMethod is unchanged, since the principal may change without changing that method.

    Ten additional tests of a separately authored coordinator model cover single-flight after shared invalidation, stale-result suppression after a second event/reconnect, old completion unable to evict a newer pending leader, client and parameter separation, explicit recovery after rejection without automatic replay, and refresh-enabled calls retaining their parameters and independence. Total in this second harness: 15 passing cases, clearly split into five exact-source characterizations and ten model cases. Harness SHA-256 61159e96c553e8b385c10df763c429ca02a9a40728d40b8da98d91088954a877.

    This is a scoped patch proposal and testable reproduction for the amplification defect, not a compiled or installed renderer patch. It still cannot release a withheld dispatched request or explain why native replies stopped. In inspected public 0.159.3 source, ordinary successful account reads return responses without emitting another account/updated; connection initialization has an explicit update path. Thus this supports finite fanout per broadcast, not a proven read-to-update feedback loop. No production auth/config branch was inspected or changed, and no live reconnect acceptance is claimed.

    October 21 follow-up: separate transport resets from internal auth-refresh retirement

    Further observations on the same Desktop build distinguish two failure profiles; neither establishes a permanent fix. All times below are UTC on October 21, 2026.

    • A transport reset can occur with no requests retained. At 06:20:32.289, a host-qualified remote connection closes 1006/unknown with 0 client and 0 internal requests pending. Its SSH proxy reports exit 255 / connection reset two milliseconds later. This excludes retained request occupancy as a necessary condition for that particular reset; it does not identify the reset's origin.
    • A separate close is explicitly initiated by the client after an internal auth-refresh wait fails. At 06:23:16.038, another generation records refresh_authenticated_connection_state_failed with Timed out waiting for MCP response to getAuthStatus, 30.016 seconds after its initialize handshake marker. At 06:23:18.043, close_not_observed_forcing_disconnect forces retirement, with 75 client / 3 internal requests still pending. This wording belongs to the app-server request path; it does not identify an external MCP integration, credential failure or initialization storm. The logs do not emit the failing internal request ID, sent-at time or explicit deadline, so the elapsed span is not a measured execution deadline.
    • Windows TCP/IP records an immediate transport termination mechanism in an earlier failure. On one matching TCB/endpoint, event 1046 version 1 reports retransmission timeout expired at 05:03:04.3207809, followed by shutdown event 1044 at .320785 and close event 1038 at .3227246. The selected Desktop close is logged at .323. This supports retransmission timeout as that socket's immediate termination mechanism. The short-lived process exited before parent ancestry could be captured; the trace does not locate a loss hop or establish the cause of every Desktop failure.
    • A minimal standalone SSH echo also reproduced a failure without Codex RPC or MCP. Authentication and the first 64-byte response succeeded; the response validated at 05:40:18.399319. A second 64-byte request sent at 05:40:19.433708 received no response before connection reset at 05:40:48.529345 and exit 255 at .531282. The child lifetime was 38.921 seconds. This demonstrates a failure outside Codex's request queue, without proving a client implementation defect or identifying a network hop. Later bounded small-payload comparisons with both available SSH clients succeeded under the same IPQoS setting, so neither an alternate client nor that setting is a qualified fix.

    The latest qualified log interval also contains 82 queue-full rejections across three reconnect bursts, including 60 account/read. This remains consistent with the separately reproduced account-read amplification, while the empty-pending reset shows it cannot explain every disconnect.

    The paired passive capture ended before the next terminal disconnect. Its Windows/VPS sequence correlation remains under review and does not yet locate the transport fault. The older enduring slot holders are not newly identified, and no three-cycle acceptance or durable cure is claimed. Please provide generation-qualified internal auth-refresh send/deadline/response/release diagnostics and a supported work-preserving recovery path, alongside the shared-account-read correction already proposed above. Raw captures, payloads, endpoints, process/thread IDs, private paths and credentials are intentionally omitted.

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