Skip to content

Sync Project Explorer when the session switches worktree - #15592

Draft
samvallad33 wants to merge 1 commit into
warpdotdev:masterfrom
samvallad33:fix/warp-15590-explorer-worktree
Draft

Sync Project Explorer when the session switches worktree#15592
samvallad33 wants to merge 1 commit into
warpdotdev:masterfrom
samvallad33:fix/warp-15590-explorer-worktree

Conversation

@samvallad33

@samvallad33 samvallad33 commented Aug 27, 2026

Copy link
Copy Markdown

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 queues git worktree add and cd into the generated worktree. Explorer roots come from WorkingDirectoriesModel, which collapsed the new cwd to any cached ancestor repo and did not refresh after those setup commands finished.

This keeps a linked worktree (.git file) as its own display root, and emits AppStateChanged when 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.

Setup-command completion now refreshes explorer roots, and linked
worktrees stay as their own display root instead of collapsing to the
original repo.
@cla-bot

cla-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

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 @cla-bot check to trigger another check.

@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project Explorer stays on the original directory after using Warp's built-in Worktree feature

1 participant