fix(server): link thread PRs without an open client (#10101)

Co-authored-by: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Theo BrowneandClaude Fable 5.1 authored and GitHub committed 2026-09-06 04:06:15 -07:00
1 parent 5fa35d2116
commit 223ff4490f
50 files changed
+2308 -1485

No files matched your search

+1 -3
View File
@@ -11,11 +11,9 @@ export function resolveThreadReferenceCopyTarget(input: {
/** Undefined means no PR panel; null means its URL is not available yet. */
readonly openPanelPullRequestUrl?: string | null | undefined;
readonly linkedPullRequestUrl?: string | null;
readonly detectedPullRequestUrl?: string | null;
}): ThreadReferenceCopyTarget | null {
if (input.openPanelPullRequestUrl === null) return null;
const pullRequestUrl =
input.openPanelPullRequestUrl ?? input.linkedPullRequestUrl ?? input.detectedPullRequestUrl;
const pullRequestUrl = input.openPanelPullRequestUrl ?? input.linkedPullRequestUrl;
return pullRequestUrl
? {
kind: "pull-request",