feat(channels): add shared slash command system

- Add /help, /clear (aliases: /reset, /new), /status commands to ChannelBase
- Commands are handled locally without agent round-trip
- TelegramAdapter skips "Working..." indicator for local commands
- Update docs to reflect new command structure

This provides a consistent command interface across all channel types
(Telegram, WeChat, etc.) with platform-specific extensibility.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-26 03:24:44 +00:00
parent 697898a9fb
commit 9c001ba61e
4 changed files with 130 additions and 53 deletions

View file

@ -217,14 +217,16 @@ Files work with any model — no multimodal support required.
## Slash Commands
Channels support slash commands. Some are handled locally by the adapter:
Channels support slash commands. These are handled locally (no agent round-trip):
- `/start` — Welcome message
- `/help` — List available commands
- `/reset` — Reset your session and start fresh
- `/clear` — Clear your session and start fresh (aliases: `/reset`, `/new`)
- `/status` — Show session info and access policy
All other slash commands (e.g., `/compress`, `/summary`) are forwarded to the agent.
These commands work on all channel types (Telegram, WeChat, etc.).
## Running
```bash