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 d6394b6d..aac9c3f2 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
@@ -688,8 +688,8 @@ const ToolHeaderComponent = ({
const [isExpanded, setIsExpanded] = useState(false);
- const isDropdown = !!children
- const isClickable = !!isDropdown || !!onClick
+ const isDropdown = children !== undefined // null ALLOWS dropdown
+ const isClickable = !!(isDropdown || onClick)
return (
@@ -698,7 +698,7 @@ const ToolHeaderComponent = ({
{
- if (children) { setIsExpanded(v => !v); }
+ if (isDropdown) { setIsExpanded(v => !v); }
if (onClick) { onClick(); }
}}
>
@@ -726,12 +726,12 @@ const ToolHeaderComponent = ({
{/* children */}
- {children &&
- {children}
+ {children || '(no results)'}
}
@@ -1166,7 +1166,7 @@ const toolNameToComponent: { [T in ToolName]: {
if (toolMessage.result.type !== 'error') {
const { value, params } = toolMessage.result
componentParams.numResults = value.children?.length
- componentParams.children = <>
+ componentParams.children = (value.children?.length ?? 0) === 0 ? null : <>
{value.children?.map((child, i) => (
+ componentParams.children = value.uris.length === 0 ? null : <>
{value.uris.map((uri, i) => (
+ componentParams.children = value.uris.length === 0 ? null : <>
{value.uris.map((uri, i) => (