diff --git a/desktop/src/features/agents/ui/AgentSessionToolItem/CompactMessageSummary.tsx b/desktop/src/features/agents/ui/AgentSessionToolItem/CompactMessageSummary.tsx index 4b5ed0c59f..33fd1e4416 100644 --- a/desktop/src/features/agents/ui/AgentSessionToolItem/CompactMessageSummary.tsx +++ b/desktop/src/features/agents/ui/AgentSessionToolItem/CompactMessageSummary.tsx @@ -52,10 +52,13 @@ export function CompactMessageSummary({ const { goChannel } = useAppNavigation(); const { openProfilePanel } = useProfilePanel(); const isCompactPreview = variant === "compactPreview"; - const shouldClampBubble = !isCompactPreview; + const isConversation = variant === "conversation"; + // Focus mode is a reading view, so sent messages remain fully visible there. + // The default activity surface keeps the compact clamp. + const shouldClampBubble = !isCompactPreview && !isConversation; const [bubbleRef, hasBubbleOverflow] = useTranscriptBubbleOverflow(shouldClampBubble); - const canOpenMessage = shouldClampBubble && messageLink !== null; + const canOpenMessage = !isCompactPreview && messageLink !== null; const mutedTone = compactSummaryTone(); const avatarClassName = cn( "mr-2 mt-1 shrink-0", @@ -135,7 +138,12 @@ export function CompactMessageSummary({ testId="transcript-agent-sent-avatar" /> )} -