Added slash command handling

This commit is contained in:
ARIA committed 2026-08-21 10:18:48 +02:00
1 parent 10e9565e2e
commit 1bcadcf950
16 files changed
+567 -21

No files matched your search

+9
View File
@@ -37,6 +37,10 @@ without the app (critical for verifying frame shapes early).
carry the new `thread_id`; no-op with an existing `thread_id`, for slash
commands, or for media-only sends; the LLM upgrade renames the thread
(`channel.renamed`).
- **Slash catalog:** `commands.catalog` request → response with the
gateway-available `COMMAND_REGISTRY` subset + plugin commands (each entry
`name`/`description`/`args_hint`/`category`/`aliases`); `cli_only` commands
excluded; response `id` matches the request `id`.
- **No `~/.hermes` writes in tests** — use the `_isolate_hermes_home` fixture
pattern (temp `HERMES_HOME`). Profile tests also mock `Path.home()`.
@@ -122,6 +126,11 @@ adb logcat -d > /tmp/logcat.txt
flat lane → a new topic appears (derived name), the app jumps into it, the
reply streams there, and the topic is renamed to the AI's title a moment
later. Slash commands / media-only sends stay in the flat lane.
14. **Slash drawer:** type `/` in the composer → the drawer rolls up over the
input with the gateway catalog; keep typing → fuzzy filtering (unrelated
entries drop out); tap a row → the command is sent and the drawer closes;
type an unknown command → the drawer closes (the raw text can still be
sent; hermes answers with its unknown-command reply).
## 13.5 Debugging tips