diff --git a/ui/desktop/src/components/ToolCallWithResponse.tsx b/ui/desktop/src/components/ToolCallWithResponse.tsx index 06a91ce2dc..a4a6ea1ead 100644 --- a/ui/desktop/src/components/ToolCallWithResponse.tsx +++ b/ui/desktop/src/components/ToolCallWithResponse.tsx @@ -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; + const args = (toolCall.arguments ?? {}) as Record; const toolName = getToolName(toolCall.name); const getStringValue = (value: ToolCallArgumentValue): string => {