[BUG] Severe Memory Leak

Resolved 💬 3 comments Opened Mar 6, 2026 by ahmedisam99 Closed Mar 10, 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 keeps using up my entire memory. My machine halts until the process is killed by the OS! It doesn't happen all the time but it is very common.

<img width="2556" height="1464" alt="Image" src="https://github.com/user-attachments/assets/e89977c4-d5c0-4d77-aeec-e4fa057abe0d" />

What Should Happen?

Claude MUST NOT take up my entire memory

Error Messages/Logs

Steps to Reproduce

  1. Open claude code
  2. Work in a normal session. The length of the session does not appear to matter (nor previous compactions)
  3. Leave claude code open

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.69

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

The issue has been around for a long time, it applied to previous versions. It just wasn't this common

System: Arch + KDE Plasma 6
Terminal setup: Ghostty + tmux

View original on GitHub ↗

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