From e2658ccda8610f5054cc446ca5b3046e904afe88 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Tue, 17 Mar 2026 16:48:16 -0700 Subject: [PATCH] refactor(cli): remove extra newlines in ShellToolMessage.tsx (#22868) Co-authored-by: Spencer --- .../ui/components/messages/ShellToolMessage.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/packages/cli/src/ui/components/messages/ShellToolMessage.tsx b/packages/cli/src/ui/components/messages/ShellToolMessage.tsx index f34aa08bfb..f3694f3490 100644 --- a/packages/cli/src/ui/components/messages/ShellToolMessage.tsx +++ b/packages/cli/src/ui/components/messages/ShellToolMessage.tsx @@ -42,33 +42,19 @@ export interface ShellToolMessageProps extends ToolMessageProps { export const ShellToolMessage: React.FC = ({ name, - description, - resultDisplay, - status, - availableTerminalHeight, - terminalWidth, - emphasis = 'medium', - renderOutputAsMarkdown = true, - ptyId, - config, - isFirst, - borderColor, - borderDimColor, - isExpandable, - originalRequestName, }) => { const { @@ -142,11 +128,9 @@ export const ShellToolMessage: React.FC = ({ }, [isThisShellFocused, embeddedShellFocused, setEmbeddedShellFocused]); const headerRef = React.useRef(null); - const contentRef = React.useRef(null); // The shell is focusable if it's the shell command, it's executing, and the interactive shell is enabled. - const isThisShellFocusable = checkIsShellFocusable(name, status, config); const handleFocus = () => { @@ -156,7 +140,6 @@ export const ShellToolMessage: React.FC = ({ }; useMouseClick(headerRef, handleFocus, { isActive: !!isThisShellFocusable }); - useMouseClick(contentRef, handleFocus, { isActive: !!isThisShellFocusable }); const { shouldShowFocusHint } = useFocusHint(