Repository navigation
Description
Summary
ChatGPT desktop, used for Codex projects, can retain many browser and tool processes while few chats are visible. On a 16 GiB Mac, saved measurements reached 117 app processes, including 52 renderers, and about 16.7 GiB of summed process memory. Restarting reduced this substantially, but components loaded again.
The clearest observed trigger is saved browser-preview restoration. Opening one existing chat restored 16 tabs in 153 milliseconds. Renderer count increased from 13 to 32, and a later timestamped sample measured about 6.1 GiB versus 4.4 GiB before restoration.
Please prioritize this as a desktop reliability issue. The user reports severe lag, application-memory warnings, and interrupted work. The user also reports a 27 GB peak with three chats running. That peak was not captured by this audit, and a kernel crash has not been established.
Environment
- Desktop version: 26.1007.71326, build 20398.
- Installed product: ChatGPT.app; bundle identifier com.openai.codex.
- Platform: Apple Silicon M4 MacBook Air, 16 GiB RAM; macOS 26.7.1, build 25G241.
- Subscription: not included in this report.
- Observations: October 13 through October 15, 2026. Times below are UTC.
- Existing local chats, saved previews, and several tool integrations. This is an established profile, not a clean installation.
Measured evidence
| Event | App processes | Renderers | Summed process memory |
|---|---|---|---|
| Earlier saved pre-restart measurement | 117 | 52 | 17,142.35 MiB |
| Immediately after that restart | 13 | 5 | 2,702.11 MiB |
| After components loaded | 31 | 12 | 4,685.58 MiB |
| Oct 14, 12:01:10.855, before preview restoration | 49 | 13 | 4,470.16 MiB |
| Oct 14, 12:02:35.486, after preview restoration | 71 | 32 | 6,259.23 MiB |
| Oct 15, 20:27:21.969, after restart with optional analyzer integration disabled | 44 | 12 | 4,243.20 MiB |
The first three rows come from retained restart records. Their exact capture times and original sampling command were not retained. Earlier audit notes attribute them to October 13.
The October 14 lifecycle log records 16 tab openings from 12:01:15.560 to 12:01:15.713. Total built-in browser tab count rose from 1 to 17. Two further raw samples at 12:02:45.978 and 12:02:56.463 remained near 6.1 GiB with 32 renderers. Other activity was not fully isolated, so the entire memory increase cannot be assigned to those tabs.
Later samples use executable paths from ps and the mem field from top. Totals are approximate sums of process footprints, not unique physical RAM usage. Collection is sequential, not atomic. Normal system pressure was recorded during these post-recovery samples; it does not describe pressure at the earlier failure.
Steps to investigate and reproduce
- Use the official desktop app on a 16 GiB Apple Silicon Mac. Keep several existing chats, with one chat containing about 16 saved browser previews.
- Fully quit and reopen the app. Record process count, renderer count, memory, pressure, and swap.
- Open that chat and observe the saved preview tabs being restored together. The lifecycle event is
IAB_TAB_ANALYTICS,action=opened. - Switch among existing chats, then leave response generation idle. Compare live pages and tool processes with the chats and previews actually in use.
- Repeat normal switching and reopening. Check whether process counts stabilize and whether inactive resources are reclaimed. Stop before memory exhaustion; reproducing a system stall is unnecessary.
These steps target the observed restoration behavior. They are not yet a minimal, deterministic reproduction of the full 16.7 GiB accumulation or the reported 27 GB peak. One visible chat does not prove only one runtime is loaded: logs showed three chats resumed after a later restart.
Other findings and possible causes
- Logs showed one visible primary window, a second hidden primary window, and a hidden
avatarOverlaywindow. - Read-only inspection of the shipped JavaScript found Page, companion, detached-window, Spotlight, and conversation prewarming paths. The relevant bundles are
main-CwxgTOle.jsandapp-shared-8340f229c2b3.js; examples include Page-controllerfill(),startPrewarming(), andprewarmConversation(). - Window-to-process memory attribution was not established. Hidden windows and prewarming are investigation leads, not proof of a leak or an explanation for every renderer.
- One later breakdown measured about 2,352 MiB in renderers, 939 MiB in app/shared services, 847 MiB in tool helpers, and 334 MiB in coding backends.
- An optional reverse-engineering integration also left two orphaned Java analyzers using roughly 3.8 GiB combined. Those were stopped and automatic integration startup was disabled. This reduced separate memory pressure. The earlier 52-renderer incident predates that integration, so it cannot explain the original problem.
Expected behavior and proposed fixes
- Restore inactive previews as saved tabs without immediately loading every page. Load on selection and limit concurrent restoration.
- Suspend or discard safe inactive previews under memory pressure. Protect active forms, downloads, playback, and previews explicitly kept live. Preserve URLs and layouts.
- Give hidden prewarmed windows a small, bounded budget and an expiry. Cancel speculative creation when unused or under pressure. Keep ordinary user-requested opening working.
- Release inactive chat subscriptions and owned tool processes when safe. Keep active tasks running and preserve chat history and project files. Documented app-server behavior retains an unsubscribed thread until it has no activity for 30 minutes; investigate whether desktop subscribers or background events keep idle contexts alive.
- Add a resource view that maps each renderer and tool process to its owning chat, preview, or hidden window. Provide a supported way to unload inactive resources without deleting chats.
These are engineering proposals, not tested app fixes. The installed application has not been patched, and no separately modified app was built or run.
Regression checks
- Reopen a chat with 16 saved previews. Confirm inactive pages do not all start immediately and saved URLs remain available.
- Repeat switching among three chats ten times. Confirm renderer and tool counts settle instead of increasing with every visit.
- Leave chats idle beyond the documented unload period. Verify eligible runtimes stop; active tasks and necessary tools continue.
- Exercise memory-pressure handling and hidden-window expiry. Verify Page, companion, and detached views still open when requested.
- Verify pinned chats, project links, source files, drafts, and protected browser state survive every test.
Workaround status and privacy
A one-time, user-approved cleanup is queued to remove 44 currently saved browser reopen entries after the app completely exits. It will back up URLs, layouts, and original state while preserving chats and projects. It has not yet run or been measured after reopening. New previews may create new saved entries. This is a workaround for saved restoration, not a permanent app-level repair.
No raw chats, private URLs, credentials, full app state, or customer project names are included. Disk cleanup and SQLite compaction are not being presented as fixes for RAM growth.
Related reports: the automated duplicate suggestions were reviewed. #53562 documents macOS renderer retention; #53310 documents idle chat runtimes and helper retention. This report adds a timed 16-preview restoration event on desktop 26.1007.71326. CASHEN's follow-up separately measures child compiler growth. These cases may share lifecycle causes, but that has not been established; please consolidate them if triage confirms a duplicate. Also related: #54011, #46690, and #23260.
References: OpenAI troubleshooting and bug-reporting instructions, app-server lifecycle.
Activity
github-actions commentedon Oct 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
snowrock commentedon Oct 15, 2026
Additional measurements separate a later compiler burst from the saved-preview renderer growth described above.
On October 15, the same Mac was running desktop 26.1007.71326, build 20398, with three active chats. A local Swift test job started during a 30-second observation. No app restart or process termination occurred during these four samples. Both other active chats were intentionally left running.
UTC times correspond to 16:26 and 16:42 EDT, UTC-04:00. The first four rows cover the 30-second burst; the final row is a later recovery checkpoint. MiB means 1,048,576 bytes. The app tree includes the desktop process and its descendants, including child build jobs. Samples came from
ps -axo pid=,ppid=,rss=,comm=and recursive parent matching. The sampler and its temporary query process were excluded. Swift counts include compiler drivers, workers and the test launcher, not just compiler workers. Process and pressure queries were sequential, not atomic.During the 30-second burst, total RSS increased by 2,497.52 MiB. Swift processes added 2,461.23 MiB, about 98.5% of that increase. Renderer RSS increased by 21.78 MiB and renderer count stayed at 12. macOS pressure remained normal, kernel level 1. Swap stayed at 557.12 MiB.
At the later checkpoint, the Swift group had exited, the desktop main process was unchanged, renderer count remained at 12, pressure was normal and swap was 533.12 MiB. Other tool runtimes changed while both other chats continued working. This recovery is consistent with a temporary build contribution; it is not a controlled before/after test of a desktop repair or of the new build guard.
RSS sums count shared pages repeatedly. These figures must not be treated as unique physical RAM or compared directly with Activity Monitor's application-memory number. They identify which process category grew during this interval. They do not explain the earlier 52-renderer incident or establish that desktop renderer retention has been fixed.
For this compiler burst, a practical local prevention is to serialize heavy builds and limit future SwiftPM build/test commands to
--jobs 2. The installedswift build --helpreports a default of 10 jobs. A lightweight local wrapper was tested for pressure checks, build-slot locking, job limits and bounded chat output. No production build was rerun to claim a measured RAM saving, and existing jobs were not interrupted.Resetting our own computer-use diagnostic session did not produce a verified memory reduction: the app-tree RSS sum changed from about 4.29 to 4.36 GiB over 15.5 seconds while other jobs were active. Earlier database compaction and backed-up image replacement improved storage use; we have no measurement establishing those operations as a desktop RAM repair.
Please preserve both cases in triage: saved-preview restoration increased renderer count in the original report, while this later burst came from child compiler processes. A useful resource view would show UI renderers, tool helpers and child jobs separately, with their owning chat. Regression checks should measure preview restore/close cycles and tool-session shutdown without unrelated builds, then repeat with bounded child builds. This follow-up contains measurements only; no private chats, project files, preview URLs or raw logs are attached.
Additional engineering proposals
These are proposed changes for OpenAI to evaluate, not verified fixes in the installed desktop. The cross-chat build proposal follows our measurements. The history and reminder leads below come from other reports and have not been reproduced on this Mac.
Reminder-only check, October 15
A fresh read-only check covered 20:54:53.188 to 20:55:33.677 UTC, or 16:54:53 to 16:55:33 EDT. All six saved local automation manifests were already PAUSED and stayed byte-identical. No schedule was paused, deleted or resumed by this check. The same desktop main process remained alive.
The initial log-tail scan covered 2,099,600 bytes with zero matching
maybe_resume_skipped_inactive_hotkey_windowevents; 569,884 older bytes were outside that bounded scan. During the following 40.49 seconds, 14,350 new log bytes were scanned, none were skipped, and zero matching events appeared. Renderer count stayed at 12. Memory pressure stayed normal and swap stayed at 533.12 MiB. App-tree RSS changed from 5,399.03 to 5,088.64 MiB while ordinary work continued; no memory-repair effect is claimed. Four approximately ten-second CPU intervals measured the main app at 1.58% to 8.31% and all renderers combined at 17.91% to 28.89% of one CPU core. CPU deltas cover PIDs present in both adjacent queries.This check found no current reminder storm to stop. It cannot rule out a future trigger or events outside the checked desktop logs. No application bundle, product source or automation manifests were modified.
Suggested acceptance tests for the proposal: repeated inactive-window responses produce no immediate loop; a readiness event arriving during subscription setup is not lost; duplicate windows and an ambiguous dispatch timeout produce at most one run per occurrence; pause/deletion cancels pending callbacks without interrupting unrelated work; delayed one-shot and recurring reminders preserve their defined delivery behavior across sleep/wake and clock changes. These are proposed tests, not tests run against the installed desktop. An independent review identified these failure cases; no numerical quality score or completed desktop fix is claimed.