From ecbbe3bfc93a36f9bda4e4f3900e8a093669c5c2 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:26:20 -0700 Subject: [PATCH] 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 --- src/renderer/src/components/sidebar/AddWorktreeDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/components/sidebar/AddWorktreeDialog.tsx b/src/renderer/src/components/sidebar/AddWorktreeDialog.tsx index d165ccff56c..806b92afeb9 100644 --- a/src/renderer/src/components/sidebar/AddWorktreeDialog.tsx +++ b/src/renderer/src/components/sidebar/AddWorktreeDialog.tsx @@ -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) }