From 72c1d28fc62874354022256d1fa5dc9cdd1bff21 Mon Sep 17 00:00:00 2001 From: jaygupta17 Date: Tue, 25 Aug 2026 21:09:39 +0530 Subject: [PATCH] fix(ui): drop unused nestedRepoSelection binding and stale review-flow dependency --- packages/ui/src/components/views/DiffView.tsx | 2 +- packages/ui/src/components/views/GitView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/views/DiffView.tsx b/packages/ui/src/components/views/DiffView.tsx index 8791e460..27002b91 100644 --- a/packages/ui/src/components/views/DiffView.tsx +++ b/packages/ui/src/components/views/DiffView.tsx @@ -1678,7 +1678,7 @@ export const DiffView: React.FC = ({ } finally { setReviewFlowSubmitting(false); } - }, [currentSessionId, effectiveDirectory, t]); + }, [currentSessionId, rootDirectory, t]); const scrollToFile = React.useCallback((path: string): boolean => { const node = fileSectionRefs.current.get(path); diff --git a/packages/ui/src/components/views/GitView.tsx b/packages/ui/src/components/views/GitView.tsx index 1d599aef..d25989a3 100644 --- a/packages/ui/src/components/views/GitView.tsx +++ b/packages/ui/src/components/views/GitView.tsx @@ -257,7 +257,7 @@ export const GitView: React.FC = ({ isActive }) => { // one, `gitDirectory` is the effective repository all git data and actions // operate on. The hook owns probing, discovery, auto-select, and // stale-selection recovery; data fetching below keys off its result. - const { rootIsGitRepo, gitDirectory, nestedRepos, nestedRepoSelection } = useNestedGitDirectory( + const { rootIsGitRepo, gitDirectory, nestedRepos } = useNestedGitDirectory( currentDirectory ?? null, { enabled: isActive }, );