- Copilot Chat Extension Version: 0.44.1
- VS Code Version: 1.116.0 (system setup) 560a9db
- OS Version: Windows_NT x64 10.0.17763
- Feature (e.g. agent/edit/ask mode): Agent
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Claude Opus 4.6
- Logs: renderer.log
Steps to Reproduce (some steps may not be strictly necessary):
- Open a large project (around 5,000 C++ files) in "Remote - SSH" and start "GitHub Copilot Chat".
- Use Claude Opus 4.6 to help locate and fix a relatively complex bug.
- The Agent repeatedly edits files (edit_file) and frequently uses the terminal (run_in_terminal) to compile and run tests attempting to fix the bug.
- Automatic context compression is triggered, and the task continues.
- View the edited files while the Agent is running. I notice that VSCode gradually becomes sluggish. "UNRESPONSIVE extension host" in the log.
- VSCode's memory usage rise from 350MB at startup to 4GB gradually. Then it crashes.
Hundreds of "potential listener LEAK detected" messages are in the log.
The likely cause of the crash is exceeding the 4 GB heap limit of the V8 engine.
Logs: (Full log renderer.log)
...
2026-04-19 14:18:29.020 [error] potential listener LEAK detected, dominated: Error
at a.create (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:403:18382)
at Kz._event [as onDidChange] (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:405:1807)
at Object.u [as onWillAddFirstListener] (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:852:136407)
at sxe._event [as onDidChange] (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:405:2074)
at new jn (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:852:141252)
at a._createInstance (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:1890:2000)
at a.createInstance (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:1890:1440)
at new EFe (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:2891:1306)
at a._createInstance (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:1890:2000)
at a.createInstance (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:1890:1440)
at gU.createToolInvocationSubPart (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:2900:15887)
at f (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:2900:13287)
at NV._runFn (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:2900:13045)
at NV._run (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:407:6694)
at NV.endUpdate (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:407:7325)
at fO.finish (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:406:109977)
at CP.set (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:407:2882)
at a._setCompleted (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:1074:64559)
at a.didExecuteTool (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:1074:65434)
at UN.invokeTool (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:3681:250)
at async cRt.$invokeTool (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/560a9dba96/resources/app/out/vs/workbench/workbench.desktop.main.js:945:43363)
2026-04-19 14:19:16.638 [info] Extension host (Remote) is unresponsive.
2026-04-19 14:19:16.733 [info] Extension host (Remote) is responsive.
[[crashed]]
Steps to Reproduce (some steps may not be strictly necessary):
Hundreds of "potential listener LEAK detected" messages are in the log.
The likely cause of the crash is exceeding the 4 GB heap limit of the V8 engine.
Logs: (Full log renderer.log)