PANE

VS Code Agent Window leaves zsh processes running after closing

18 posts since Dec 2025, all from GitHub.

“Version: VS Code Insiders 1.149.0 insider (commit e8b6d8b546735371b1d04237b0a7c40558ad82a6), built in Copilot extension, not signed in OS: Linux x64, 8 CPU, 31 GB RAM, software rendering Workspace: a clone of microsoft/vscode (21.6k tracked files) Problem…”
GitHub
“Does this issue occur when all extensions are disabled?: No — the window closing delay disappears. Approximately 2 seconds of background shutdown remain. VS Code Version: 1.147.0 Stable Commit: 8a14f0cc1b08d531eb83255ea3764ae22aa932b5 OS Version: Fedora Linux 45 (KDE Plasma…”
GitHub
“Does this issue occur when all extensions are disabled? Not tested yet (the load comes from the Agents window, not the extension host). Version VS Code: 1.143.1 (e646868227c3e3a9e3f24277c8c7220be42c0be7), x64 OS: Ubuntu 22.04.5 LTS, kernel 6.8.0 138 generic Session: X11, GNOME…”
GitHub

Users report that VS Code's Agent Window fails to properly terminate associated zsh processes when sessions are closed, leading to resource leaks and potential instability.

devtoolsbugvscodeagentzsh
FIT
0%
SIGNAL
56%
SOURCES18
FRESHEST POST6D AGO
TRACKED SINCE104D AGO

SOURCES (18)

“Version: VS Code Insiders 1.149.0 insider (commit e8b6d8b546735371b1d04237b0a7c40558ad82a6), built in Copilot extension, not signed in OS: Linux x64, 8 CPU, 31 GB RAM, software rendering Workspace: a clone of microsoft/vscode (21.6k tracked files) Problem extensions/copilot/src/platform/terminal/vscode/terminalBufferListener.ts keeps two module level maps keyed by Terminal : installTerminalBufferListeners()…”

GITHUB6d ago

“Does this issue occur when all extensions are disabled?: No — the window closing delay disappears. Approximately 2 seconds of background shutdown remain. VS Code Version: 1.147.0 Stable Commit: 8a14f0cc1b08d531eb83255ea3764ae22aa932b5 OS Version: Fedora Linux 45 (KDE Plasma Desktop Edition), x86 64 Kernel: 7.3.4 300.fc45.x86 64 Display session: Wayland Relevant managed policy: chat.mcp.access = registry Steps to Reproduce: 1. Launch VS Code normally with extensions enabled in the environment des”

GITHUB10d ago

“Version: VS Code Insiders 1.147.0 (commit 54ab79431a5, which includes the fix for 347903), Linux x64 Area: Agents window, src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.ts Steps to reproduce 1. Open the Agents window with three folders in the recent list: ws alpha , ws beta and ws gamma . 2. With a new session draft open, press Ctrl+O and pick ws beta , then do the same for ws gamma , then for ws alpha . Don't send any message. 3. Repeat step 2 a few times. 4. Count the li”

GITHUB20d ago

“Version: VS Code Insiders 1.147.0 insider (same code on main), Linux x64 Area: Agents window, src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.ts Steps 1. Open the Agents window with a local agent host (Copilot CLI) session type and a folder. 2. Repeat: 1. Ctrl+N (new session), send a prompt and wait for the response. 2. Ctrl+N again (a new draft opens). 3. Delete the first session from the sessions list. What happens Each iteration leaves one more hidden terminal behind: a”

GITHUB21d ago

“Does this issue occur when all extensions are disabled? Not tested yet (the load comes from the Agents window, not the extension host). Version VS Code: 1.143.1 (e646868227c3e3a9e3f24277c8c7220be42c0be7), x64 OS: Ubuntu 22.04.5 LTS, kernel 6.8.0 138 generic Session: X11, GNOME Shell 42.9 CPU: Intel Core i5 10500H (Comet Lake) GPUs: Intel UHD Graphics (CometLake H GT2, Mesa iris ) + NVIDIA RTX 3060 Mobile (driver 580.178.04), PRIME on demand Displays: 2 × 3840x2160@60 on the NVIDIA outputs (rever”

GITHUBOct 28

“Environment VS Code: 1.143.1 (commit e646868227c3e3a9e3f24277c8c7220be42c0be7) OS: Windows 11 (build 26200), Remote WSL (Ubuntu) Agents window with Claude as agent provider (agent host) Steps to reproduce 1. Open a WSL folder in the Agents window and create two sessions (A and B) on the same folder, no worktrees. 2. In session A, run a long running shell task that is enabled for the Agents window, e.g.: The terminal panel of session A now lists "Agent Host Terminal" and "Task: run dev". 3. Switc”

GITHUBOct 27

“Does this issue occur when all extensions are disabled?: N/A (Agent Host core code path) VS Code Version: Code Insiders 1.142.0 insider (f4dfb91d30e). The code path is unchanged on main at 38d9885c158. OS Version: macOS 27.0.1 (arm64) When a message send makes the Agent Host refresh a Copilot chat's session configuration, every canvas open in that chat closes in the Agents window and doesn't come back. Steps to Reproduce: 1. Enable chat.canvases.enabled and, in the Agents window, start a new loc”

GITHUBOct 8

“Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.139.0 OS Version: Win11 <img width="610" height="344" alt="Image" src="https://github.com/user attachments/assets/ca0b49d6 09b7 470a a716 3f32de80ef64" /”

GITHUBSep 23

“Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.138.0 OS Version: All desktop platforms Steps to Reproduce: 1. Open the Agents window with recent local folders, including one or more folders containing .devcontainer/devcontainer.json or .devcontainer.json . 2. Inspect the emitted Agents telemetry. There is no aggregate telemetry indicating whether Docker is resolvable from the user shell environment or how many recent local folders contain a default Dev Container”

GITHUBSep 14

“Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.134 OS Version: 25H2 Steps to Reproduce: 1. Open VSCODE 2. Work for 90 minutes 3. Press the Update button 4. Punch your laptop even chrome has a progress lost even for stuff like music ...”

GITHUBAug 22

“Does this issue occur when all extensions are disabled?: ? (I don't think extensions can cause this issue) Version: 1.133.0 insider (user setup) Commit: 780ea331b2861816fe6bb8215d812933c81df83b Date: 2026 08 06T02:53:01Z Electron: 42.8.0 ElectronBuildId: 14845705 Chromium: 148.0.7778.280 Node.js: 24.18.0 V8: 14.8.178.38 electron.0 @github/copilot: 1.0.78 @github/copilot sdk: 1.0.9 preview.3 OS: 780ea331b2861816fe6bb8215d812933c81df83b Steps to Reproduce: UPDATE: These repro steps are out of date”

GITHUBAug 6

“I don't think I understand the change in https://github.com/microsoft/vscode/pull/318985, seems that we now aggressively leak terminals. Type of Issue Bug Reproduction 1. Open the Agent Window. 2. Activate several workspace backed agent sessions. Each activation creates an Agent Host terminal for that session. 3. Mark those sessions as Done so their worktrees are removed. 4. Inspect the Agent Host process tree and open PTYs. Actual behavior The terminal is moved to the background when its sessio”

GITHUBAug 6

“Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: Version: 1.130.0 insider (system setup) Commit: a07fb2914c9435c1ac76d315edef5b91e6c9bc6c Date: 2026 07 14T11:54:29 07:00 Electron: 42.6.0 ElectronBuildId: 14623276 Chromium: 148.0.7778.280 Node.js: 24.18.0 V8: 14.8.178.38 electron.0 OS: Windows NT x64 10.0.26200 OS Version: Steps to Reproduce: 1. Open a workspace with agent mode enabled 2. Ask the agent to create or edit a Jupyter notebook 3. The agent calls edit no”

GITHUBJul 17

“| :sparkles: Feature Request| |: | | When connected to a remote machine via SSH, I'd love to have the possibility to start an agent session inside VSCode via the UI, but then let it still run when I close my VSCode window on my local machine. | The Remote agent sessions describe two possibilities so far: Agent window with remote connection . Unfortunately, this doesn't work for me as the server I'm working on is behind a VPN, so the agent window won't be able to connect to it. Furthermore, even”

GITHUBMay 29

“Type: <b Bug</b Window: Agents When i open a new session in the agent window, I can see my workspace in the right and i can list my mcp servers (which are defined in .vscode/mcp.json). <img width="1440" height="896" alt="Image" src="https://github.com/user attachments/assets/d5e1de50 c0bd 421b abdd bbb45a97dccb" / After the first prompt, both disapear. <img width="1433" height="902" alt="Image" src="https://github.com/user attachments/assets/a11bff81 32d2 4a5b b264 d100f881be13" / asking the age”

GITHUBMay 28

“Type: <b Bug</b 1. Open two VSCode Windows. 2. Run a program in the first window. 3. Close the second window. Expected Result: The program in the first window keeps on running. Actual Result: The program in the first window is interrupted. A prompt is output: Restarting the terminal because the connection to the shell process was lost... <img width="631" height="290" alt="Image" src="https://github.com/user attachments/assets/9e48d124 7eb0 40e3 8788 a638d9443fe5" / In the above screenshot, at th”

GITHUBMar 25

“Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.109.0 (Universal) OS Version: Mac Darwin arm64 24.6.0 ProductName: macOS ProductVersion: 15.7.3 BuildVersion: 24G419 Steps to Reproduce: 1. Start chat session using Local Github Copilot 2. The git branch is clean and synced 3. Delegate to Background agent 4. This message appears: "Background Agent will work in an isolated worktree to implement your requested changes. The selected repository has uncommitted changes. S”

GITHUBFeb 10

“while attempting to test https://github.com/microsoft/vscode/issues/276573 I ran across this bug: 1. start a cloud agent and get that chat open in the editor window 2. click stop in the editor window 3. 🐛 still spinning in agent view 4. reload page 5. 🐛 cloud agent in editor window shows as running https://github.com/user attachments/assets/afa8018e 9c05 4639 a4d3 142adbbcf1ed”

GITHUBDec 2025

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem

More ideas in AI & LLMs →