feat(command): add start alias for new sessions#18781
Closed
AfzalH wants to merge 1 commit into
Closed
Conversation
3ff0112 to
06752dc
Compare
06752dc to
2f5d93b
Compare
Author
|
Closing as obsolete: upstream now has a canonical /start gateway command that intentionally treats Telegram /start as a no-op, so this alias-to-/new PR is no longer appropriate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds
/startas an alias for the existing/newcommand in the central slash-command registry. Because command resolution, gateway dispatch, help text, and native slash-command surfaces derive from this registry,/startnow follows the same fresh-session path as/newand/reset.Why
Telegram commonly presents a Start button during bot cleanup, onboarding, or restarted-chat flows. Mapping
/startto/newlets that button create a clean Hermes chat session with fresh history instead of falling through as a normal prompt. This keeps the Telegram workflow intuitive while preserving the existing/newbehavior across gateway command handling.Validation
scripts/run_tests.sh tests/hermes_cli/test_commands.py tests/gateway/test_command_bypass_active_session.py