From 1c74b9f0209deea9d7a6192fac989d8cf0562502 Mon Sep 17 00:00:00 2001 From: OpeOginni <107570612+OpeOginni@users.noreply.github.com> Date: Mon, 12 Oct 2026 19:39:16 +0200 Subject: [PATCH] fix(tui): restrict command autocomplete to prompt start (#54857) --- packages/tui/src/component/prompt/autocomplete.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tui/src/component/prompt/autocomplete.tsx b/packages/tui/src/component/prompt/autocomplete.tsx index ed7752f2389..c669491c096 100644 --- a/packages/tui/src/component/prompt/autocomplete.tsx +++ b/packages/tui/src/component/prompt/autocomplete.tsx @@ -803,7 +803,7 @@ export function Autocomplete(props: { if (offset === 0) return const slash = slashTriggerIndex(value, offset) - if (slash !== undefined) { + if (slash === 0) { show("command") setStore("index", slash) return