Skip to content

Commit 94efb1a

Browse files
committed
refactor: convert showSuggestions from state to constant
- Addresses code review feedback about unused state variable - showSuggestions is always true and never changes, so it doesn't need to be state - All tests pass and no linting issues
1 parent 6463e8f commit 94efb1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/CommandExecution.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const CommandExecution = ({ executionId, text, icon, title }: CommandExec
5050
const [isExpanded, setIsExpanded] = useState(terminalShellIntegrationDisabled)
5151
const [streamingOutput, setStreamingOutput] = useState("")
5252
const [status, setStatus] = useState<CommandExecutionStatus | null>(null)
53-
const [showSuggestions] = useState(true)
53+
const showSuggestions = true
5454

5555
// The command's output can either come from the text associated with the
5656
// task message (this is the case for completed commands) or from the

0 commit comments

Comments
 (0)