Skip to content

The agent that grows with you

docs: align busy command references

Samuel Odio8c2382460954
diff --git a/skills/autonomous-ai-agents/hermes-agent/references/slash-commands.md b/skills/autonomous-ai-agents/hermes-agent/references/slash-commands.md
index 3e683a502cf..1bd76be3d7e 100644
--- a/skills/autonomous-ai-agents/hermes-agent/references/slash-commands.md
+++ b/skills/autonomous-ai-agents/hermes-agent/references/slash-commands.md
@@ -42,7 +42,7 @@ it. New commands land often; `/help` in-session is always authoritative.
/verbose Cycle tool progress: off → new → all → verbose → log (CLI)
/voice [on|off|tts] Voice mode
/yolo Toggle approval bypass
-/busy [queue|steer|interrupt] What Enter does while working (CLI)
+/busy [queue|steer|interrupt] How messages behave while working (CLI + gateway)
/indicator [style] TUI busy indicator: kaomoji|emoji|unicode|ascii (CLI)
/footer [on|off] Gateway runtime-metadata footer on replies
/skin [name] Change theme (CLI)
diff --git a/tests/gateway/test_gateway_command_dispatch_minimal.py b/tests/gateway/test_gateway_command_dispatch_minimal.py
index 8682b37bd77..3aad22b8448 100644
--- a/tests/gateway/test_gateway_command_dispatch_minimal.py
+++ b/tests/gateway/test_gateway_command_dispatch_minimal.py
@@ -127,28 +127,3 @@ async def test_idle_queue_sends_payload_as_next_turn(command_text):
assert captured["key"] == build_session_key(_make_source())
assert captured["generation"] == 1
assert runner._running_agents == {}
-
-
-async def test_plain_handler_map_drives_idle_and_busy_dispatch():
- """Ordinary handlers have one lookup seam for idle and busy sessions."""
- from hermes_cli.commands import resolve_command
-
- runner, _adapter = _make_runner()
- handler = AsyncMock(side_effect=["idle", "busy"])
- runner._gateway_plain_command_handlers = lambda: {"busy": handler}
- idle_event = _make_event("/busy status")
-
- assert await runner._handle_message(idle_event) == "idle"
-
- busy_event = _make_event("/busy status")
- cmd_def = resolve_command("busy")
- assert cmd_def is not None
- assert await runner._dispatch_busy_slash_command(
- busy_event,
- cmd_def,
- build_session_key(busy_event.source),
- busy_event.source,
- ) == "busy"
- assert handler.await_count == 2
-
diff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.md
index a2069f5ae84..deea03c8619 100644
--- a/website/docs/reference/environment-variables.md
+++ b/website/docs/reference/environment-variables.md
@@ -759,7 +759,7 @@ Advanced per-platform knobs for throttling the outbound message batcher. Most us
| `HERMES_VISION_MAX_CONCURRENCY` | Max concurrent image **encode/resize** bursts across the whole process (override for `auxiliary.vision.max_concurrency`; default: host CPU core count, no ceiling). Bounds only the CPU-bound encode step so a video-frame fan-out can't saturate every core and starve the event loop — the LLM calls stay fully concurrent. Values `< 1` are ignored. |
| `HERMES_RESTART_DRAIN_TIMEOUT` | Gateway: seconds to wait for active runs to drain on `/restart` before forcing the restart (default: `900`). |
| `HERMES_GATEWAY_PLATFORM_CONNECT_TIMEOUT` | Per-platform connect timeout during gateway startup and reconnect (seconds; `0`/negative waits indefinitely). Applies to the connect attempt *and* the Discord adapter's ready-wait, so accounts with many slash commands to sync don't get killed mid-startup. Bridged from `gateway.platform_connect_timeout` in `config.yaml` (default `30`); this env var is the manual override and wins if set explicitly. |
-| `HERMES_GATEWAY_BUSY_INPUT_MODE` | Default gateway busy-input behavior: `queue`, `steer`, or `interrupt`. Can be overridden per chat with `/busy`. |
+| `HERMES_GATEWAY_BUSY_INPUT_MODE` | Default gateway busy-input behavior: `queue`, `steer`, or `interrupt`. Can be overridden for the active profile with `/busy`. |
| `HERMES_GATEWAY_BUSY_ACK_ENABLED` | Whether the gateway sends an acknowledgment message (⚡/⏳/⏩) when a user sends input while the agent is busy (default: `true`). Set to `false` to suppress these messages entirely — the input is still queued/steered/interrupts as normal, only the chat reply is silenced. Bridged from `display.busy_ack_enabled` in `config.yaml`. |
| `HERMES_GATEWAY_NO_SUPERVISE` | Inside the s6-overlay Docker image, opt out of auto-supervision when running `hermes gateway run` and use pre-s6 foreground semantics (no auto-restart, gateway is the container's main process). Truthy values: `1`, `true`, `yes`. Equivalent to the `--no-supervise` CLI flag. No-op outside the s6 image. |
| `HERMES_GATEWAY_BOOTSTRAP_STATE` | Inside the s6-overlay Docker image, declare the gateway's **initial** supervised state on a fresh volume. On a blank volume there is no persisted `gateway_state.json`, so the boot reconciler registers the `gateway-default` slot but leaves it **down** (it only auto-starts when the last recorded state was `running`). Set this to `running` and the first-boot setup hook seeds `gateway_state.json` *before* the reconciler runs, so the gateway comes up on the very first boot. Only the literal value `running` is honoured. First-boot-only: an existing `gateway_state.json` is never overwritten, so a deliberately-stopped gateway stays stopped across restarts. No-op outside the s6 image. |
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md
index 07ae1020d14..e4e71b8eb17 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md
@@ -520,7 +520,7 @@ Graph 事件(Teams 会议、日历、聊天等)的入站变更通知监听
| `HERMES_VISION_DOWNLOAD_TIMEOUT` | 将图片交给视觉模型前下载的超时(秒,默认:`30`)。 |
| `HERMES_RESTART_DRAIN_TIMEOUT` | Gateway:`/restart` 时等待活跃运行排空的秒数,超时后强制重启(默认:`900`)。 |
| `HERMES_GATEWAY_PLATFORM_CONNECT_TIMEOUT` | gateway 启动期间每个平台的连接超时(秒)。 |
-| `HERMES_GATEWAY_BUSY_INPUT_MODE` | 默认 gateway 繁忙输入行为:`queue`、`steer` 或 `interrupt`。可通过 `/busy` 按聊天覆盖。 |
+| `HERMES_GATEWAY_BUSY_INPUT_MODE` | 默认 gateway 繁忙输入行为:`queue`、`steer` 或 `interrupt`。可通过 `/busy` 为当前 profile 覆盖。 |
| `HERMES_GATEWAY_BUSY_ACK_ENABLED` | gateway 是否在用户 agent 繁忙时发送确认消息(⚡/⏳/⏩)(默认:`true`)。设为 `false` 可完全抑制这些消息——输入仍会正常排队/引导/中断,只是聊天回复被静默。从 `config.yaml` 中的 `display.busy_ack_enabled` 桥接。 |
| `HERMES_GATEWAY_NO_SUPERVISE` | 在 s6-overlay Docker 镜像内部运行 `hermes gateway run` 时跳过 s6 自动监管,退回到 pre-s6 前台语义(无自动重启,gateway 作为容器主进程)。真值:`1`、`true`、`yes`。等同于 `--no-supervise` CLI 标志。在 s6 镜像之外为空操作。 |
| `HERMES_GATEWAY_BOOTSTRAP_STATE` | 在 s6-overlay Docker 镜像内部,为**全新卷**声明 gateway 的初始受监管状态。空白卷上不存在持久化的 `gateway_state.json`,因此启动协调器会注册 `gateway-default` 槽位但保持其**关闭**(只有上次记录状态为 `running` 时才会自动启动)。将此变量设为 `running` 后,首次启动 hook 会在协调器运行前预写入 `gateway_state.json`,从而让 gateway 在第一次启动时就自动拉起。仅字面值 `running` 生效。仅影响首次启动:若已有 `gateway_state.json`,绝不会被覆盖,因此被刻意停止的 gateway 在重启后仍保持停止。在 s6 镜像之外为空操作。 |
@@ -675,4 +675,4 @@ fallback_providers:
:::tip
使用 `hermes config set` 设置环境变量——它会自动将其保存到正确的文件(密钥保存到 `.env`,其他所有内容保存到 `config.yaml`)。
-:::
\ No newline at end of file
+:::
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-hermes-agent.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-hermes-agent.md
index 53643659a17..aeb25edee83 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-hermes-agent.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/skills/bundled/autonomous-ai-agents/autonomous-ai-agents-hermes-agent.md
@@ -279,7 +279,7 @@ hermes uninstall Uninstall Hermes
/verbose Cycle: off → new → all → verbose
/voice [on|off|tts] Voice mode
/yolo Toggle approval bypass
-/busy [sub] Control what Enter does while Hermes is working (CLI)
+/busy [sub] Control how messages behave while Hermes works (CLI + gateway)
(subcommands: queue, steer, interrupt, status)
/indicator [style] Pick the TUI busy-indicator style (CLI)
(styles: kaomoji, emoji, unicode, ascii)
@@ -944,4 +944,4 @@ Optional body.
- **消息角色交替** — 永远不要连续出现两条 assistant 或两条 user 消息
- 所有路径使用 `hermes_constants` 中的 `get_hermes_home()`(profile 安全)
- 配置值放入 `config.yaml`,密钥放入 `.env`
-- 新工具需要 `check_fn`,以便仅在满足要求时才显示
\ No newline at end of file
+- 新工具需要 `check_fn`,以便仅在满足要求时才显示