fix(app): accept inline skill autocomplete (#1464)

This commit is contained in:
Mohamed Boudra
2026-06-11 16:16:26 +08:00
committed by GitHub
parent f5a7055e7e
commit 9fb64f5a0b
3 changed files with 27 additions and 4 deletions
@@ -450,9 +450,7 @@ export function useAgentAutocomplete(input: UseAgentAutocompleteInput): AgentAut
command: activeSlashCommand,
commandName: selected.id,
});
const shouldAppendSpace =
activeSlashCommand.position === "start" && activeSlashCommand.end === userInput.length;
setUserInput(shouldAppendSpace ? `${nextInput} ` : nextInput);
setUserInput(nextInput);
onAutocompleteApplied?.();
return;
}