feat: /cancel slash command to abort active agent runs (#422)

This commit is contained in:
Cameron
2026-02-26 17:14:07 -08:00
committed by GitHub
parent 338665ac48
commit 6fa8c98924
6 changed files with 104 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ Ask the bot owner to approve with:
return;
}
if (this.onCommand) {
if (command === 'status' || command === 'reset' || command === 'heartbeat' || command === 'model') {
if (command === 'status' || command === 'reset' || command === 'heartbeat' || command === 'cancel' || command === 'model') {
const result = await this.onCommand(command, message.channel.id, cmdArgs);
if (result) {
await message.channel.send(result);