[Bug] Memory leak when incomplete slash command left open in session
Resolved 💬 3 comments Opened Jan 12, 2026 by gn00295120 Closed Feb 27, 2026
Bug Description
An interesting finding: when I got home from work today, I noticed that my Claude Code CLI was consuming a large amount of memory. It turned out that the previous night I had entered a slash command but didn’t finish it, and I left the session open while I went to sleep.
To verify this, I specifically recorded a video of over an hour along with the memory usage metrics. Screenshots and the video are attached.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.4
- Feedback ID: 8cfa60ee-8828-42b4-bbe6-9549bf65669b
Errors
[{"error":"Error\n at Qu (B:/~BUN/root/claude.exe:58:1144)\n at <anonymous> (B:/~BUN/root/claude.exe:59:10092)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:61:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-12T18:28:46.566Z"},{"error":"Error: EPERM: operation not permitted, symlink 'C:\\Users\\USER.DESKTOP-0761VB6\\.claude\\projects\\C--Users-USER-DESKTOP-0761VB6\\2b929537-cd0b-4cd5-8e18-fc13a9520405\\subagents\\agent-a6c1a04.jsonl' -> 'C:\\Users\\USER~1.DES\\AppData\\Local\\Temp\\claude\\C--Users-USER-DESKTOP-0761VB6\\tasks\\a6c1a04.output'\n at symlinkSync (unknown)\n at hXH (B:/~BUN/root/claude.exe:1603:9902)\n at xjD (B:/~BUN/root/claude.exe:1705:1306)\n at <anonymous> (B:/~BUN/root/claude.exe:2985:7264)\n at <anonymous> (B:/~BUN/root/claude.exe:2985:9413)\n at run (node:async_hooks:62:22)\n at beH (B:/~BUN/root/claude.exe:185:14214)\n at call (B:/~BUN/root/claude.exe:2985:6968)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-12T18:28:49.040Z"},{"error":"Error: EPERM: operation not permitted, symlink 'C:\\Users\\USER.DESKTOP-0761VB6\\.claude\\projects\\C--Users-USER-DESKTOP-0761VB6\\2b929537-cd0b-4cd5-8e18-fc13a9520405\\subagents\\agent-a0c8696.jsonl' -> 'C:\\Users\\USER~1.DES\\AppData\\Local\\Temp\\claude\\C--Users-USER-DESKTOP-0761VB6\\tasks\\a0c8696.output'\n at symlinkSync (unknown)\n at hXH (B:/~BUN/root/claude.exe:1603:9902)\n at xjD (B:/~BUN/root/claude.exe:1705:1306)\n at <anonymous> (B:/~BUN/root/claude.exe:2985:7264)\n at <anonymous> (B:/~BUN/root/claude.exe:2985:9413)\n at run (node:async_hooks:62:22)\n at beH (B:/~BUN/root/claude.exe:185:14214)\n at call (B:/~BUN/root/claude.exe:2985:6968)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-12T18:28:49.055Z"},{"error":"Error: EPERM: operation not permitted, symlink 'C:\\Users\\USER.DESKTOP-0761VB6\\.claude\\projects\\C--Users-USER-DESKTOP-0761VB6\\2b929537-cd0b-4cd5-8e18-fc13a9520405\\subagents\\agent-abe36ae.jsonl' -> 'C:\\Users\\USER~1.DES\\AppData\\Local\\Temp\\claude\\C--Users-USER-DESKTOP-0761VB6\\tasks\\abe36ae.output'\n at symlinkSync (unknown)\n at hXH (B:/~BUN/root/claude.exe:1603:9902)\n at xjD (B:/~BUN/root/claude.exe:1705:1306)\n at <anonymous> (B:/~BUN/root/claude.exe:2985:7264)\n at <anonymous> (B:/~BUN/root/claude.exe:2985:9413)\n at run (node:async_hooks:62:22)\n at beH (B:/~BUN/root/claude.exe:185:14214)\n at call (B:/~BUN/root/claude.exe:2985:6968)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-12T18:28:49.068Z"}]
https://github.com/user-attachments/assets/8956ccd1-6ea9-45fd-ba37-727aea3be382
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗