Skip to content

Commit b2ff0e1

Browse files
committed
fix(web): a repeated comment link gets its own host read
The once-per-link refresh guard kept the URL after the reveal settled, so clicking the same link again on the mounted panel skipped the host read and settled against stale activity. The guard now clears once a reveal is shown or given up.
1 parent 05b02ce commit b2ff0e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,11 @@ export function PullRequestDetailPanel({
649649
revealRefreshedFor.current = revealUrl;
650650
return void refreshFromHost();
651651
}
652+
revealRefreshedFor.current = null;
652653
return onRevealSettled?.();
653654
}
655+
// A later click on the same link gets its own host read.
656+
revealRefreshedFor.current = null;
654657
// selectTab's store writes; the local tab already switched during render.
655658
if (tabOnPage) useGuideRunStore.getState().showPageDetailTab(guideKey, "summary");
656659
onTabChange?.("summary");

0 commit comments

Comments
 (0)