feat(cli): add /busy slash command for busy input mode#11782
Closed
alexg0bot wants to merge 1 commit into
Closed
Conversation
19 tasks
Contributor
|
Merged via #15382 — your commit was cherry-picked onto current main with your authorship preserved in git log. Thanks @alexg0bot! |
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.
What does this PR do?
Adds a dedicated
/busyCLI slash command for controlling what Enter does while Hermes is already working.This makes the existing busy-input behavior discoverable and controllable at runtime without editing config files by hand. Users can inspect the current mode, switch Enter to queue the next turn, or switch back to interrupt mode directly from the CLI.
This approach fits the current CLI architecture because it uses the existing slash-command registry, persists through the existing
save_config_value()path, and keeps the feature single-purpose instead of burying it in a broader settings flow.Related Issue
Fixes #6898
Type of Change
Changes Made
cli.py: add/busyhandling withqueue,interrupt, andstatusmodeshermes_cli/commands.py: register/busyin the command registry with documented subcommandstests/cli/test_busy_input_mode_command.py: add focused coverage for handler behavior and registry metadatawebsite/docs/user-guide/cli.md: document runtime usage for/busyHow to Test
/busy statusto confirm the current mode is reported./busy queue, then/busy status, and confirm the mode switches to queue and reports the queued-input behavior./busy interrupt, then/busy nonsense, and confirm interrupt mode is restored and invalid input shows usage help.pytest -n0 tests/cli/test_busy_input_mode_command.py -q.pytest -n0 tests/hermes_cli/test_commands.py -q.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AScreenshots / Logs
pytest -n0 tests/cli/test_busy_input_mode_command.py -q→6 passedpytest -n0 tests/hermes_cli/test_commands.py -q→108 passed