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
This commit is contained in:
hannesrudolph 2025-07-17 13:19:26 -06:00
parent 6fa0a528b9
commit dd533c2af7

View file

@ -50,7 +50,7 @@ export const CommandExecution = ({ executionId, text, icon, title }: CommandExec
const [isExpanded, setIsExpanded] = useState(terminalShellIntegrationDisabled)
const [streamingOutput, setStreamingOutput] = useState("")
const [status, setStatus] = useState<CommandExecutionStatus | null>(null)
const [showSuggestions] = useState(true)
const showSuggestions = true
// The command's output can either come from the text associated with the
// task message (this is the case for completed commands) or from the