zai-org / zai-org/feedback

[Bug] BotChannel /bind 会话路由在重启后漂移

Open
#605 1 comment 0 reactions 0 assignees View on GitHub

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 绑定的会话路由在服务重启后漂移到错误会话——绑定关系未正确持久化或恢复时解析错位。

复现步骤

  1. 通过 Bot 通道 /bind 绑定当前会话;
  2. 验证绑定语义正常(同会话内 Bot 消息正确路由);
  3. 重启 ZCode 后由 Bot 发消息 → 消息路由到非绑定会话。

期望行为

/bind 绑定关系持久化并在重启后恢复到原会话;原会话不存在时明确报错而非漂移。

环境

ZCode 3.11.2 · Windows 10 26100 · BotChannel(飞书/微信通道)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.