Skip to content

fix(gateway): hide required-arg commands from Telegram menu - #19400

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a
May 3, 2026
Merged

fix(gateway): hide required-arg commands from Telegram menu#19400
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a

Conversation

@teknium1

@teknium1 teknium1 commented May 3, 2026

Copy link
Copy Markdown
Contributor

Salvage of #19343 by @mrbob-git onto current main.

Summary

Telegram BotCommand menu selections send only the bare /command. Commands like /background, /queue, and /steer require a prompt argument, so listing them in the native Telegram menu lets users execute them incomplete. Skip commands whose args_hint starts with < from the menu; they remain dispatchable if typed manually.

Changes

  • hermes_cli/commands.py: _requires_argument() helper + filter in telegram_bot_commands() (+11/-2)
  • tests: regression covering /background, /queue, /steer exclusion
  • scripts/release.py: AUTHOR_MAP entry for @mrbob-git

Validation

scripts/run_tests.sh tests/hermes_cli/test_commands.py → 141 passed

Original PR: #19343

@teknium1
teknium1 merged commit 86e64c1 into main May 3, 2026
9 of 10 checks passed
@teknium1
teknium1 deleted the hermes/hermes-8c54fd4a branch May 3, 2026 22:29
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants