Repository navigation
Fix orphan stack worktree cleanup through macOS path aliases - #9100
Merged
Alex Ross (alexr00) merged 3 commits intoOct 28, 2026
Merged
Alex Ross (alexr00) merged 3 commits into
Alex Ross (alexr00) merged 3 commits into
Conversation
Alex Ross (alexr00)
previously approved these changes
Oct 28, 2026
Alex Ross (alexr00)
approved these changes
Oct 28, 2026
Member
|
/AzurePipelines run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
Dmitriy Vasyura (dmitrivMS)
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Orphaned stack-update worktrees are skipped on macOS when Node reports the temporary directory under
/var/folders/...and Git reports the same directory under/private/var/folders/.... The lexical parent-path comparison fails, leaving the temporary worktree behind after an interrupted update.Canonicalize paths before comparing temporary-directory and active-worktree identities. When a worktree has not been created yet, canonicalize its parent; retain lexical matching when filesystem resolution is unavailable. Capture the active key once so registration and removal use the same identity. Existing filename, process-ownership, primary-worktree and immediate-parent restrictions remain in place.
Found while investigating #9092. This does not complete that test plan's native UI sign-off.
Validation on macOS 26.2 arm64 with VS Code Insiders 1.144.0:
Linux and Windows execution, and the installed extension's native conflict-resolution UI flow, were not verified.