[Bug] BotChannel /bind 会话路由在重启后漂移
Open
Nobody has claimed this yet.
priority: P2
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
问题描述
BotChannel /bind 绑定的会话路由在服务重启后漂移到错误会话——绑定关系未正确持久化或恢复时解析错位。
复现步骤
- 通过 Bot 通道 /bind 绑定当前会话;
- 验证绑定语义正常(同会话内 Bot 消息正确路由);
- 重启 ZCode 后由 Bot 发消息 → 消息路由到非绑定会话。
期望行为
/bind 绑定关系持久化并在重启后恢复到原会话;原会话不存在时明确报错而非漂移。
环境
ZCode 3.11.2 · Windows 10 26100 · BotChannel(飞书/微信通道)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the BotChannel /bind flow and how its session relationship is persisted and restored across a ZCode restart. Reproduce the issue with the listed steps using a Feishu or WeChat channel, then verify that messages return to the original session and that a missing session produces an explicit error instead of routing elsewhere.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100