Users find VS Code worktree cleanup dialog confusing
12 posts in the last 30 days, all from GitHub.
“Testing 349544 When a worktree can't be removed, Worktree Cleanup shows an error toast and then hides the row, so the cleanup can't be retried. Steps 1. Create a worktree session in the Agents window and let it finish. 2. Make removal fail, e.g. git worktree lock”
“Does this issue occur when all extensions are disabled?: Not tested VS Code Version: Likely the latest Stable release at the time of the report; exact version not confirmed OS Version: Not provided Steps to Reproduce: 1. Open the Agents Window and select a folder that is not a…”
“Problem Git registered worktrees created by VS Code can remain on disk after their sessions are no longer listed. Worktree Cleanup currently starts from listed sessions, so these leftover worktrees have no row and cannot be selected for cleanup, even when they consume…”
Several users are experiencing confusion and usability issues with the VS Code worktree cleanup dialog. Concerns include unclear wording, incorrect mouse cursors, unexpected behavior when resizing, and a lack of clear feedback regarding uncommitted changes. Users want more informative banners and better visual cues.
SOURCES (22)
“Testing 349544 After cleaning some work trees, they remain in the table. I want to be able to refresh the list to see the updated work trees table cleared of the deleted ones.”
Testing 349544 Repro 1. open the wroktree cleanup docked in the sidebar in the agents window 2. create a new session and send a message Observed: While a session is running, the…
“Testing 349544 repro: 1. Open a session that has a worktree in the agents window 2. open the worktree cleanup view and dock it in the sidebar (not modal) 3. select the session in the cleanup view and clean it. Expected: Cleanup View stays open Actual: Cleanup view is closed as the new session view is opened”
“Testing 349544 When a worktree can't be removed, Worktree Cleanup shows an error toast and then hides the row, so the cleanup can't be retried. Steps 1. Create a worktree session in the Agents window and let it finish. 2. Make removal fail, e.g. git worktree lock <worktree path . 3. Open Worktree Cleanup , select the session, click Clean Up , confirm. 4. Close and reopen Worktree Cleanup . Expected: The row stays in the list with the failure reason and can be selected again to retry. Actual: A t”
“open the worktree clean up dialog and move the mouse over the workspace column entries: https://github.com/user attachments/assets/accf181c 5107 413c a089 239edafeebe1 Repository should not start with '/' hover is far away from mouse pointer No clue where that comes from: 'Repository Coding/Adding Hello World Snippet for Go Language'. There is a very old session with that title, but ts not related to all these worktrees some entries show no hover”
“Testing 346604 <img width="1412" height="284" alt="Image" src="https://github.com/user attachments/assets/df0c3d7d 9330 4c33 958c 0b9a98d45f6e" / Probably worth taking a pass with a designer or a model to make a cleaner prototype, but just some naive notes: I don't think we need a headera nd subheader when the modal already has "Worktree cleanup" The text and interspersed controls differs from most of our filters which use the "folder" or "sort" icons and context menus "Worktree storage scan" is”
“Testing 346604 <img width="1355" height="408" alt="Image" src="https://github.com/user attachments/assets/2068ec07 9042 449d b392 1ae1eaf87bcc" / I have a few long lived worktrees of VS Code that I reuse e.g. for automations. These are preseed in duplicate in the session list. And in general I run many sessions on these. I think the control order for this is actually inverted I should see my worktrees, and then last activity should be the last session they ran in the worktree. Rather than having”
“Testing 346604 <img width="1355" height="408" alt="Image" src="https://github.com/user attachments/assets/32c5fbbe 4635 40fa bdff f246590e5d65" / I need to wait for checkboxes to appear before I can select the folder to delete.”
“Testing 346604 In the worktree cleanup dialog hover over an workspace entry 🐛 Unclear what the info means /workspaces , file://... should not render a file URL hover is sometimes far away from the mouse maybe better to show a single hover over all columns that shows all info: workstree: label, worktree location, time, size <img width="757" height="483" alt="Image" src="https://github.com/user attachments/assets/cd59916d 1752 4e64 828b d258a1e28ef5" /”
“Does this issue occur when all extensions are disabled?: Not tested VS Code Version: Likely the latest Stable release at the time of the report; exact version not confirmed OS Version: Not provided Steps to Reproduce: 1. Open the Agents Window and select a folder that is not a Git repository. The worktree creation option is correctly unavailable. 2. Start a session in that folder and send at least one message. 3. Run git init in the same folder. 4. Start a new session in that folder. Expected: A”
“Testing 345250 Should we not show the result section? It might not be useful to see that a worktree was removed, maybe just removing it from the list might be enough? <img width="942" height="149" alt="Image" src="https://github.com/user attachments/assets/27e4032d 1867 407b b50b cef08c1b8973" /”
“Testing 345230 machine with no worktrees yet In the agents view I created 2 sessions with worktrees. I resolved one opened the Worktree cleanup no entries to clean up <img width="679" height="455" alt="Image" src="https://github.com/user attachments/assets/b29f9a60 0d50 46f5 bd1e deba19505b29" /”
“Problem Git registered worktrees created by VS Code can remain on disk after their sessions are no longer listed. Worktree Cleanup currently starts from listed sessions, so these leftover worktrees have no row and cannot be selected for cleanup, even when they consume substantial storage. Feature request Surface registered worktrees under VS Code's managed <repository .worktrees directory independently of the session list. Show a cleanup row for each managed worktree without a matching listed se”
“Bulk worktree cleanup in the Agents window needs clearer progress and recovery. Rows disappear from the cleanup table as worktrees are removed, but users need to understand what happened to the whole batch and keep control of the remaining rows. Cleaning a worktree should continue to preserve its session history. Requested improvements Immediately show confirmed worktrees as queued and prevent duplicate submissions while scheduling. Keep a batch summary visible after completed rows disappear, in”
“Steps to reproduce 1. Open the Agents window and mark a session that uses a worktree as done. 2. Open Worktree Cleanup while the session’s worktree still occupies disk space. 3. Find the row labeled "Worktree still present". Actual behavior The row remains visible but its checkbox is disabled, so the user cannot select the leftover worktree to retry cleanup. The label does not distinguish scheduled/running removal, a safety related deferral (for example, another session still using the worktree)”
“Testing 342065 Repro: Open Worktree Cleanup Wait for indexing Click on session <img width="1050" height="566" alt="Image" src="https://github.com/user attachments/assets/d657a050 5f9b 4b78 adbf 377ba9173b8d" / Wait for session to load Return to Worktree Cleanup <img width="983" height="961" alt="Image" src="https://github.com/user attachments/assets/6fb74c8e c66e 4215 ad2c 5bea543a0b77" / Notice that the session is no longer in the list <img width="968" height="559" alt="Image" src="https://gith”
“Testing 342065 I have to click on each item and wait for the session to reload to know which workspace it belongs to. It would be easier to scan if workspace info was available in the grid <img width="1695" height="872" alt="Image" src="https://github.com/user attachments/assets/9e9b45be 163a 4580 9d0e 75e2aa54f73a" /”
“Testing 342065 I have 28 worktrees from agent created sessions, and I'd like to clean up most of them, but I can only view a few items that are inactive for at least 7 days. Also, when the worktree indexing occurs, it said I had 71 worktrees. I'd expect to be able to view and manage all of them at once. Items that are older than a certain time window can perhaps be grouped as recommended to cleanup. <img width="475" height="91" alt="Image" src="https://github.com/user attachments/assets/a76556cb”
“Testing 339374 Instead of showing an empty table and a disabled button, we should show an information banner that there are no worktrees to clean up. <img width="778" height="127" alt="Image" src="https://github.com/user attachments/assets/fcf880e4 a105 45bc 8a46 de2eeeff0d2c" /”
“Testing 339373 Run 5 attempts and show them in a grid Right click on the group and choose delete The grid is left and the new session appears in the last active session's place”
“Testing 339374 It feels a little scary to enable Permanently delete automatically completed sessions after N days as I'm not sure if clicking the checkbox will instantly kick in the cleanup. Should there maybe be a save button? <img width="2062" height="933" alt="Image" src="https://github.com/user attachments/assets/a67c0c7c 6589 4e9c abda fb9175fbd811" /”
