fix(gateway): expose busy command outside cli#23660
Open
LeonSGP43 wants to merge 1 commit into
Open
Conversation
Collaborator
This was referenced May 23, 2026
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?
Makes
/busyavailable on gateway platforms so Telegram/Discord/Slack users can inspect or change busy-input behavior without switching back to the local CLI.Related Issue
Fixes #18362
Type of Change
Changes Made
/Users/leongong/Desktop/LeonProjects/worktrees/hermes-agent/hermes-18362-gateway-busy-command/hermes_cli/commands.pyso/busyis advertised to gateway clients/Users/leongong/Desktop/LeonProjects/worktrees/hermes-agent/hermes-18362-gateway-busy-command/gateway/run.py::_handle_busy_command()to read, update, and persistdisplay.busy_input_mode/busyto run even while an agent is active, without interrupting that run/Users/leongong/Desktop/LeonProjects/worktrees/hermes-agent/hermes-18362-gateway-busy-command/tests/gateway/test_busy_session_ack.pycovering config writes and mid-turn handlingHow to Test
uv run --frozen --extra dev pytest -q -o addopts='' tests/gateway/test_busy_session_ack.py tests/cli/test_busy_input_mode_command.pyuv run --frozen ruff check hermes_cli/commands.py gateway/run.py tests/gateway/test_busy_session_ack.py tests/cli/test_busy_input_mode_command.py/busy, then/busy queueor/busy steer, and confirm the mode changes without interrupting an active runChecklist
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/AFor New Skills
hermes --toolsets skills -q "Use the X skill to do Y"Screenshots / Logs
uv run --frozen --extra dev pytest -q -o addopts='' tests/gateway/test_busy_session_ack.py tests/cli/test_busy_input_mode_command.py->25 passeduv run --frozen ruff check hermes_cli/commands.py gateway/run.py tests/gateway/test_busy_session_ack.py tests/cli/test_busy_input_mode_command.py->All checks passed!