Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function CompactMessageSummary({
const variant = useAgentSessionTranscriptVariant();
const { goChannel } = useAppNavigation();
const { openProfilePanel } = useProfilePanel();
const isCompactPreview = variant === "compactPreview";
const isCompactPreview = variant !== "default";
const shouldClampBubble = !isCompactPreview;
const [bubbleRef, hasBubbleOverflow] =
useTranscriptBubbleOverflow(shouldClampBubble);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function CompactToolSummaryRow({
}) {
const [thumbnailFailed, setThumbnailFailed] = React.useState(false);
const variant = useAgentSessionTranscriptVariant();
const isCompactPreview = variant === "compactPreview";
const isCompactPreview = variant !== "default";
const mutedTone = compactSummaryTone();
const resolvedThumbnail = React.useMemo(() => {
if (!thumbnailSrc || thumbnailFailed) return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function TodoToolSummary({
}) {
const todos = buildTodoDisplayItems(item.args, item.result, fallbackPreview);
const variant = useAgentSessionTranscriptVariant();
const isCompactPreview = variant === "compactPreview";
const isCompactPreview = variant !== "default";
const actionLabel = {
verb: "Updated",
object: fallbackPreview ?? "todos",
Expand Down Expand Up @@ -84,7 +84,7 @@ export function isTodoSummary(summary: CompactToolSummary) {

function TodoCheckboxRow({ todo }: { todo: TodoDisplayItem }) {
const variant = useAgentSessionTranscriptVariant();
const isCompactPreview = variant === "compactPreview";
const isCompactPreview = variant !== "default";

return (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { cn } from "@/shared/lib/cn";
import { normalizePubkey } from "@/shared/lib/pubkey";
import type { TranscriptItem } from "../agentSessionTypes";
import { useAgentSessionTranscriptVariant } from "../agentSessionTranscriptContext";
import { getBuzzToolInfo } from "../agentSessionToolCatalog";
import { buildCompactToolSummary } from "../agentSessionToolSummary";
import type { AgentTranscriptIdentityProps } from "../activityRenderClasses/types";
Expand Down Expand Up @@ -34,6 +35,7 @@ export function ToolItem({
profiles?: UserProfileLookup;
}) {
const [isExpanded, setIsExpanded] = React.useState(false);
const transcriptVariant = useAgentSessionTranscriptVariant();
const hasArgs = Object.keys(item.args).length > 0;
const hasResult = item.result.trim().length > 0;
const canonicalToolName = item.buzzToolName ?? item.toolName;
Expand All @@ -57,7 +59,10 @@ export function ToolItem({
[],
);

if (compactSummary.presentation === "message") {
if (
compactSummary.presentation === "message" &&
transcriptVariant !== "inlineTimeline"
) {
return (
<div
className="not-prose w-full"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function AgentSessionTranscriptList({
scrollContainerRef,
});

const isCompactPreview = variant === "compactPreview";
const isCompactPreview = variant !== "default";
const animationPreferenceEnabled = useTranscriptAnimationEnabled();
const shouldReduceMotion = useReducedMotion();
const animationsDisabled =
Expand Down Expand Up @@ -302,7 +302,7 @@ function hasRenderableDisplayContent(
displayBlocks: TranscriptDisplayBlock[],
variant: AgentSessionTranscriptVariant,
) {
if (variant !== "compactPreview") {
if (variant === "default") {
return displayBlocks.length > 0;
}

Expand Down Expand Up @@ -360,7 +360,7 @@ function TranscriptDisplayBlockView({
profiles?: UserProfileLookup;
}) {
const variant = useAgentSessionTranscriptVariant();
const isCompactPreview = variant === "compactPreview";
const isCompactPreview = variant !== "default";
const animationPreferenceEnabled = useTranscriptAnimationEnabled();
const shouldReduceMotion = useReducedMotion();
// Streaming tool calls land as new segments inside the current turn block
Expand Down Expand Up @@ -508,7 +508,7 @@ function SameKindSummaryItem({
);
const variant = useAgentSessionTranscriptVariant();
const timestampsEnabled = useTranscriptTimestampsEnabled();
const showTimestamp = timestampsEnabled && variant !== "compactPreview";
const showTimestamp = timestampsEnabled && variant === "default";
// Mixed bursts expand to their child segments in original order: raw tool
// rows plus nested same-kind summaries that joined the burst (which stay
// expandable to their own child rows).
Expand Down
Loading