fix: tool error detection
This commit is contained in:
parent
1ffd154700
commit
98e80c324a
1 changed files with 3 additions and 3 deletions
|
|
@ -24,8 +24,9 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
);
|
||||
|
||||
case "tool-result":
|
||||
const isFailure = message.toolResult?.includes("Permission denied") ||
|
||||
message.toolResult?.includes("Error executing tool");
|
||||
const isFailure =
|
||||
message.toolResult?.includes("Permission denied") ||
|
||||
message.toolResult?.startsWith("Error");
|
||||
return (
|
||||
<Box key={index} marginBottom={1} flexDirection="column">
|
||||
<Box>
|
||||
|
|
@ -51,7 +52,6 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
</Box>
|
||||
);
|
||||
|
||||
|
||||
default:
|
||||
return (
|
||||
<Box key={index} marginBottom={1}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue