Skip to content

Commit a88c201

Browse files
tellahonpub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
authored andcommitted
refactor(agents): drop transcript compact mode and simplify row spacing
- Remove the compact layout prop from AgentSessionTranscriptList, ManagedAgentSessionPanel, and AgentSessionThreadPanel; always render the tighter transcript density - Revert consecutive tool-call grouping (tool_group segments, ToolCallGroup, segment spacing helpers) and render each tool as a normal transcript row - Add symmetric per-type row spacing: my-2.5 for messages, my-1 for tools, my-2 for other items - Simplify ToolItem wrapper padding now that grouped/compact props are gone
1 parent 087a67f commit a88c201

6 files changed

Lines changed: 31 additions & 227 deletions

desktop/src/features/agents/ui/AgentSessionToolItem.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ import { buildCompactToolSummary } from "./agentSessionToolSummary";
1010
import { asRecord, formatCodeValue, formatDuration } from "./agentSessionUtils";
1111

1212
export function ToolItem({
13-
compact = false,
14-
grouped = false,
1513
item,
1614
}: {
17-
compact?: boolean;
18-
grouped?: boolean;
1915
item: Extract<TranscriptItem, { type: "tool" }>;
2016
}) {
2117
const [isExpanded, setIsExpanded] = React.useState(false);
@@ -34,11 +30,7 @@ export function ToolItem({
3430

3531
return (
3632
<div
37-
className={cn(
38-
"not-prose w-full",
39-
compact ? "px-0" : "px-1",
40-
grouped ? "py-0" : compact ? "py-0.5" : "py-0.5",
41-
)}
33+
className="not-prose w-full px-0 py-0.5"
4234
data-testid="transcript-tool-item"
4335
>
4436
<details

0 commit comments

Comments
 (0)