feat(channels): add crash recovery and gateway mode support

- Add session persistence to SessionRouter for crash recovery
- Add loadSession method to AcpBridge for restoring sessions
- Add ChannelBaseOptions to support external router injection
- Refactor start.ts to support both standalone and gateway modes
- Extract config utilities into separate module

This enables channels to recover sessions after bridge crashes and
supports running multiple channels under a gateway process.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-26 02:55:18 +00:00
parent f6ae769736
commit 1a605ec973
11 changed files with 567 additions and 161 deletions

View file

@ -57,7 +57,11 @@ Or add it to a `.env` file that gets sourced before running.
## Running
```bash
# Start only the Telegram channel
qwen channel start my-telegram
# Or start all configured channels together
qwen channel start
```
Then open your bot in Telegram and send a message. You should see "Working..." appear immediately, followed by the agent's response.