Skip to content

Commit e087731

Browse files
committed
fix(web): limit reference copy to server threads
1 parent 6a689ae commit e087731

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4603,14 +4603,14 @@ function ChatViewContent(props: ChatViewProps) {
46034603
});
46044604
const activeThreadReferenceCopyTarget = useMemo(
46054605
() =>
4606-
activeThreadId === null
4606+
activeThreadId === null || !isServerThread
46074607
? null
46084608
: resolveThreadReferenceCopyTarget({
46094609
threadId: activeThreadId,
46104610
linkedPullRequestUrl: linkedThreadPullRequest?.url ?? null,
46114611
detectedPullRequestUrl: activeThreadPr?.url ?? null,
46124612
}),
4613-
[activeThreadId, activeThreadPr?.url, linkedThreadPullRequest?.url],
4613+
[activeThreadId, activeThreadPr?.url, isServerThread, linkedThreadPullRequest?.url],
46144614
);
46154615
const copyActiveThreadReference = useCallback(() => {
46164616
const target = activeThreadReferenceCopyTarget;

0 commit comments

Comments
 (0)