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 }, );