fix(app): accept inline skill autocomplete (#1464)
This commit is contained in:
@@ -115,5 +115,6 @@ export function findActiveSlashCommand(
|
||||
export function applySlashCommandReplacement(input: ApplySlashCommandReplacementInput): string {
|
||||
const before = input.text.slice(0, input.command.start);
|
||||
const after = input.text.slice(input.command.end);
|
||||
return `${before}/${input.commandName}${after}`;
|
||||
const replacement = `${before}/${input.commandName}${after}`;
|
||||
return input.command.end === input.text.length ? `${replacement} ` : replacement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user