From 8c26fd208179af8ba4a6f5ce8b075ff7b14472da Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Tue, 8 Apr 2025 23:59:07 -0700 Subject: [PATCH] params --- .../void/browser/react/src/sidebar-tsx/SidebarChat.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index cce69b89..1a26e5c1 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -1334,7 +1334,7 @@ const EditToolHeaderButtons = ({ applyBoxId, uri, codeStr }: { applyBoxId: strin -const InvalidTool = ({ toolName }: { toolName: ToolName }) => { +const InvalidTool = ({ toolName, message }: { toolName: ToolName, message: string }) => { const accessor = useAccessor() const title = getTitle({ name: toolName, type: 'invalid_params' }) const desc1 = 'Invalid parameters' @@ -1342,7 +1342,11 @@ const InvalidTool = ({ toolName }: { toolName: ToolName }) => { const isError = true const componentParams: ToolHeaderParams = { title, desc1, isError, icon } - componentParams.children + componentParams.children = + + {message} + + return } @@ -1902,7 +1906,7 @@ const ChatBubble = ({ threadId, chatMessage, currCheckpointIdx, isCommitted, mes if (chatMessage.type === 'invalid_params') { return
- +
}