feat(cli): Suppress slash command execution and suggestions in shell … (#11380)

This commit is contained in:
Jainam M
2025-10-17 23:00:27 +05:30
committed by GitHub
parent 795e5134c7
commit 659b0557be
6 changed files with 154 additions and 36 deletions
@@ -51,6 +51,7 @@ export function useCommandCompletion(
slashCommands: readonly SlashCommand[],
commandContext: CommandContext,
reverseSearchActive: boolean = false,
shellModeActive: boolean,
config?: Config,
): UseCommandCompletionReturn {
const {
@@ -163,7 +164,7 @@ export function useCommandCompletion(
});
const slashCompletionRange = useSlashCompletion({
enabled: completionMode === CompletionMode.SLASH,
enabled: completionMode === CompletionMode.SLASH && !shellModeActive,
query,
slashCommands,
commandContext,