From 7eda4609ec0e43a3774a900ac62725f05d7c794a Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Wed, 29 Jul 2026 11:09:41 +1000 Subject: [PATCH] fix(telegram): publish all executable session commands in menu and help /new, /reset, /topic, /retry, /undo, /title, /branch, /fork, /compress, and /compact are executable via the gateway router but were missing from gatewayCommandSpecs, making them undiscoverable in Telegram's command menu and /help output. --- internal/channels/telegram/commands.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/channels/telegram/commands.go b/internal/channels/telegram/commands.go index 515c028a6..a545d1f8f 100644 --- a/internal/channels/telegram/commands.go +++ b/internal/channels/telegram/commands.go @@ -26,6 +26,16 @@ var gatewayCommandSpecs = []commandSpec{ {Command: "model", Description: "Show the model selector or switch directly", Usage: "/model [provider/model]"}, {Command: "spawn", Description: "Create a tracked task", Usage: "/spawn [identity=name] [repo=owner/name] [workflow=name] "}, {Command: "cancel", Description: "Cancel a queued or waiting task", Usage: "/cancel [identity=name] <task-id>"}, + {Command: "new", Description: "Start a fresh session, clearing conversation history", Usage: "/new [title]"}, + {Command: "reset", Description: "Alias for /new", Usage: "/reset [title]"}, + {Command: "topic", Description: "List or switch sessions for this channel", Usage: "/topic [off|help|<session-id>]"}, + {Command: "retry", Description: "Replay the last message with a fresh reply", Usage: "/retry"}, + {Command: "undo", Description: "Remove the last N messages from the session", Usage: "/undo [N]"}, + {Command: "title", Description: "Show or set the current session's title", Usage: "/title [name]"}, + {Command: "branch", Description: "Create a child session that inherits the current history", Usage: "/branch [name]"}, + {Command: "fork", Description: "Alias for /branch", Usage: "/fork [name]"}, + {Command: "compress", Description: "Compress the current session's context", Usage: "/compress [here [N]|focus <topic>|--preview|--dry-run]"}, + {Command: "compact", Description: "Alias for /compress", Usage: "/compact [here [N]|focus <topic>|--preview|--dry-run]"}, {Command: "rollback", Description: "Restore a filesystem checkpoint", Usage: "/rollback [number]"}, {Command: "stop", Description: "Terminate a background process", Usage: "/stop <process-name>"}, {Command: "restart", Description: "Reload Archie and its configuration", Usage: "/restart"},