Skip to content

Commit 91dbb02

Browse files
committed
cli: Don't render tool calls with includeToolCall: false
1 parent 932935c commit 91dbb02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/src/components/message-block.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ export const MessageBlock = ({
130130
if (toolBlock.toolName === 'end_turn') {
131131
return null
132132
}
133+
if (
134+
'includeToolCall' in toolBlock.input &&
135+
toolBlock.input.includeToolCall === false
136+
) {
137+
return null
138+
}
133139

134140
const displayInfo = getToolDisplayInfo(toolBlock.toolName)
135141
const isCollapsed = collapsedAgents.has(toolBlock.toolCallId)

0 commit comments

Comments
 (0)