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

@ -44,7 +44,11 @@ Note: WeChat channels do not use a `token` field — credentials come from the Q
### 3. Start the channel
```bash
# Start only the WeChat channel
qwen channel start my-weixin
# Or start all configured channels together
qwen channel start
```
Open WeChat and send a message to the bot. You should see a typing indicator ("...") while the agent processes, followed by the response.