Merge pull request #8411 from continuedev/nate/fix-tool-call-title-truncation

fix: improve tool call display truncation and update fetch dependency
This commit is contained in:
Dallin Romney 2025-10-29 11:05:51 -07:00 • committed by GitHub
commit 20a8e6c292
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 20 deletions

View file

@ -225,7 +225,7 @@
"@aws-sdk/credential-providers": "^3.840.0",
"@continuedev/config-types": "^1.0.14",
"@continuedev/config-yaml": "^1.14.0",
"@continuedev/fetch": "^1.1.0",
"@continuedev/fetch": "^1.5.0",
"dotenv": "^16.5.0",
"google-auth-library": "^10.1.0",
"json-schema": "^0.4.0",

View file

@ -43,7 +43,7 @@ export function ToolCallTitle(props: { toolName: string; args?: any }) {
}
return (
<Text>
<Text wrap="truncate">
<Text bold>{displayName}</Text>({formattedValue})
</Text>
);

View file

@ -109,24 +109,28 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
flexDirection="column"
marginBottom={1}
>
<Box>
<Text
color={
isErrored
? "red"
: isCompleted
? "green"
: toolState.status === "generated"
? "yellow"
: "white"
}
>
{isCompleted || isErrored ? "●" : "○"}
</Text>
<Text color="white">
{" "}
<ToolCallTitle toolName={toolName} args={toolArgs} />
</Text>
<Box width="100%">
<Box flexShrink={0}>
<Text
color={
isErrored
? "red"
: isCompleted
? "green"
: toolState.status === "generated"
? "yellow"
: "white"
}
>
{isCompleted || isErrored ? "●" : "○"}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1} minWidth={0}>
<Text color="white">
{" "}
<ToolCallTitle toolName={toolName} args={toolArgs} />
</Text>
</Box>
</Box>
{isErrored ? (