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:
commit
20a8e6c292
3 changed files with 24 additions and 20 deletions
2
core/package-lock.json
generated
2
core/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export function ToolCallTitle(props: { toolName: string; args?: any }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<Text>
|
||||
<Text wrap="truncate">
|
||||
<Text bold>{displayName}</Text>({formattedValue})
|
||||
</Text>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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 ? (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue