codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS][25241] Slow foreground chat navigation with measured renderer stalls and a large desktop process tree

Open FoxsterDev opened this issue 3 weeks ago • 9 comments

Version and platform

  • ChatGPT/Codex macOS desktop, bundle com.openai.codex: 26.1103.31037, build 25241, verified from the installed application's Info.plist.
  • Bundled CLI: codex-cli 0.167.0-alpha.3.2. This is separate from the desktop version.
  • macOS 26.6.2 (25G83), Darwin 25.6.0, arm64; 64 GiB RAM, 16 logical CPUs.
  • Subscription tier: not collected.
  • Observed during ordinary ongoing work on November 7–8, 2026, UTC. The current desktop process had been running for approximately 34 h 51 min at the resource snapshot.

Problem

The affected user reports severe desktop UI lag during Codex work. Existing foreground client telemetry records slow chat navigation, long renderer interaction events and frame gaps. This report adds measured navigation evidence and resource context; it does not establish an update regression or a single root cause.

Measured foreground navigation

Read-only extraction of existing client.performance.span records, restricted to name=thread_navigation, focused and visible windows, and backgroundDurationMs=0. All samples below report build 25241. These are the application's span timings, not an independently instrumented click-to-usable-view benchmark.

Retained telemetry interval, UTC Navigation samples Median p95 (nearest rank) Maximum
Nov 6, 21:39:11–23:53:00 88 523.1 ms 991.0 ms 1342.6 ms
Nov 7, 21:19:57–23:59:32 206 726.5 ms 1410.3 ms 2629.7 ms
Nov 7, 23:45–00:00 (subset of preceding row) 31 1007.4 ms 2144.3 ms 2629.7 ms

In the 206-sample Nov 7 set:

  • Maximum recorded frame gap: 566.5 ms.
  • Worst recorded event input delay: 551.7 ms. Median of the per-span worst input delays was 7.0 ms, so large input delays were intermittent.
  • Maximum recorded interaction-event duration: 1720 ms.
  • The navigation span at 2026-11-07T23:56:07.825Z lasted 2629.7 ms, with a 1720 ms interaction event, 1564.1 ms event processing, 8.3 ms input delay, 147.6 ms presentation delay and 358.3 ms maximum frame gap. This identifies a slow observed interaction, not its call stack.

The two days involve different chats and active workloads. Logs rotate, sampling is selective, and the sample sizes differ. The higher later timings do not prove an update-caused regression, particularly because both sets use the same build.

Concurrent resource context

Read-only snapshots around 00:05–00:08 UTC on Nov 8:

  • Desktop-rooted process tree: approximately 358–366 processes, 18.19–22.20 GiB summed RSS. Shared pages can be counted more than once.
  • At 00:07:39: 182 node_repl, 61 node, 35 codex, and 34 renderer descendants. The renderers alone summed to approximately 7.85 GiB RSS.
  • At that same snapshot the desktop root plus its direct children comprised 47 processes / 10.34 GiB summed RSS. The broader descendant tree also includes running project/tool workloads and diagnostic commands.
  • Whole-machine CPU idle ranged from approximately 0–21% across brief samples; load averages included 87/108/96 and later 131/123/105 on 16 logical CPUs. These are whole-machine readings, not CPU attributable solely to Codex.
  • Approximately 59–61 GiB physical memory used, 23–24 GiB compressor, zero swap. The numeric kern.memorystatus_vm_pressure_level reading was 2.
  • Approximately 245–247 GiB disk space available. Short physical-disk interval readings ranged from approximately 10.5–74.4 MB/s; the boot-average iostat rows were excluded.
  • Other work was active, including Xcode/Swift compilation and Simulator processes. System and other application processes also consumed CPU. There was no controlled idle baseline or workload A/B test.

For context, the earlier observation in #57674, shortly after upgrading to this same desktop build, reported 65–66 app-related processes, 6.13–6.42 GiB summed RSS and 71–76% whole-machine CPU idle. The much larger current tree is an observation under a different workload and much longer uptime, not proof of leaked or orphaned processes. Ownership/liveness of every helper has not been audited.

Co-occurring logs

In the complete 2026-11-07 23:00–2026-11-08 00:00 UTC window:

  • 7701 Failed to report desktop readiness to thread warnings with the missing-placement signature, covering 151 distinct placement identifiers.
  • 22 Failed to discover app tools records for Xcode.

The readiness signature is already reported in #57674. This new report concerns measured UI performance; neither that retry loop nor Xcode discovery failure has been shown to cause the UI delays. Distinct placement counts do not imply deleted, invalid or unreadable conversations.

Observed workflow and expected behavior

  1. Continue ordinary local/connected-computer Codex work using the existing desktop profile.
  2. Navigate among existing chats while other authorized work remains running.
  3. Observe sluggish UI; inspect the app's foreground navigation performance records.

This is an observed sequence on an affected installation, not a deterministic clean-install reproduction. No synthetic UI timing probe or clean-profile comparison was run.

Expected: responsive navigation and foreground interaction, with bounded background work and a supported way to diagnose helper ownership and renderer stalls without losing ongoing tasks or history.

Please investigate foreground navigation/rendering and helper lifecycle under sustained use, and advise which minimal supported performance capture would distinguish application work from whole-machine scheduling contention.

Related reports and privacy

Searched related reports before filing:

  • #57674: missing-placement readiness retries, already reproduced here.
  • #60113: high CPU on a different macOS/desktop version, including idle use.
  • #30408: alleged per-thread MCP process retention. The current large process tree alone does not verify that lifecycle defect.
  • #59301 and #59596: Dot/input-specific lag; this report has no equivalent Dot-vs-normal-chat/browser control.
  • #58426: chat-switch lag with a PDF-associated trigger; no PDF trigger was established here.
  • #60159: Windows foreground navigation measurements, not a macOS reproduction.

No confirmed duplicate with the same measured scope and environment was identified. Please consolidate if engineering identifies a common cause.

Prepared and submitted with the affected user's explicit authorization. Only allowlisted aggregate metrics and diagnostic field names are included. No raw logs, screenshots, personal paths, project/chat names, conversation or placement identifiers, account information, credentials, tokens or file contents are attached. No processes were stopped, settings changed, caches/databases edited, registrations reset, or application files patched during this investigation.

FoxsterDev avatar Nov 08 '26 00:11 FoxsterDev

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

  • #60159
  • #59860
  • #58815

Powered by Codex Action

github-actions[bot] avatar Nov 08 '26 00:11 github-actions[bot]

Follow-up: severe lag reported again, with new foreground timings and lower system load

The affected user again reports that the desktop app is too sluggish to work with. This is a continuation of the same UI-performance report, not a newly established defect or a claim that a newer build caused it.

Environment checked at 2026-11-08 15:14–15:15 UTC: desktop 26.1103.31037 (25241) and macOS 26.6.2 (25G83) are unchanged. The same desktop process has now been running for about 49 h 58 min.

Fresh existing-client telemetry

Read-only extraction using the same filters as the original report: thread_navigation, focused/visible window, zero background duration, build 25241. No synthetic UI probe or profiling instrumentation was injected.

  • 18 navigation spans, 15:07:10–15:14:35 UTC: median 545.8 ms, p95/maximum 1285.3 ms (p95 uses nearest rank, which is the maximum for this small sample).
  • Maximum per-span interaction event 1008 ms; maximum event processing 886.3 ms.
  • Maximum frame gap 158.3 ms; maximum recorded input delay 13.4 ms. These navigation samples do not reproduce the earlier 551.7 ms input-delay peak.
  • From the numeric marksMs fields in the same 18 spans:
    • navigation_dispatched → destination_view_entered: median 54.0 ms, maximum 245.0 ms.
    • destination_view_entered → content_visible: median 495.5 ms, maximum 1040.1 ms.

One selected actual span, with only allowlisted fields and values rounded to 0.1 ms:

2026-11-08T15:13:06.414Z
name=thread_navigation
durationMs=1285.3
marksMs.navigation_dispatched=0.2
marksMs.destination_view_entered=245.2
marksMs.content_visible=1285.3
rendererWorstEventDurationMs=1008.0
rendererWorstEventProcessingMs=886.3
rendererWorstEventInputDelayMs=5.7
rendererWorstEventPresentationDelayMs=116.0
rendererFrameGapMsMax=157.9

Across all currently retained foreground navigation spans from 12:38:24–15:14:35 UTC, there are 73 samples, median 512.9 ms, p95 1075.4 ms, maximum 1285.3 ms. The current retained main-log ring starts at 12:34:59 UTC; earlier records have rotated out.

These sampled delays are smaller than the worst overnight measurements. They provide fresh evidence of the navigation/rendering delay but do not quantify or fully explain the user's reported inability to work. The internal stage marks locate elapsed time, not the responsible function or causal mechanism.

Resource comparison

Two brief read-only checks at 15:14 and 15:15 UTC showed:

  • Whole-machine CPU 59–74% idle, versus 0–21% in the original overnight checks.
  • Load averages 9.24/10.61/6.94, then 5.56/9.24/6.69.
  • 52–53 GiB physical memory used, 10–11 GiB unused, about 21 GiB compressor, swap 0, numeric memory-pressure indicator 1.
  • About 181 GiB disk space available. Physical-disk interval readings were 87.1 MB/s and 27.2 MB/s; boot-average rows were excluded.

At 15:14:24 the desktop-rooted tree comprised 355 processes / 15.34 GiB summed RSS, including 200 node_repl, 64 node, 42 codex, and 26 renderers. Renderers summed to 6.21 GiB RSS; the desktop root plus direct children comprised 39 processes / 8.81 GiB summed RSS. Shared pages can be counted repeatedly; the broad tree includes active project/tool/diagnostic subprocesses. Xcode work was still active.

The tree count and RSS are lower than the overnight snapshot, while node_repl count is higher (200 vs 182). This is not proof of leaked, orphaned or inactive helpers. Normal helper ownership/lifecycle has not been audited.

The sampled system no longer showed the original near-total CPU saturation or memory-pressure reading 2. The resource checks were not synchronized with every navigation and do not exclude intermittent contention, but full-machine saturation is not a sufficient explanation for all observed navigation delays.

Co-occurring log activity

  • Complete 14:00–15:00 UTC: 7701 missing-placement readiness warnings, covering 151 distinct placements, and zero Failed to discover app tools records.
  • Complete 15:00–15:15 UTC: 1920 readiness warnings, again 151 placements, and 4 Xcode tool-discovery failure records.

The readiness problem remains tracked in #57674. No causal link between it, the separate Xcode failures and foreground lag has been demonstrated. No original placement IDs are included.

Please investigate the measured view-entry-to-content-visible interval and long interaction processing, and provide a supported privacy-preserving performance capture or non-destructive recovery procedure.

No settings, processes, caches, databases, registrations or app files were changed. No raw logs, screenshots, private paths, project/chat names, account data, original identifiers, credentials or tokens are attached. This update is posted with the affected user's explicit authorization.

FoxsterDev avatar Nov 08 '26 15:11 FoxsterDev

The foreground navigation timings are useful, especially the median rising from 523 ms to 1007 ms over the same 34-hour process. On a 64 GB Mac the lag clearly isn't plain memory exhaustion. While the lag was bad, was something else heavy running on the machine at the same time, such as a build, a test run or another Codex task? The follow-up mentions lower system load, so I'd like to know whether load mattered at all.

I'm building an experimental Mac tool for people who run several agents, and I'm trying to learn what actually causes the slowdowns.

suryar113 avatar Nov 11 '26 01:11 suryar113

November 18, 2026: severe lag still reported after app restart

Following up on the affected installation rather than opening another performance issue. The user again reports severe desktop lag and difficulty understanding which of two similar-looking chat/task entries is actually working, including after restarting the app.

Environment verified during this diagnostic: desktop 26.1111.21308 (27194), macOS 26.6.2 (25G83), Apple Silicon arm64. This is a newer installed build than the original report; it does not establish an update-caused regression.

A supported task inspection returned active/in-progress state, no recorded turn error, and recent substantive tool activity. That shows the inspected executor was progressing at that snapshot, not that foreground interaction was responsive. The app listing exposed both a user-facing Work conversation and its execution task with inconsistent/unhelpful titles. This is an identification/usability observation, not proof of two independent writers, duplicated work or a hung backend.

No fresh foreground-latency distribution, resource snapshot or controlled UI reproduction was collected for this update, so the earlier numerical measurements must not be treated as current. No memory leak, process leak or cause of the reported lag is established.

A separate context-specific CoreSimulator/permission failure from the same workflow is now documented in #54691. Its relationship to foreground lag is unknown; please keep these symptom families separate unless engineering establishes a link.

Please advise a supported, privacy-preserving foreground-performance capture and same-chat recovery path. Posted with the affected user's explicit authorization; no private chat/project content or identifiers, paths, credentials, screenshots or raw logs are included.

FoxsterDev avatar Nov 18 '26 20:11 FoxsterDev

@suryar113 Yes. Xcode/Swift compilation, Simulator processes and other active work were present in the original high-load snapshots; the desktop-rooted process tree also included project/tool workloads. We cannot attribute all CPU/RSS to the foreground desktop UI.

The lower-load follow-up still recorded foreground navigation delays with 59–74% whole-machine CPU idle, 10–11 GiB unused physical memory and zero swap in the brief resource checks. However, those checks were not synchronized with every navigation, and we did not run a controlled workload-on/workload-off experiment. This does not establish that load had no effect, or rule memory/scheduling contention in or out as a contributor.

Two clarifications to avoid overinterpreting the original numbers:

  • 523 ms was the median of an earlier retained interval; 1007 ms was the median of a late 15-minute subset, not the median for the whole 34-hour process lifetime. These were different chats/workloads, not a longitudinal benchmark of one fixed interaction.
  • Having 64 GiB RAM alone does not exclude memory pressure. The original snapshots showed 59–61 GiB used and 23–24 GiB compressed; summed process RSS can double-count shared pages and is not unique memory usage.

The November 18 update above is a renewed user-reported lag occurrence on build 27194, not a repeat of the November 7–8 measurements. We have not established one cause, a leak, or a fix.

FoxsterDev avatar Nov 18 '26 20:11 FoxsterDev

Fresh macOS lag observation with renderer counts, Nov 18–20 UTC

Severe interactive lag was reported again on this Mac. In the 48-hour desktop logs (Nov 18 00:40:52 to Nov 20 00:40:52 UTC), I counted 792 renderer global errors with ResizeObserver loop completed with undelivered notifications, including 80 in one minute at Nov 18 20:02 UTC. The signature recurred through the end of the review period. Installed desktop build at inspection: 29030, macOS 27.2.1 arm64; the window spans an update, so the peak is not attributed to build 29030.

A separate local-executor warning storm also occurred in this window; see #61836. Neither the observer errors nor the executor warnings alone establish the cause of foreground lag. No new renderer trace or controlled trigger was captured. Posting these counts to help correlate the reproducible log signatures with future profiling rather than opening another general lag report.

FoxsterDev avatar Nov 20 '26 00:11 FoxsterDev

Re: duplicate suggestion.

I reviewed #60159, #59860 and #58815. They are useful Windows comparisons for slow chat switching, but none reproduces the macOS case here. In particular, #59860 measured Windows style recalculation, and #58815 tested a Windows 4K/display path. This report has its own macOS foreground timing and resource evidence, including a recurrence after restart. A shared renderer cause is possible but not established, so I am keeping the macOS report open.

FoxsterDev avatar Nov 20 '26 00:11 FoxsterDev

November 21, 2026 — desktop lag persisted after relaunch

I fully quit and relaunched the ChatGPT desktop app with my other apps left open. Codex felt just as sluggish after relaunch.

Environment: ChatGPT desktop 26.1111.71704 (build 29030), macOS 27.2.1, Apple Silicon (arm64).

Read-only measurements from the desktop client's existing logs during normal use:

Measurement Observed timing
Before relaunch, chat navigation dispatch to content visible (70 spans) Median 714 ms, p95 1,412 ms. 16 spans exceeded 1 s.
After relaunch, first recorded foreground chat navigation (1 span) Destination view entered at 92 ms, content visible at 1,413 ms. Maximum renderer frame gap was 134 ms.
Before relaunch, chat search (3 requests) 5.23 s, 12.32 s, and 15.77 s.

The retained logs also contain the ResizeObserver loop completed with undelivered notifications signature on both sides of the relaunch. The single post-relaunch span shows that the delay was present immediately after startup. A controlled before-and-after comparison and the cause of the rendering delay remain open.

gotahu avatar Nov 21 '26 09:11 gotahu

[!NOTE] 🤖 Claude Sonnet 5.5 responding on behalf of suryar113

@FoxsterDev Agreed on both corrections: the 523 ms and 1007 ms medians aren't one trend across the 34 hours, and 64 GB doesn't rule out memory pressure. When the lag hits, does it also slow other work on that Mac, such as Xcode builds or Simulator runs, or only the Codex UI?

suryar113 avatar Nov 26 '26 15:11 suryar113