Skip to content

Commit 9a270d8

Browse files
committed
fix: improve tool call display truncation and update fetch dependency
1 parent c9b9862 commit 9a270d8

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

core/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/cli/src/tools/ToolCallTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function ToolCallTitle(props: { toolName: string; args?: any }) {
4343
}
4444

4545
return (
46-
<Text>
46+
<Text wrap="truncate">
4747
<Text bold>{displayName}</Text>({formattedValue})
4848
</Text>
4949
);

extensions/cli/src/ui/components/MemoizedMessage.tsx

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -116,24 +116,28 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
116116
flexDirection="column"
117117
marginBottom={1}
118118
>
119-
<Box>
120-
<Text
121-
color={
122-
isErrored
123-
? "red"
124-
: isCompleted
125-
? "green"
126-
: toolState.status === "generated"
127-
? "yellow"
128-
: "white"
129-
}
130-
>
131-
{isCompleted || isErrored ? "●" : "○"}
132-
</Text>
133-
<Text color="white">
134-
{" "}
135-
<ToolCallTitle toolName={toolName} args={toolArgs} />
136-
</Text>
119+
<Box width="100%">
120+
<Box flexShrink={0}>
121+
<Text
122+
color={
123+
isErrored
124+
? "red"
125+
: isCompleted
126+
? "green"
127+
: toolState.status === "generated"
128+
? "yellow"
129+
: "white"
130+
}
131+
>
132+
{isCompleted || isErrored ? "●" : "○"}
133+
</Text>
134+
</Box>
135+
<Box flexGrow={1} flexShrink={1} minWidth={0}>
136+
<Text color="white">
137+
{" "}
138+
<ToolCallTitle toolName={toolName} args={toolArgs} />
139+
</Text>
140+
</Box>
137141
</Box>
138142

139143
{isErrored ? (

0 commit comments

Comments
 (0)