Sync Project Explorer when the session switches worktree - #15592
Draft
samvallad33 wants to merge 1 commit into
Draft
Sync Project Explorer when the session switches worktree#15592samvallad33 wants to merge 1 commit into
samvallad33 wants to merge 1 commit into
Conversation
Setup-command completion now refreshes explorer roots, and linked worktrees stay as their own display root instead of collapsing to the original repo.
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @samvallad33 on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment |
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.
Project Explorer stays on the original repo after Warp's built-in Worktree flow cds the session into the new checkout.
The Worktree tab config launches in
{{repo}}, then queuesgit worktree addandcdinto the generated worktree. Explorer roots come fromWorkingDirectoriesModel, which collapsed the new cwd to any cached ancestor repo and did not refresh after those setup commands finished.This keeps a linked worktree (
.gitfile) as its own display root, and emitsAppStateChangedwhen pending setup commands complete so the left-panel tree follows the session worktree.Fixes #15590
CHANGELOG-BUG-FIX: Project Explorer now follows the active Warp Worktree checkout.