fix: move /stop to first position in bot command menu

Makes /stop the first command in the Telegram bot menu for quick access
when needing to abort a running task.
This commit is contained in:
Clawdbot 2026-01-29 22:27:39 +01:00
parent 4583f88626
commit ba5c50f9c6

View File

@ -126,6 +126,13 @@ let cachedNativeRegistry: ReturnType<typeof getActivePluginRegistry> | null = nu
function buildChatCommands(): ChatCommandDefinition[] {
const commands: ChatCommandDefinition[] = [
defineChatCommand({
key: "stop",
nativeName: "stop",
description: "Stop the current run.",
textAlias: "/stop",
category: "session",
}),
defineChatCommand({
key: "help",
nativeName: "help",
@ -341,13 +348,6 @@ function buildChatCommands(): ChatCommandDefinition[] {
],
argsMenu: "auto",
}),
defineChatCommand({
key: "stop",
nativeName: "stop",
description: "Stop the current run.",
textAlias: "/stop",
category: "session",
}),
defineChatCommand({
key: "restart",
nativeName: "restart",