Node.js Memory Leak in Conversation Resume on Large Conversation History

Resolved 💬 3 comments Opened Jun 4, 2025 by sankara0717 Closed Jun 4, 2025

Bug Description
I tried to resume my previous Claude Code session using claude --resume and it crashed with a JavaScript heap out of memory error. The app was using about 2GB of RAM when it died. From the stack trace, it looks like the crash happened during some string processing operation (StringPrototypeReplaceAll). I'm running Node.js 23.6.1 on macOS with Apple Silicon, and Claude Code was installed via Homebrew. The app consistently crashes when trying to resume this particular conversation, but starting fresh conversations works fine. It seems like it's running out of memory while trying to load or process the saved conversation history.

Environment Info

  • Platform: macos
  • Terminal: Apple_Terminal
  • Version: 1.0.10
  • Feedback ID: e70415b5-d048-44b2-a5f5-62dfb50237c9

View original on GitHub ↗

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