From 867ce2b35e4900cd1b69475553428d0e32d8befd Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:26:04 -0700 Subject: [PATCH] fix: clear repo filter after creating worktree instead of auto-filtering 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) }