@@ -86,7 +86,7 @@ export const MessageBlock = ({
8686 const ancestorPrefix = ancestorBranchStates
8787 . map ( ( ancestorIsLast ) => ( ancestorIsLast ? ' ' : '│ ' ) )
8888 . join ( '' )
89- return `${ ancestorPrefix } ${ isLastBranch ? '└─ ' : '├─ ' } `
89+ return `${ ancestorPrefix } ${ isLastBranch ? '└ ' : '├ ' } `
9090 }
9191
9292 const renderContentWithMarkdown = (
@@ -161,7 +161,7 @@ export const MessageBlock = ({
161161 }
162162
163163 const displayInfo = getToolDisplayInfo ( toolBlock . toolName )
164- const isCollapsed = collapsedAgents . has ( toolBlock . toolCallId )
164+ const isCollapsed = true
165165 const isStreaming = streamingAgents . has ( toolBlock . toolCallId )
166166
167167 const inputContent = `\`\`\`json\n${ JSON . stringify ( toolBlock . input , null , 2 ) } \n\`\`\``
@@ -183,12 +183,11 @@ export const MessageBlock = ({
183183 : null
184184
185185 const branchChar = computeBranchChar ( ancestorBranchStates , isLastBranch )
186- const indentPrefix = branchChar . replace ( / [ ├ └ ] ─ \s * $ / , '' )
186+ const indentPrefix = branchChar . replace ( / [ ├ └ ] \s * $ / , '' )
187187 const previewBasePrefix =
188188 indentPrefix . length > 0 ? `${ indentPrefix } │ ` : ' │ '
189- const toggleLabel = `${ branchChar ? `${ branchChar } ` : '' } ${ isCollapsed ? '▸' : '▾' } `
190189 const branchIndentWidth = stringWidth ( branchChar )
191- const headerPrefixWidth = stringWidth ( toggleLabel )
190+ const headerPrefixWidth = stringWidth ( branchChar )
192191 const previewBaseWidth = stringWidth ( previewBasePrefix )
193192 const alignmentPadding = Math . max ( 0 , headerPrefixWidth - previewBaseWidth )
194193 const paddedPreviewPrefix = `${ previewBasePrefix } ${ ' ' . repeat ( alignmentPadding ) } `
@@ -223,7 +222,7 @@ export const MessageBlock = ({
223222 toolRenderConfig . collapsedPreview ??
224223 getToolFinishedPreview ( toolBlock , commandPreview , lastLine )
225224 const finishedPreview =
226- ! isStreaming && isCollapsed ? formatPreview ( collapsedPreviewBase ) : ''
225+ ! isStreaming ? formatPreview ( collapsedPreviewBase ) : ''
227226 const agentMarkdownOptions = getAgentMarkdownOptions ( indentLevel )
228227 const displayContent = renderContentWithMarkdown (
229228 fullContent ,
@@ -265,9 +264,7 @@ export const MessageBlock = ({
265264 </ box >
266265 ) : renderableDisplayContent
267266
268- const headerName = toolRenderConfig . path
269- ? `${ displayInfo . name } • ${ toolRenderConfig . path } `
270- : displayInfo . name
267+ const headerName = displayInfo . name
271268
272269 return (
273270 < box
@@ -284,8 +281,9 @@ export const MessageBlock = ({
284281 streamingPreview = { streamingPreview }
285282 finishedPreview = { finishedPreview }
286283 theme = { theme }
287- onToggle = { ( ) => onToggleCollapsed ( toolBlock . toolCallId ) }
288284 showBorder = { false }
285+ toggleEnabled = { false }
286+ titleSuffix = { toolRenderConfig . path }
289287 />
290288 </ box >
291289 )
0 commit comments