Skip to content

[Codex App/macOS M1 8GB] High-CPU hidden renderer resume loop stops after pausing an old heartbeat #52185

Open

Description

@danlflh

What version of the Codex App are you using (From “About Codex” dialog)?

26.1002.52244, build 13536, production release channel. Verified from the running desktop app on October 8, 2026.

What subscription do you have?

ChatGPT Pro (verified from the signed-in app account metadata).

What platform is your computer?

Item Value
OS macOS 26.6.2
OS build 25G83
Device MacBook Air
Model identifier MacBookAir10,1
Chip Apple M1
CPU 8 cores (4 performance + 4 efficiency)
Architecture arm64
Physical memory 8 GB
Investigation date October 8, 2026
Local timezone America/Sao_Paulo (UTC-03:00)

Hardware and OS values were read locally using system_profiler and sw_vers. Serial numbers, hardware UUIDs, account identifiers, private conversation IDs, credentials, and user paths are omitted.

What issue are you seeing?

Codex has been making my entire computer noticeably sluggish, sometimes to the point of freezing when I start an ordinary task. I have used Codex since its first version on the same computer, with the same usual applications open.

The slowdown did not begin on October 8. It had already been happening for some time; October 8 was when I finally investigated it, with AI assistance. The exact onset and first affected app version are unknown.

I had created a recurring scheduled task / heartbeat well before this investigation. From my perspective, it was no longer executing as expected, and I had forgotten about that. It was nevertheless still marked ACTIVE. This was an existing task, not a new task created on the day the problem was diagnosed. Its execution history was not independently audited.

The investigation found a high-frequency maybe_resume_skipped_inactive_hotkey_window loop in a hidden, unfocused renderer. The conversationId repeated in these events exactly matched the target_thread_id of the only active heartbeat.

Local log evidence

  • 140,964 occurrences between 2026-10-08T15:57:43.962Z and 2026-10-08T15:58:17.985Z: approximately 4.1 thousand events/second over about 34 seconds.
  • Peak observed count: 5,265 events in one second.
  • The events consistently identified renderer web contents ID 3.
  • The native window was hidden and unfocused, while the document visibility field was visible.
  • The retained log window was only a sample of the problem; it does not establish its total duration.

Sanitized fields from the observed events (an excerpt, not a complete raw log record):

[electron-message-handler] maybe_resume_skipped_inactive_hotkey_window
conversationId=<TARGET_THREAD_ID>
documentVisibilityState=visible
rendererWebContentsId=3
rendererWindowFocused=false
rendererWindowVisible=false

The matching heartbeat had:

kind: heartbeat
status before intervention: ACTIVE
target_thread_id: <TARGET_THREAD_ID>
schedule: recurring, twice weekly
status after intervention: PAUSED

The same placeholder above represents the exact matching identifier. The event name alone does not establish that this was a hotkey window; I did not independently prove the Page prewarm route in this installation.

CPU observations and heartbeat pause

Observation Affected renderer CPU Main app CPU Resume-loop events
Initial diagnostic snapshot 135.9% 68.3% Present
Immediately before pausing the heartbeat 127.4% 58.1% Present
Two follow-up samples after pausing it Approximately 0.4–0.7% Approximately 3–7% 0 observed

The app remained open during the heartbeat pause and the immediate verification. These follow-up samples were taken before the later restart. Pausing the heartbeat preserved the task and schedule rather than deleting it.

This is an observed before/after association in this installation, based on short verification samples rather than a long-duration benchmark. I did not reactivate the task to perform an on/off/on test, so I am not claiming a completely isolated causal proof or a confirmed source-code explanation. CPU percentages are process CPU values as reported on macOS.

Separate memory-pressure finding after the CPU loop stopped

Slowness subsequently returned after restarting the Mac/app, even though both automations were still paused and the same loop was absent from the inspected logs. Therefore, pausing the heartbeat did not resolve every source of resource pressure.

  • The computer has only 8 GB of RAM. Initial swap observations were approximately 5.7–6.3 GB.
  • A later observation showed approximately 9.4 GB of swap.
  • Numerous Node/MCP helper instances remained associated with inactive sessions. These included Firecrawl, Netlify, computer-use, Node REPL, and app/code-review helpers, with wrapper/child processes.
  • 126 helper/subprocesses belonging to inactive sessions were terminated after identifying their process trees and excluding the current session's helpers. The main app, backend, and current session helpers were preserved. A follow-up check found no surviving processes among those targeted.
  • Swap subsequently fell from approximately 9.4 GB to 5.2 GB, and responsiveness improved according to my direct use of the computer.

The cleanup count is retained in a local action record. The swap values are point-in-time observations, not a controlled benchmark.

This secondary finding should be investigated separately from the renderer loop. It does not establish a memory leak, whether session retention was expected, or whether every remaining helper was defective. Ending helpers also releases memory by design. I include it because the severe system-wide slowdown on this 8 GB machine had more than one observed component.

What steps can reproduce the bug?

This is the sequence observed in an existing installation, not a verified reproduction from a clean install:

  1. Have an older recurring heartbeat/scheduled task still marked ACTIVE, associated with a conversation that is not currently in use.
  2. Use or reopen Codex Desktop 26.1002.52244 and start an ordinary task.
  3. Inspect process CPU and desktop logs. In this installation, a hidden/unfocused renderer emitted thousands of maybe_resume_skipped_inactive_hotkey_window events per second, and its CPU exceeded 100%.
  4. Match the event's conversationId against the heartbeat's target_thread_id.
  5. Pause the matching heartbeat through the supported app automation mechanism.
  6. Observe whether the event storm stops and the affected renderer returns to low CPU, while the app remains open.

The necessary trigger conditions are still unknown. I have not established whether a missing, deleted, archived, temporary, or remotely stored target conversation is required. I also have not established that every active heartbeat reproduces the problem. The task was left paused to avoid reintroducing the severe slowdown.

What is the expected behavior?

  • An inactive or hidden renderer should settle at low resource usage instead of repeatedly attempting to resume the same conversation thousands of times per second.
  • An existing scheduled task that cannot execute normally should surface an actionable state/error and avoid an unbounded retry/log loop.
  • Idle session helpers should have a bounded, understandable lifecycle so that ordinary use does not accumulate enough resource usage to make the whole computer unresponsive.
  • Pausing a scheduled task should reliably quiesce activity associated with that task.

Additional information

Related reports, found before submitting this issue:

These may represent the same underlying renderer issue. This report adds the local chronology, an older recurring task, matching task/conversation identifiers, before/after measurements without restarting during the pause verification, and the impact on an M1 Mac with 8 GB RAM.

Investigation was AI-assisted. No private task prompts, complete configuration files, authentication material, personal project contents, or unredacted session logs are attached. The original observations above preceded later local MCP startup/configuration experiments; those changes are not presented as part of the heartbeat test. No project dependency cleanup was performed.

Activity

  1. added
    bug
    app
    on Oct 8, 2026
  2. CooperGarth commented on Oct 9, 2026

    @CooperGarth

    Additional Windows x64 confirmation on desktop 26.1002.52244 (Store package 26.1002.7124.0), investigated October 9, 2026.

    Exact heartbeat match and successful targeted mitigation without restarting:

    • The conversation ID in the repeated maybe_resume_skipped_inactive_hotkey_window events exactly matched target_thread_id in an old local heartbeat manifest.
    • The reminder was created June 5, 2026, still marked ACTIVE, and had a one-occurrence daily rule (COUNT=1). Its execution history and whether it was still due were not established.
    • The target could not be resolved through the available chat-reading tool or an exact read-only lookup in the local threads table. This does not prove deletion.
    • Immediately before intervention, a live log tail contained 1,110 matching events between 05:47:04.090Z and 05:47:04.319Z.
    • At approximately 05:47:04.496Z we paused only that heartbeat through the supported automation update tool, preserving the reminder, schedule and target.
    • Two follow-up scans found zero new matching events after 05:47:06Z. The longer scan ended at 05:47:52Z and included 89 ordinary log lines, with ordinary logging as late as 05:47:50.853Z.
    • The same main process remained alive. No renderer was killed/suspended, no app restart occurred, and no application bundle, database or project files were changed.

    Crash context (correlation, not established causality):
    Two native main-process crashes were recorded today at 07:01:31 and 13:40:28 UTC+08. Crashpad sidecars have capture_kind=crash, ptype=browser, osarch=x86_64; no minidump remained. Immediately before the second crash, a preserved log contained 20,857 identical retry events over 3.146 seconds (~6,630/s). The loop returned after relaunch and continued until the targeted heartbeat pause. This does not establish the fatal exception or prove that pausing the reminder prevents all future crashes.

    The repeated window fields were rendererWindowAppearance=primary, rendererWindowFocused=false, rendererWindowVisible=false, documentVisibilityState=visible, routePath=/index.html. We have not proven Pages-prewarm involvement on this installation.

    This independently reproduces the heartbeat-pause observation in this issue on Windows. Related Windows report: #52093. We left the reminder paused rather than deliberately reintroduce the load. Please investigate stale heartbeat target handling and bounded retries for normal not-ready / inactive-window responses.

    Privacy: only redacted technical observations are posted; no private reminder text/name, chat IDs/content, account identifiers, usernames, local project paths, credentials or raw logs are included.

  3. HalAlexander commented on Oct 9, 2026

    @HalAlexander

    Additional independent Windows x64 confirmation on October 9, 2026, with a targeted heartbeat-pause test on the existing installation.

    Environment

    • Desktop version: 26.1002.52244, build 13536, production.
    • Microsoft Store package: 26.1002.7124.0.
    • The information-only native update check returned unavailable because the Store must check installation eligibility. This is not an up_to_date result.

    Exact target match and intervention
    The conversation identifier in the repeated maybe_resume_skipped_inactive_hotkey_window events exactly matched the target_thread_id of one old local heartbeat that was still ACTIVE and scheduled daily. The chat-reading tool could not determine whether that target exists; deletion is not established.

    After preserving the original manifest, only that heartbeat was changed to PAUSED through the supported app automation tool. A field comparison found only status and updated_at changed. The other four automation manifests were byte-identical.

    All times below are UTC:

    Observation Result
    Before pause, 06:14:43.667–06:14:46.382 8,000 matching events in 2.715 seconds, approximately 2,947 events/s
    Persisted pause timestamp 06:14:50.545
    Last matching event found 06:14:50.569
    First follow-up Zero matching events over approximately 34 seconds; 303 ordinary log records
    Longer follow-up, 06:14:52.545–06:17:43.286 Zero matching events over 170.7 seconds; 1,466 ordinary log records, continuing through 06:17:41.660

    The same main app process and app-session identifier remained in use. No renderer was killed or suspended, and no app restart, cache reset, application-bundle patch, or database edit was used. The heartbeat remains paused.

    The repeating record contained:

    [electron-message-handler] maybe_resume_skipped_inactive_hotkey_window
    conversationId=<redacted>
    documentVisibilityState=visible
    hostId=local
    rendererWindowAppearance=primary
    rendererWindowFocused=false
    rendererWindowVisible=false
    routePath=/index.html
    

    Pages-prewarm involvement was not independently established in this installation.

    Separate crash evidence and limits
    Earlier that day, the app unexpectedly closed. A Crashpad sidecar written at approximately 02:47:25 UTC contained:

    {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}

    The old desktop log stopped at 02:47:25.040 UTC. No minidump remained in that reports directory. Before this crash, the retained log sample contained 143,376 repeated events over about 50.1 seconds. The loop recurred after relaunch.

    The pause test establishes a useful session-level mitigation for the loop on this installation. It does not identify the native crash exception or prove that the loop caused the crash. A cold-start test with the heartbeat paused and long-duration crash prevention have not been verified.

    Please investigate unavailable/stale heartbeat target handling and bounded retry behavior for normal not-ready / inactive-window responses. This corroborates the heartbeat association already reported here; related Windows report: #52093.

    Only sanitized technical observations are included. No reminder name/text, conversation identifiers or content, account details, local usernames/paths, credentials, or raw diagnostic attachments are posted.

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

    appautomationsbugperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions