Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(assistant-ui): handle empty command input gracefully

Steven Enamakeld043318c2af4
diff --git a/app/src/components/assistant-ui/ui/command.tsx b/app/src/components/assistant-ui/ui/command.tsx
index 3f2c0dd34e..bebf08f213 100644
--- a/app/src/components/assistant-ui/ui/command.tsx
+++ b/app/src/components/assistant-ui/ui/command.tsx
@@ -121,27 +121,4 @@ function CommandItem({
);
}
-function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>) {
- return (
- <span
- data-slot="command-shortcut"
- className={cn(
- 'ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground',
- className
- )}
- {...props}
- />
- );
-}
-
-export {
- Command,
- CommandDialog,
- CommandInput,
- CommandList,
- CommandEmpty,
- CommandGroup,
- CommandItem,
- CommandShortcut,
- CommandSeparator,
-};
+export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator };