diff --git a/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx b/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx index 2e0406ee4e..f71f3e7800 100644 --- a/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx +++ b/packages/cli/src/ui/components/messages/ToolGroupMessage.tsx @@ -246,11 +246,10 @@ export const ToolGroupMessage: React.FC = ({ (showClosingBorder ? 1 : 0); } else if (isTopicToolCall) { // Topic Message Spacing Breakdown: - // 1. Top Margin (1): Always present for spacing. - // 2. Topic Content (1). - // 3. Bottom Margin (1): Always present around TopicMessage for breathing room. - // 4. Closing Border (1): Added if transition logic (showClosingBorder) requires it. - height += 1 + 1 + 1 + (showClosingBorder ? 1 : 0); + // 1. Topic Content (1). + // 2. Bottom Margin (1): Always present around TopicMessage for breathing room. + // 3. Closing Border (1): Added if transition logic (showClosingBorder) requires it. + height += 1 + 1 + (showClosingBorder ? 1 : 0); } else if (isCompact) { // Compact Tool: Always renders as a single dense line. height += 1; @@ -439,7 +438,7 @@ export const ToolGroupMessage: React.FC = ({ {isCompact ? ( ) : isTopicToolCall ? ( - + ) : isShellToolCall ? ( diff --git a/packages/cli/src/ui/components/messages/__snapshots__/ToolGroupMessage.test.tsx.snap b/packages/cli/src/ui/components/messages/__snapshots__/ToolGroupMessage.test.tsx.snap index 270f8e1b8f..f61b9274c9 100644 --- a/packages/cli/src/ui/components/messages/__snapshots__/ToolGroupMessage.test.tsx.snap +++ b/packages/cli/src/ui/components/messages/__snapshots__/ToolGroupMessage.test.tsx.snap @@ -77,8 +77,7 @@ exports[` > Golden Snapshots > renders header when scrolled `; exports[` > Golden Snapshots > renders mixed tool calls including update_topic 1`] = ` -" - Testing Topic: This is the description +" Testing Topic: This is the description ╭──────────────────────────────────────────────────────────────────────────╮ │ ✓ read_file Read a file │ @@ -143,8 +142,7 @@ exports[` > Golden Snapshots > renders two tool groups where `; exports[` > Golden Snapshots > renders update_topic tool call using TopicMessage > update_topic_tool 1`] = ` -" - Testing Topic: This is the description +" Testing Topic: This is the description " `;