Skip to content

Commit c8e26b8

Browse files
fix(web): Changes row refetches when branch totals change outside a turn
AI-assisted; verified with the tests and tools listed above.
1 parent 198fdc3 commit c8e26b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/web/src/components/GitActionsControl.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,13 +1068,17 @@ export default function GitActionsControl({
10681068
useDiffPanelSessionStore((state) => state.ignoreWhitespace) ?? ignoreWhitespaceSetting;
10691069
const { canReadFiles } = useFilesystemReadAccess(activeEnvironmentId);
10701070
// Same input as the Diff panel's branch query, so both read one cached result. Status
1071-
// totals join the revision because edits made outside a turn leave the mutation id as is.
1071+
// totals join the revision because edits, pulls and resets outside a turn leave the mutation
1072+
// id as is.
10721073
const changesRevision = gitStatusForActions
10731074
? JSON.stringify([
10741075
workspaceMutationId,
10751076
gitStatusForActions.refName,
10761077
gitStatusForActions.workingTree.insertions,
10771078
gitStatusForActions.workingTree.deletions,
1079+
gitStatusForActions.branchChanges?.baseRef,
1080+
gitStatusForActions.branchChanges?.insertions,
1081+
gitStatusForActions.branchChanges?.deletions,
10781082
])
10791083
: null;
10801084
const changesPreview = useEnvironmentQuery(

0 commit comments

Comments
 (0)