fix: fast-path slash commands

This commit is contained in:
Peter Steinberger
2026-01-12 06:10:17 +00:00
parent 53e04968fe
commit 0f257f792a
5 changed files with 266 additions and 7 deletions

View File

@@ -68,6 +68,9 @@ Notes:
- `/restart` is disabled by default; set `commands.restart: true` to enable it.
- `/verbose` is meant for debugging and extra visibility; keep it **off** in normal use.
- `/reasoning` (and `/verbose`) are risky in group settings: they may reveal internal reasoning or tool output you did not intend to expose. Prefer leaving them off, especially in group chats.
- **Fast path:** command-only messages from allowlisted senders are handled immediately (bypass queue + model).
- **Inline shortcuts:** `/help`, `/commands`, `/status` (`/usage`), `/whoami` (`/id`) are also parsed when embedded in text. They run immediately, are stripped before the model sees the message, and the remaining text continues through the normal flow.
- Unauthorized command-only messages are silently ignored.
## Debug overrides