[BUG] Claude code extension memory leak issue
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?
Extension host crashes with this message when I open claude code extension chat window
<--- Last few GCs --->[15084:0x12400330000] 13838 ms: Mark-Compact (reduce) 2046.2 (2074.2) -> 2046.2 (2074.0) MB, pooled: 0.0 MB, 9.04 / 0.00 ms (+ 16.7 ms in 4 steps since start of marking, biggest step 5.1 ms, walltime since start of marking 27 ms) (average mu = 0.543, c[15084:0x12400330000] 13870 ms: Mark-Compact 2047.2 (2074.0) -> 2047.2 (2074.7) MB, pooled: 0.0 MB, 28.46 / 0.00 ms (average mu = 0.391, current mu = 0.101) allocation failure; scavenge might not succeed[15084:1128/155610.151820:ERROR:electron/shell/common/node_bindings.cc:178] OOM error in V8: Reached heap limit Allocation failed - JavaScript heap out of memory
xtension host (LocalProcess pid: 15084) terminated unexpectedly. Code: 5, Signal: unknown
zb @ abstractExtensionService.ts:843
zb @ nativeExtensionService.ts:160
yb @ abstractExtensionService.ts:835
(anonymous) @ abstractExtensionService.ts:808
C @ event.ts:1201
fire @ event.ts:1232
J @ localProcessExtensionHost.ts:530
(anonymous) @ localProcessExtensionHost.ts:289
C @ event.ts:1201
fire @ event.ts:1232
l @ ipc.ts:688
t @ ipc.ts:756
s @ ipc.ts:745
(anonymous) @ ipc.ts:547
C @ event.ts:1201
D @ event.ts:1212
fire @ event.ts:1236
ue @ event.ts:574
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
log.ts:460 ERR Extension host (LocalProcess pid: 15084) terminated unexpectedly. The following extensions were running: vscode.github-authentication, vscode.git-base, mhutchie.git-graph, vscode.npm, vscode.git, vscode.github, vscode.debug-auto-launch, vscode.merge-conflict, Anthropic.claude-code, vscode.emmet, vscode.terminal-suggest, vscode.configuration-editing, vscode.extension-editing, vscode.json-language-features, vscode.typescript-language-features
What Should Happen?
extension should run normally
Error Messages/Logs
Steps to Reproduce
- Click the chat button (top right orange claude logo)
- see the extension host crashing unexpectedly
- open vscode dev tools and see the error messages about the crash
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.55
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
vscode:
Version: 1.106.3
Commit: bf9252a2fb45be6893dd8870c0bf37e2e1766d61
Date: 2025-11-25T22:28:18.024Z (2 days ago)
Electron: 37.7.0
ElectronBuildId: 12781156
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0
claude code extension:
Version
2.0.55
Last Updated
1 day ago
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗