fix(ui): Prevent eager slash command completion hiding sibling commands (#15224)

This commit is contained in:
Sandy Tao
2025-12-17 12:30:35 -10:00
committed by GitHub
parent bf6d0485ce
commit 6ddd5abd7b
2 changed files with 47 additions and 7 deletions

View File

@@ -117,12 +117,6 @@ function useCommandParser(
exactMatchAsParent = currentLevel.find(
(cmd) => matchesCommand(cmd, partial) && cmd.subCommands,
);
if (exactMatchAsParent) {
leafCommand = exactMatchAsParent;
currentLevel = exactMatchAsParent.subCommands;
partial = '';
}
}
const depth = commandPathParts.length;