fix: clear repo filter after creating worktree instead of auto-filtering (#64)

Previously, creating a worktree would auto-filter the sidebar to the
current repo, which could be confusing. Now clears the filter so all
worktrees remain visible, relying on revealWorktreeInSidebar to scroll
to the newly created worktree.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jinjing
2026-03-23 16:26:20 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent cd14506142
commit ecbbe3bfc9
@@ -128,7 +128,7 @@ const AddWorktreeDialog = React.memo(function AddWorktreeDialog() {
setSidebarOpen(true)
setSearchQuery('')
setShowActiveOnly(false)
setFilterRepoId(repoId)
setFilterRepoId(null)
setActiveWorktree(wt.id)
revealWorktreeInSidebar(wt.id)
}