VS Code Tasks Drop File References
11 posts in the last 30 days, all from GitHub.
“Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.148.0 OS Version: Windows x64 This is an issue when creating tasks with the API. Steps to reproduce 1. Create a vscode.ProcessExecution that runs a command that fails. Pass it to new…”
“Does this issue occur when all extensions are disabled? It needs an extension that starts a task: it is in the extension API ( vscode.tasks ). VS Code version: 1.140.0 OS: Linux (aarch64, under Xvfb, in the extension test host) Steps to reproduce 1. From an extension, start a…”
“Testing 349544 While a session is still working, Worktree Cleanup lists it as Active session and lets you clean it up if it's the session currently open in the window. That stops the session and removes its worktree. Steps 1. In the Agents window, start a worktree session with a…”
Several users are experiencing issues with VS Code's task execution, including tasks being dropped, losing file references, and failing to terminate properly. These problems often involve custom executions, remote agent hosts, and worktree cleanup, impacting workflow and productivity.
SOURCES (12)
“Testing 350368 (tester report). This happens on the first send, before the orchestration limit is checked. 1. In the Insiders Agents window, enable remote session tools and connect a remote Agent Host. 2. Start a session on that host. In its context menu, choose Copy…”
“Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.148.0 OS Version: Windows x64 This is an issue when creating tasks with the API. Steps to reproduce 1. Create a vscode.ProcessExecution that runs a command that fails. Pass it to new vscode.Task(...). 2. Set task.presentationOptions to { panel: Dedicated, reveal: Never, close: true }. 3. Subscribe to vscode.tasks.onDidEndTaskProcess before calling vscode.tasks.executeTask(task). Await the matching process end event.”
“Does this issue occur when all extensions are disabled? It needs an extension that starts a task: it is in the extension API ( vscode.tasks ). VS Code version: 1.140.0 OS: Linux (aarch64, under Xvfb, in the extension test host) Steps to reproduce 1. From an extension, start a task whose execution is a CustomExecution (a pseudoterminal; we have not tried other kinds): const execution = await vscode.tasks.executeTask(task); 2. Terminate it at once: execution.terminate(); 3. Wait 20 s and look at v”
“Testing 349544 I can currently filter to a workspace on a remote machine, but I want to see all workspaces on a remote machine in the worktree cleanup table. The machine is also listed in brackets next to the workspace name. I think having the machine be its own column would be better <img width="916" height="119" alt="Screenshot 2026 11 23 at 1 22 06 PM" src="https://github.com/user attachments/assets/22f07590 c543 4b7a a7c8 866f8b9026be" /”
“Testing 349544 when I selected multiple work trees to cleanup, I saw Cleanup Scheduled' for all of them, and it seemed like they were being deleted one at a time with no overarching progress indicator It would be great if 1. there's some kind of message saying 'n/m worktrees cleaned' 2. parallelize the cleaning of multiple worktrees <img width="1575" height="926" alt="Screenshot 2026 11 23 at 11 28 43 AM" src="https://github.com/user attachments/assets/5bb265ae 2dd2 4e46 b5f7 280140d83673" /”
“Testing 349543 Steps to reproduce 1. Set chat.agentHost.remoteConnections to githubEnvironment, with a Remote Tunnel running on the same machine. 2. Open the Agents window and turn on Inbox (sessions.list.inboxEnabled). 3. Start a session in a local workspace. Expected The session appears once. Actual The session appears twice: once as local and once with the tunnel suffix, for example "vscode runtime [cpc bhavy 4jvx9]". Both copies are counted, so Inbox and Working show double the real number.”
“While verifying 348291 in Insiders 1.148.0 insider ( ade7f1b ): there is no duplicate any more, but the draft loses its file pill. Steps: with sessions.drafts.enabled , compose Draft persistence checkpoint: review customer in the Agents window and accept the file completion. This is the agent host's completion, a resource attachment for customer subscription billing reconciliation.ts . Click New to save the draft, open it from Drafts , run Developer: Reload Window , and select it from Drafts aga”
“Testing 349545 Insiders 1.148.0 ( ade7f1b ), macOS 27.2.1, Apple Silicon (Electron 43.8.10). With sessions.keepAwakeWhileWorking unset or set to whenPluggedIn , the local agent host still prevents idle sleep on battery. Steps 1. Unplug the MacBook ( pmset g batt reports 'Battery Power' ). 2. In the Agents window, run a local chat that runs sleep 240 . 3. Run pmset g assertions . Actual: the app's main process holds NoIdleSleepAssertion named: "Electron" until 2 minutes after the chat finishes. U”
“Testing 349544 While a session is still working, Worktree Cleanup lists it as Active session and lets you clean it up if it's the session currently open in the window. That stops the session and removes its worktree. Steps 1. In the Agents window, start a worktree session with a prompt like run sleep 60 in the terminal and wait . 2. While it is still in Working , run Open Worktree Cleanup . 3. Select the session's row, click Clean Up , confirm. Expected: Running sessions can't be selected for cl”
“Testing 349544 A remote agent host started over SSH ("Run in the Background") offers worktrees that another agent host on the same machine is using as unused ( No matching session ), and cleaning them up removes them. Steps 1. On machine M, create Agents window worktree sessions from M's own VS Code. 2. From another VS Code, connect to M with Connect to Remote Agent Host via SSH and choose Run in the Background . 3. Run Open Worktree Cleanup . The worktrees from step 1 appear under the SSH host”
“Testing 349544 In Worktree Cleanup , worktrees from a remote agent host connected over SSH are labeled with an encoded authority ( hex 62656e69… ) instead of the host's name. Steps 1. In the Agents window, run Connect to Remote Agent Host via SSH and name the host (e.g. My Remote ). 2. Create a worktree session on that host. 3. Run Open Worktree Cleanup . 4. Select the remote row and click Clean Up . Expected: Rows and the confirmation name the host ( My Remote ), like the Workspace column does”
“Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.60.0 OS Version: Fedora 34 Steps to Reproduce: 1. Clone https://github.com/apupier/reproducer codelens warningmessage it contains an extension with a CodeLens callign a command whcih is showing a warnign message in modal mode 2. Launch the extension 3. Create a file named my.hello.txt 4. open it 5. click on Codelens 6. the modal dialog has unclickable buttons all other windows have unclickable items too, even unre”
