mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: handle missing arguments in MCP tool calls to prevent GUI crash (#7143)
Signed-off-by: 青雲 <137844255@qq.com>
This commit is contained in:
@@ -518,7 +518,7 @@ function ToolCallView({
|
||||
|
||||
// Function to create a descriptive representation of what the tool is doing
|
||||
const getToolDescription = (): string | null => {
|
||||
const args = toolCall.arguments as Record<string, ToolCallArgumentValue>;
|
||||
const args = (toolCall.arguments ?? {}) as Record<string, ToolCallArgumentValue>;
|
||||
const toolName = getToolName(toolCall.name);
|
||||
|
||||
const getStringValue = (value: ToolCallArgumentValue): string => {
|
||||
|
||||
Reference in New Issue
Block a user