Skip to content

Windows Desktop UI lags during 100-thread attachment request bursts and app-server queue saturation #48917

Open

Description

@myloveislr-prog

Summary

Codex Desktop on Windows 10 becomes sluggish across all chats. Opening menus or Settings is especially slow. Restarting the app did not resolve it. During a captured Settings interaction, the desktop renderer had a CPU burst and the app-server request queue filled with thread/attachment/list calls during the same UI activity as a thread/list response.

Environment

  • Windows 10 Pro 22H2, build 19045, x64
  • Codex Desktop Windows package: OpenAI.Codex 26.924.2738.0 (verified from the running executable path)
  • Desktop log build number: 11645
  • Local state: 3,182 total threads, 2,719 not archived
  • Local thread_attachments table has 0 rows (this does not establish that no other attachment source exists)

Reproduction

  1. Open Codex Desktop with this existing local chat history.
  2. Open a menu or Settings. The whole Codex UI is sluggish; the behavior affects all chats.
  3. Restart Codex and repeat. The lag remains.

Captured evidence

At 2026-09-28 16:12 Asia/Shanghai (08:12 UTC), while opening Settings:

  • Main renderer CPU increased by 2.14 CPU-seconds during one wall-clock second. Its working set rose from about 632 MB to 722 MB.
  • thread/list completed in 28 ms at 08:12:11.392 UTC.
  • The surrounding burst logged thread/attachment/list for 100 distinct conversation IDs (166 log lines). The first queue rejections were logged at 08:12:11.373 UTC, before the thread/list response. These events coincide; the log does not prove that the list response caused the attachment requests.
  • The app-server client queue reached 64 queued interactive requests with 4 in flight. 33 attachment-list requests were rejected with App server request queue is full (-32001).

A separate burst at about 08:11:26 UTC also covered 100 distinct conversation IDs and had 18 queue-full rejections. This indicates the fan-out is not specific to Settings. The exact UI trigger and source-code cause are not established.

During idle sampling after restart, the renderer used only 0.30 CPU-seconds across 6 seconds. System RAM and disk were not saturated. Thus the observed load is intermittent and coincides with request bursts, rather than constant CPU saturation.

The logs also show an unrelated-looking git-init-watcher retry every five seconds against a malformed path formed by joining two absolute Windows paths. Its relation to the UI lag is unproven.

Expected behavior

Opening menus and Settings should remain responsive with a large local chat history. UI activity should not issue enough simultaneous per-thread attachment requests to exhaust the interactive request queue.

Request

Please investigate which UI path issues attachment-list requests for this stable set of 100 threads, and whether they can be deduplicated, deferred until needed, or concurrency-limited. Please advise whether there is a supported user-side mitigation and which build contains a fix.

Related broader reports: #21211 (thread metadata/history performance), #20214 (Windows UI stutter). Those do not appear to document this exact 100-thread attachment-list burst and queue rejection.

No chat transcript, conversation ID, account detail, credential, full log, or personal filesystem path is included. Prepared with AI assistance at the user's request.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Sep 28, 2026
  2. changed the title [-]Windows Desktop UI lags as thread-list refresh fans out 100 attachment requests and fills app-server queue[/-] [+]Windows Desktop UI lags during 100-thread attachment request bursts and app-server queue saturation[/+] on Sep 28, 2026
  3. heznpc commented on Sep 28, 2026

    @heznpc

    Independent macOS corroboration: ChatGPT Desktop 26.924.22138, build 11645, on macOS 27.0 / Apple Silicon / 16 GB RAM shows the same thread/attachment/list queue-saturation pattern reported here on Windows.

    The September 28, 2026 UTC logs contain 539 distinct failed request IDs, deduplicated across warning/failure entries, with -32001: App server request queue is full. This is a local JSON-RPC queue rejection, distinct from an HTTP 429 quota response. The 539 failures span historical bursts; they are not simultaneous requests or evidence of a continuous current failure.

    Associated rejection records show 4 requests in flight and 64 queued interactive requests, with priority=interactive and reason=queue-full. For example, the four-second window beginning 13:34:22 UTC includes attachment-list logs for 249 distinct conversations and 183 distinct failed requests.

    The inspected installed query handles worktree and pull-request attachment metadata and uses refetchOnMount: always. Its method name should not be interpreted as image-upload traffic. This source observation does not identify the action that triggered the bursts.

    Causal limit: these historical windows were not synchronized with UI actions or the separate renderer recording. They establish queue saturation on macOS, but do not establish its trigger or contribution to UI latency.

    Investigation request: please include macOS and trace which consumers initiate these requests, particularly mounted offscreen chat rows. Evaluate deduplication and bounded background concurrency while preserving active-chat capacity. These are investigation directions; no fix has been validated. Validate changes against both queue rejections and interaction latency with the same populated history.

    Additional burst counts — September 28, 2026 UTC

    End timestamps are exclusive. Conversation counts cover attachment-list logs; failure counts use distinct request IDs.

    UTC interval Distinct conversations Distinct failed requests
    13:34:22–13:34:26 249 183
    13:34:32–13:34:35 225 139
    14:25:16–14:25:17 103 36

    Only aggregate measurements are included; no raw logs, identifiers, transcripts or local paths are shared.

  4. ninosat00 commented on Oct 17, 2026

    @ninosat00

    Additional evidence: current Windows build and isolated scheduler reproduction

    The same thread/attachment/list queue saturation is still observable on Codex Desktop 26.1013.40934, build 20770, Windows, production channel. The configured updater reported up_to_date on October 17, 2026.

    Observed incident

    The October 17 startup log contains 54 queue-full rejection records for thread/attachment/list within one short burst. This is a historical incident in the sampled logs, not evidence of a continuously full queue. No new rejections were observed in the later diagnostic window. The persistent message queue was empty; it is a different queue from the client request scheduler.

    Read-only source inspection

    In this installed build, the client scheduler has an interactive backlog limit of 64. Attachment-list requests use interactive priority by default and are absent from the coalescible-method set. The inspected attachment-query call site has no shared per-host concurrency bound before admission.

    This identifies a plausible saturation mechanism. It does not establish every UI trigger or prove that all Desktop latency has the same cause.

    Controlled reproduction

    Only the installed scheduler class and its constants were extracted read-only and evaluated in an isolated JavaScript VM. No live app connection, filesystem or network access was provided to that VM. The transport was a stub: dispatch marked the request sent; completion ran on the next setImmediate callback. The requests used 200 unique synthetic IDs and method thread/attachment/list.

    Same scheduler, same synthetic workload Succeeded Queue-full rejections Peak in flight
    Submit 200 requests synchronously 68 132 4
    Shared caller-side limit of 2 per host before enqueue 200 0 2

    Reproduction recipe: instantiate the scheduler, synchronously enqueue 200 distinct attachment-list operations using the stub above, await settlement, then repeat with each enqueue operation admitted through one shared two-slot limiter for the host. Both runs finish with all scheduler queues empty. This demonstrates admission overflow under a synthetic burst; it is not a UI benchmark or an end-to-end production fix.

    Separate candidate-limiter tests passed for cancellation while waiting, releasing slots after failures, and independent hosts. A real native stdio app-server also completed metadata and attachment-list reads for 24 recent/historic chats at concurrency 2, without chat or attachment writes. That stdio check bypasses the Electron scheduler and therefore does not certify Desktop recovery.

    Suggested integration and validation

    Share a small per-host limiter across attachment-page consumers, before sendRequest reaches the client scheduler. Conceptually:

    // One shared limiter, rather than one limiter per mounted query.
    return attachmentLimiter.run(hostId,
      () => sendRequest("thread/attachment/list", params, { signal }),
      { signal });

    Preserve cancellation, pagination, retries and query invalidation; keep admission protection and capacity for active-chat actions. Validate cold startup with populated history, remounted/offscreen rows and multiple windows, measuring queue rejections and interaction latency together.

    The installed signed app, admission experiments and user configuration were not modified. The limiter is a local candidate requiring vendor integration. No raw logs, chat identifiers, transcripts, account details, private configuration or personal filesystem paths are included. Prepared with Codex assistance.

  5. xiru0834-eng commented on Oct 19, 2026

    @xiru0834-eng

    October 19 recurrence: sending stalls, 1,318 queue rejections, and stale queued-submission error

    Environment: Windows x64, Codex Desktop 26.1013.40934 / build 20770, production channel; the configured updater still reported up_to_date on October 19. Backend: codex-cli 0.163.0-alpha.10.2. Follow-up messages use queue mode, which the user wants to retain.

    User impact: ordinary coding work repeatedly leaves message submission spinning; the user also reports being unable to attach/send files. Restarting temporarily restores use, but the problem recurs. There is no deterministic minimal UI trigger yet.

    Two new captured incidents (UTC, October 19, 2026)

    1. 02:26:20.609–02:29:16.173: 1,318 warning-level app_server_client_request_queue_rejected records, counted once at the rejection log rather than also counting failure echoes. Breakdown: 1,290 thread/attachment/list, 10 config/read, 6 thread/queue/list, 4 thread/list, 2 each configRequirements/read and fs/createDirectory, and 1 each fs/watch, thread/fork, app/installed, model/list. Rejections show 64 queued interactive requests and up to 8 requests in flight.
    2. 03:33:20–03:33:21: another 32 rejection warnings, all thread/attachment/list, with 64 queued interactive requests and 7 in flight. A user screenshot taken at about this time showed the pending sender. After restart, at 03:34:19.100, the desktop logged Failed to send queued message, code -32600, message queued submission not found: <redacted>.

    Sanitized excerpts (identifiers omitted):

    2026-10-19T02:26:20.609Z warning [AppServerConnection]
    app_server_client_request_queue_rejected inFlightRequestCount=8
    method=thread/attachment/list priority=interactive
    queuedInteractiveRequestCount=64 reason=queue-full
    
    2026-10-19T03:34:19.100Z warning [electron-message-handler]
    Failed to send queued message errorCode=-32600
    errorMessage="queued submission not found: <redacted>"
    

    A queued submission had been accepted before restart, and the affected conversation was independently observed starting a new turn shortly before the latter error. Thus the error suggests stale/duplicate submission state, but does not establish message loss. Please reconcile frontend queued IDs with server consumption on reconnect so the UI gives an accurate result without encouraging duplicate submissions.

    Mechanism and reproduction

    Read-only inspection of this installed build confirms the earlier comment's findings: interactive backlog limit 64; attachment-list requests absent from the coalescible-method set; attachment metadata query uses refetchOnMount: "always" and no shared pre-admission limit at the inspected call site. Cancellation is checked before/after the request but is not passed into sendRequest at that call site.

    The isolated 200-request scheduler reproduction was rerun with stub completion on the next setImmediate: 68 succeeded / 132 rejected / peak 4 in flight. Admitting the same workload through a shared two-slot per-host limiter gave 200 succeeded / 0 rejected / peak 2. Waiting cancellation, host isolation and slot release after failure also passed. This is synthetic admission-overflow evidence, not a real UI benchmark.

    A candidate integration was prepared only in a separate disposable app copy. Its full modified JavaScript passed syntax checking, but the copied client refused to launch because the native ASAR integrity check rejected it. No integrity bypass was attempted, the installed app was not patched, and no end-to-end repair is claimed. A supported vendor build is needed.

    Important boundaries and requested fix

    • thread/attachment/list handles worktree/PR metadata, not the image-upload transport. The logs establish common request-queue saturation and control-request rejection; they do not independently identify a failed image-upload network request.
    • No new native crash event was found for these two queue incidents. A separate native allocation-failure investigation belongs to Windows Codex Desktop 26.930.21537: recurring backend crash (0xc0000409) leaves app-server unavailable and active chats stalled #50324; suppressing memory extraction for one oversized history did not prevent the second queue burst.
    • Please bound/deduplicate attachment metadata fan-out before scheduler admission, preserve active-chat capacity and cancellation, validate populated-history startup/remount/multiple-window paths, and reconcile queued submissions after reconnect.
    • Please retain normal queued follow-up behavior and show actionable failure/retry state rather than an indefinite spinner. Please identify the supported build containing a fix or a supported mitigation.

    Only sanitized aggregates, technical excerpts and reproduction results are posted. No screenshot, transcript, conversation/request identifier, account detail, personal path, credential, raw log or dump is uploaded. Prepared with Codex assistance at the user's explicit request.

  6. ninosat00 commented on Oct 22, 2026

    @ninosat00

    October 22: recurrence on production build 21161, including the current app session

    Codex Desktop on Windows is still severely slow during ordinary use. These are new measurements from the same local installation that supplied the October 17 evidence, not a claim that another user's October 19 incidents occurred here.

    Installed: internal app version 26.1016.51333, build 21161, production channel; Windows package version 26.1016.6573.0. The differing app/package version strings are reported separately.

    Bounded log evidence

    Across all October 22 UTC main-process t0 logs available at 11:26 UTC:

    • 540 warning records for app_server_client_request_queue_rejected with reason=queue-full.
    • 122 records of that event with reason=queue-expired.
    • 21 mcp_request_timeout records, reported separately rather than added to the rejection totals.
    • 532 of the 540 queue-full records concern thread/attachment/list; the remaining eight concern config/read, thread/queue/list, and mcpServerStatus/list.
    • Maximum observed scheduler fields: 64 queued interactive requests, 8 in flight.

    The rejection counts use the specific warning event and its reason, not subsequent failure messages that echo the same error.

    The current app session started at 10:50 UTC. Its log already contains 226 queue-full and 16 queue-expired records, with the queue-full burst at 11:20–11:21 UTC and expiration warnings through 11:22 UTC. Restarting therefore has not provided durable recovery.

    Maximum client-reported response durations in that current session:

    Method Duration
    mcpServerStatus/list 689,938 ms
    config/read 475,563 ms
    thread/resume 98,667 ms

    These are client-observed path durations, not isolated MCP server execution or network timings. Many other calls complete quickly; the stalls are intermittent. At a later 11:30 UTC check there were no new rejection messages in the last five minutes, which does not negate the preceding recurrence.

    Checks and limits

    Read-only quick checks of the native state, persistent message queue, and memory databases returned ok; the persistent message queue contained zero messages. It is distinct from the request scheduler above. CPU and available RAM samples did not show system-wide exhaustion. Many Node/Python workers belong to the current app's process tree; their contribution has not been isolated, and they are not assumed to be abandoned processes.

    The in-app updater reports available without a destination version/build. The documented Microsoft Store product ID reported no newer package. A HEAD request to the official x64 MSIX returned HTTP 403, but a subsequent GET succeeded: HEAD failure did not establish download unavailability. The official MSIX manifest identifies package 26.1016.8120.0, same OpenAI.Codex identity/publisher, and Windows Authenticode verification returned Valid. After a coherent local backup, Add-AppxPackage -DeferRegistrationWhenPackagesAreInUse completed successfully. Windows deployment event 658 explicitly confirms deferred registration because package 26.1016.6573.0 is still running, and event 400 confirms deployment completion. The update is staged for activation after the app fully exits, not active in the measured session. No post-update recovery is claimed; the new version still needs populated-history/UI validation.

    Request

    Please identify the supported build or mitigation for the attachment metadata fan-out and request-queue starvation, preserving ordinary queued follow-ups and user history. Please also investigate the difference between in-app update availability and the documented Store path here. The newer staged package has not yet been evaluated for this defect.

    The earlier isolated limiter experiment remains candidate evidence only; it was not installed into this signed app. No raw logs, transcripts, identifiers, private paths, credentials, or screenshots are included. Prepared with Codex assistance at the user's explicit request.

  7. ninosat00 commented on Oct 23, 2026

    @ninosat00

    October 23 follow-up: build 21477 active; separate findings before and after the latest restart

    The official Windows package 26.1016.8622.0 is now registered and running. The app reports internal version 26.1016.62342 / build 21477, production channel, with updater status up_to_date. This supersedes the pending-activation status in my October 22 comment.

    Read-only main-process log analysis at 07:49 UTC on October 23, separating app instances rather than attributing old errors to the currently running instance:

    Build and instance Observed UTC interval queue-full warning records queue-expired warning records mcp_request_timeout records
    21421, previous instance (October 23 portion only) 00:00:37–05:37:40 3 4 2
    21477, earlier instance 05:37:49–07:24:20 0 12 2
    21477, current instance 07:24:32–07:48:55 0 0 1

    Queue counts use only app_server_client_request_queue_rejected, classified by reason, without also counting subsequent failure echoes. Timeout records are separate, not additional queue-rejection counts. The current instance's single mcp_request_timeout was config/read at 07:24:41 UTC, with timeoutMs=500, during startup; it should not be equated with a measured 28-second timeout.

    New-build recurrence versus current window

    On the earlier build-21477 instance, the twelve expiration warnings occurred at 07:23:12–07:24:12 UTC. They affected app/installed (1), permissionProfile/list (2), hooks/list (2), mcpServerStatus/list (2), thread/read (1), thread/list (3), and thread/turns/list (1).

    Thus request expiration still occurred after upgrading, but no queue-full or queue-expired warning has been observed in the first approximately 24 minutes of the current instance. That is bounded improvement, not proof of permanent recovery. There is no new attachment-list queue-full burst on build 21477 in this sample, and this update does not establish that all remaining latency has the same cause as the original issue.

    Current-instance client response timings

    Measured from response_routed log fields, across the current instance up to 07:48:55 UTC:

    Method Samples Median Maximum
    thread/list 13 4 ms 312 ms
    thread/resume 5 2,617 ms 3,314 ms
    turn/start 8 253 ms 1,055 ms
    config/read 65 13 ms 4,003 ms
    mcpServerStatus/list 44 9,114 ms 28,366 ms

    These are client-path timings, not an instrumented UI benchmark or isolated MCP/network execution times. The current sample does not reproduce the multi-minute stalls described yesterday.

    Read-only SQLite quick checks remain ok; the persistent message queue contains zero messages and is distinct from the client request scheduler. No native state, signed app files, MCP configuration, or admission limits were patched/reset for this verification.

    Please confirm whether build 21477 contains a relevant change for this issue, and advise whether the new-build request-expiration episode and comparatively slow MCP status reads should be correlated with the existing case or tracked separately. Please provide a supported diagnostic/mitigation path that preserves history and queued follow-ups. We are keeping the issue open pending sustained populated-history validation.

    Only aggregate measurements and method names are included; no raw logs, transcripts, conversation/request IDs, private paths, credentials, or screenshots. Prepared with Codex assistance at the user's explicit request.

  8. ninosat00 commented on Oct 23, 2026

    @ninosat00

    October 23 live-monitor follow-up: one later MCP-status latency event

    Following the earlier build-21477 update, a separate local read-only observer captured a new event at 2026-10-23 15:49:04.654 UTC:

    • Method: mcpServerStatus/list.
    • Client response_routed.durationMs: 20,504 ms.
    • Observed build: 21477.
    • One automatic slow-call episode, independently matched to the corresponding main-process log timestamp, method, and duration.
    • The separate manual report created while testing the monitor was excluded from these findings.

    This is a new time-stamped recurrence of the previously reported MCP-status latency. The event does not establish renewed queue saturation, a regression in duration, or the precise cause of UI slowness. The observer's stored automatic incident archive currently contains this one slow-call episode; it has no automatic queue-full/queue-expired/timeout incident in that retained archive.

    A nearby system sample at 15:49:07 UTC recorded CPU 47.4% and 23.06 GiB available RAM. The last persistent-message-queue sample before the event, at 15:48:42 UTC, contained 0 messages. These samples are not isolated measurements of the call's execution and do not establish causation.

    At the 17:25 UTC follow-up check the observer was up to date, reported no observer error and no declared read gaps, and had no signals in the current process's last-five-minute window. Current five-minute mcpServerStatus/list readings at the initial 17:24 UTC check: 18 samples, median 9,452 ms, maximum 11,829 ms. Those are client-path durations, not an end-to-end UI benchmark. A quiet interval is not proof of a permanent fix.

    Please correlate this later event with the existing findings and confirm whether residual MCP-status latency is covered by the relevant fix or should be tracked separately. No raw logs, chat content, identifiers, screenshots, credentials, or private filesystem paths are shared. Prepared with Codex assistance at the user's explicit request.

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-serverbugperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions