(text: string)
| 225 | |
| 226 | // Update shell mode state based on input |
| 227 | const updateBashModeState = (text: string) => { |
| 228 | const trimmed = text.trimStart(); |
| 229 | const isBash = trimmed.startsWith("!"); |
| 230 | setShowBashMode(isBash); |
| 231 | if (isBash) { |
| 232 | // Disable other helpers while in shell mode |
| 233 | setShowSlashCommands(false); |
| 234 | setShowFileSearch(false); |
| 235 | } |
| 236 | }; |
| 237 | |
| 238 | // Update slash command UI state based on input |
| 239 | const updateSlashCommandState = (text: string, cursor: number) => { |
no outgoing calls
no test coverage detected