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. ), )}