[Bug] Subagent processes not terminating on macOS, causing memory leak and system crash

Resolved 💬 3 comments Opened Feb 2, 2026 by jameslowman Closed Feb 6, 2026

Bug Description
claude code 2.1.29 is spawning dozens of instances (seen in activity monitor) whenever subagents are used -- but they fail to terminate when the activity is complete, eventually crashing my computer due to excessive ram usage. this is on a mac, apple silicon, running inside a cursor terminal.

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 2.1.29
  • Feedback ID: 891d5e15-a378-4191-bb46-580aff1bddbc

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/james/.local/share/claude/versions/2.1.29 (expected in multi-process scenarios)\n    at BUR (/$bunfs/root/claude:3589:2098)\n    at SPA (/$bunfs/root/claude:3589:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-02T13:42:59.199Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗