From 090d5f6d9c07b7d86c5acf8dde8a3efaa85828b4 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Sat, 4 Jul 2026 11:57:34 +0100 Subject: [PATCH] Reserve the rich PR card for the chat work drawer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plain dropped GitHub PR links go back to the compact static chip they had before; the live rich card (status, diff stats) now appears only in the chat work drawer — at the same compact-attachment scale as the generic chips — and agent-authored messages keep their banner variant. Co-Authored-By: Claude Fable 5 --- desktop/src/shared/ui/markdown.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/desktop/src/shared/ui/markdown.tsx b/desktop/src/shared/ui/markdown.tsx index 93a4092cd5..0dba1fed9a 100644 --- a/desktop/src/shared/ui/markdown.tsx +++ b/desktop/src/shared/ui/markdown.tsx @@ -38,7 +38,6 @@ import { AttachmentGroup } from "@/shared/ui/attachment"; import { ConfigNudgeCard } from "@/shared/ui/config-nudge-attachment"; import { AgentPullRequestCard, - GithubPullRequestCard, LinkPreviewAttachment, } from "@/shared/ui/link-preview-attachment"; import { useSmoothCorners } from "@/shared/ui/smoothCorners"; @@ -2078,13 +2077,11 @@ function MarkdownInner({ data-link-preview-list="" > {resolvedLinkPreviews.map((preview) => - preview.kind === "github-pull-request" ? ( - agentAuthored ? ( - - ) : ( - - ) + preview.kind === "github-pull-request" && agentAuthored ? ( + ) : ( + // Plain dropped links keep the compact static chip; the + // live rich card is reserved for the chat work drawer. ), )}