fix(cli): Disable slash commands and suggestions in shell mode
- Prevents slash commands from being triggered and suggestions from being displayed when shell mode is active. This ensures that user input is correctly interpreted as shell commands. Fixes https://buganizer.corp.google.com/issues/418560826
This commit is contained in:
parent
db93ea736b
commit
cd1dc7ec59
|
@ -207,7 +207,9 @@ export const App = ({
|
|||
const completion = useCompletion(
|
||||
query,
|
||||
config.getTargetDir(),
|
||||
isInputActive && (isAtCommand(query) || isSlashCommand(query)),
|
||||
!shellModeActive &&
|
||||
isInputActive &&
|
||||
(isAtCommand(query) || isSlashCommand(query)),
|
||||
slashCommands,
|
||||
);
|
||||
|
||||
|
@ -380,7 +382,7 @@ export const App = ({
|
|||
shellModeActive={shellModeActive}
|
||||
setShellModeActive={setShellModeActive}
|
||||
/>
|
||||
{completion.showSuggestions && (
|
||||
{completion.showSuggestions && !shellModeActive && (
|
||||
<Box>
|
||||
<SuggestionsDisplay
|
||||
suggestions={completion.suggestions}
|
||||
|
|
Loading…
Reference in New Issue