[BUG] Native memory leak in Claude Code with EventEmitter warnings (911 GB/hour growth rate)

Status Open
Maintainer reply None cached
Activity 0 comments · opened Aug 15, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code shows extreme native memory leak (911 GB/hour growth rate) and Dispatch bridge stuck in "Asleep / Can't reach your desktop." EventEmitter memory leak warnings appear in logs.

What Should Happen?

Memory usage should remain stable during normal operation. Dispatch bridge should maintain connection without accumulating listeners.

Error Messages/Logs

RSS 0.42 GB, native memory 0.32 GB unaccounted
Growth rate: 911423.1 MB/hour
Warning: Native memory > heap - leak may be in native addons
Include the EventEmitter memory leak warning you found earlier

Exact error:
SS 0.42 GB (peak 0.00 GB) — most memory is native (NOT in the .heapsnapshot)
JS heap 0.08 GB in snapshot
array buffers 0.00 GB not in snapshot
other external 0.03 GB not in snapshot
unaccounted 0.32 GB not in snapshot (code/JIT/stacks/allocator)
⚠ Native memory > heap - leak may be in native addons (node-pty, sharp, etc.)
⚠ High memory growth rate: 911423.1 MB/hour

Full diagnostics file attached below.

Steps to Reproduce

Using Cowork in Claude Code, attempting to connect mobile device to use Cowork there. Attempting to pair mobile device for Dispatch, it never finds the desktop.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Claude 1.30096.5 (6e1346) 2026-08-14T21:58:49.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

808bd056-3d02-4515-a89c-7700216bea0c-diagnostics.json

View original on GitHub ↗