Skip to content

Commit b6a6374

Browse files
fix(web): scope PR refresh dedupe by thread
Co-authored-by: maria <[email protected]>
1 parent 902b728 commit b6a6374

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4614,7 +4614,7 @@ function ChatViewContent(props: ChatViewProps) {
46144614
sidebarPrRefreshKeyRef.current = null;
46154615
return;
46164616
}
4617-
const refreshKey = `${source}:${status.repository}#${status.number}:${status.state}`;
4617+
const refreshKey = `${activeThreadKey}:${source}:${status.repository}#${status.number}:${status.state}`;
46184618
if (sidebarPrRefreshKeyRef.current === refreshKey) return;
46194619
sidebarPrRefreshKeyRef.current = refreshKey;
46204620

@@ -4643,6 +4643,7 @@ function ChatViewContent(props: ChatViewProps) {
46434643
}
46444644
},
46454645
[
4646+
activeThreadKey,
46464647
activeThreadPr?.number,
46474648
activeThreadPr?.state,
46484649
activeThreadRef,

0 commit comments

Comments
 (0)