Skip to content

feat: remove the Telegram /reset command - #284

Merged
popodidi merged 1 commit into
mainfrom
axe/task-2463--work
Dec 2, 2026
Merged

popodidi merged 1 commit into
mainfrom
axe/task-2463--work

Conversation

@popodidi

@popodidi popodidi commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Axe task 2463. Owner msg #6598: "we don't need /reset command. sessions are meaningless to users in axe context".

Change

  • crates/axe-telegram/src/telegram.rs: reset leaves OWNER_COMMANDS (13 -> 12), so setMyCommands stops publishing it to the BotFather menu, and its owner_command arm is gone. A /reset message no longer parses as an owner command. Like any unknown /text, it is stored as a plain message and wakes the bot. No command reply and no bot change.
  • docs/user/primitives/bot.md: the Telegram-mirrored controls are pause/resume/stop. axe bot reset NAME is listed separately as operator only.
  • Tests (crates/axe/tests/telegram.rs):
    • The command-routing test and the Telegram/API twin test drop /reset.
    • The menu test lists reset as retired.
    • The menu test now also asserts that an owner /reset is a plain stored message that wakes the bot, with no reply and no reset event.

Kept: the operator path

axe bot reset (CLI, crates/axe/src/cli.rs) -> POST /api/bots/NAME/reset (crates/axe-server/src/server.rs) -> bot_change(.., "reset") (crates/axe-core/src/bot.rs) is unchanged. It does not depend on Telegram, and operators still need it to clear a stuck or poisoned bot session. crates/axe/tests/bots.rs keeps covering it.

Companion Harvis docs PR: popodidi/harvis#2840 (telegram skill and axe-bots runbook).

🤖 Generated with Claude Code

Sessions mean nothing to pilots (owner msg #6598). /reset leaves the
owner command list and the BotFather menu; a /reset message is now a
plain message to the bot, like any unknown command. The operator path
(axe bot reset, POST /api/bots/NAME/reset) stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@popodidi
popodidi merged commit 87b78f8 into main Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant