Fix(command): line/block Comments Incorrectly Parsed as Slash Commands (#6957)

Co-authored-by: Abhi <43648792+abhipatel12@users.noreply.github.com>
This commit is contained in:
fuyou 2025-08-26 11:51:27 +08:00 committed by GitHub
parent 97ce197f38
commit 45fff8f9f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 157 additions and 9 deletions

View file

@ -134,7 +134,7 @@ export function useCommandCompletion(
if (
isPromptCompletionEnabled &&
trimmedText.length >= PROMPT_COMPLETION_MIN_LENGTH &&
!trimmedText.startsWith('/') &&
!isSlashCommand(trimmedText) &&
!trimmedText.includes('@')
) {
return {