microsoft / microsoft/vscode

Don't silently swallow "failed to delete" Worktree error

Open
#327,261 0 comments 0 reactions 1 assignee Assigned to @lszomoru View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

I marked a worktree session as done. When I later checked the output for logs I saw `2026-07-24 10:33:22.819 [warning] [agentHostGitService] > git worktree remove --force c:\Code\vscode-vsce.worktrees\oidc-support-for-secretless-publishing failed; full stderr:
error: failed to delete 'C:/Code/vscode-vsce.worktrees/oidc-support-for-secretless-publishing': Permission denied`

I think we should probably show this error to the user? Or maybe it should appear in the sessions management UI @sandy081 is looking into

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.