t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: High CPU usage when app is open (macOS)

Open Jacxk opened this issue 6 months ago • 7 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

Issue occurs after a few seconds of having the app open.

Expected behavior

Normal CPU usage while using.

Actual behavior

A few processes like kernel_task and syspolicyd CPU usage spikes and makes the Macbook run so hot that it turns on the fans.

Impact

Major degradation or frequent failure

Version or commit

0.0.23 (3c32bc8fd1f5)

Environment

macOS 14.8.3 (23J220)

Logs or stack traces


Screenshots, recordings, or supporting files

Screenshot 2026-05-11 at 11.12.17 AM.png Screenshot 2026-05-11 at 11.11.50 AM.png Screenshot 2026-05-11 at 11.13.33 AM.png

Workaround

No response

Jacxk avatar May 11 '26 16:05 Jacxk

Same issue here. 30GB+ of system usage crashing my mac

Amer-Alic avatar May 12 '26 09:05 Amer-Alic

Also see very high battery drain when T3 code (v0.0.23) is open. Mostly seems to come from constantly spawning CPU-intensive node processes, not sure what they are doing. Image

neominik avatar May 12 '26 15:05 neominik

Same issue here.

corbanvilla avatar May 12 '26 20:05 corbanvilla

Codex thinks it's to do with the new cursor agent... Seems plausible:

I captured a live process snapshot while T3 Code Alpha was open. The high CPU did not appear to be primarily from the Electron renderer. T3’s bundled server process was spawning multiple Cursor ACP
  agents:

  /Applications/T3 Code (Alpha).app/.../apps/server/dist/bin.mjs --bootstrap-fd 3
    -> /Users/.../.local/bin/agent --use-system-ca .../cursor-agent/versions/2026.05.05-84a231c/index.js acp

  At capture time, several very new agent ... acp children were using roughly 35-84% CPU each. One hot Cursor ACP child had also spawned:

  .../cursor-agent/versions/2026.05.05-84a231c/rg --files --follow --max-depth 16 --no-messages

  This makes the issue look like repeated Cursor provider status/model discovery or capability enrichment spawning ACP sessions and triggering filesystem crawls. That would also explain macOS system
  processes like syspolicyd, securityd, Spotlight/mdworker, and kernel_task showing activity, since the child process is walking files.

  Potentially relevant code paths from the repo:

  - apps/server/src/provider/Layers/CursorProvider.ts
      - checkCursorProviderStatus calls discoverCursorModelsViaAcp
      - enrichCursorSnapshot calls discoverCursorModelCapabilitiesViaAcp
      - CURSOR_ACP_MODEL_DISCOVERY_CONCURRENCY = 4
      - per-model capability probes retry up to 3 times
  - apps/server/src/provider/makeManagedServerProvider.ts
      - runs initial and periodic provider refreshes
  - apps/server/src/provider/Layers/ProviderRegistry.ts
      - force-refreshes newly added/rebuilt provider instances at startup

  Recent commits that may be related:

  - aa219be7 - port desktop app to Effect
  - 08e6d4cf - Multi-Provider support
  - 3c32bc8 - v0.0.23 release commit

corbanvilla avatar May 12 '26 20:05 corbanvilla

Image

I’m facing the same issue on M4 MacBook.

venkat2305 avatar May 12 '26 21:05 venkat2305

this should fix the high burst of cursor probes: https://github.com/pingdotgg/t3code/pull/2428

new api in the agent cli they added for us so haven't gotten the go-ahead that it's released to GA yet though hence it's sitting and waiting to be merged...

also looking into how to reduce the background processes when idle

juliusmarminge avatar May 13 '26 06:05 juliusmarminge

@corbanvilla @juliusmarminge Thanks, you're lifesavers! My M1 stopped overheating and draining the battery by simply disabling Cursor in Settings > Providers

jhack0x avatar May 20 '26 22:05 jhack0x