Skip to content

daemon: bot self-comment content echo loop — duplicate delivery in active session (b-c#1563, 7x burst) | daemon: bot 自评论文案回声循环——运行中会话重复投递(b-c#1563 七连发) #14

Open

Description

@ranxianglei

🤖 Powered by ework

来源: dog/ework-aio#3(旧 Gitea http://[internal-ip]:3300/dog/ework-aio/issues/3)分析 b-c#1563「不停重发消息」时发现。

现象

b-c#1563 于 2026-09-28 12:24–12:27Z(本地 20:24–20:27)连续产生 7 条 bot 重复回复,内容均在回应同一条用户评论(ranxianglei 12:44 前 的评论,web comment 17349;bot 回复自称「同一条评论再次收到/第5次,字节级相同」)。用户报告:ranxianglei/billion-context#1563

证据链(engine journal + DB)

  • 12:00:40 spawn pid=3491833 处理该 issue 的唯一一条排队消息(messages 表 12:24 前后只有 1 行,id 4535,created 11:45:46Z);
  • 12:24:37–12:26:32 engine 每收到一条 webhook: type=comment_created ref=...#1563 后紧跟下一条 bot 回复——这 7 条 webhook 对应的正是 bot 自己刚发的回复回流;
  • 全程没有出现「ignoring own comment」类日志(宿主桥同类路径有此过滤并有日志);
  • 12:27:12 pid 3491833 completed(整 run 26 分钟)。

根因

bot 自己发的评论经 webhook 回流引擎后,「转发给运行中会话」的路径未识别/未过滤自己的评论,把刚发出的回复当作新输入追加给正在跑的会话,agent 逐条再答——自回声循环,直到 run 结束。重复投递不产生新 messages 行,发生在 append-to-running-session 通道。

建议修法

  1. comment_created 唤醒路径上对自己的评论(按 bot 登录名/author kind)统一跳过,并打日志(对齐宿主桥 ignoring own comment);
  2. 向运行中会话追加内容前做去重(同 issue 同内容/同 comment id 短窗口内只投一次);
  3. 回归防线:web 层已有 3 分钟同正文 429 守卫,建议 engine 侧也不要依赖它兜底。

影响面

凡「会话在跑期间 bot 有新回复」的 issue 都可能触发;高频长会话(如 b-c)最易复现。9-28 之外未全量排查历史。


Mirrored from ework issue #14

Activity

  1. changed the title [-]daemon: bot 自评论文案回声循环——运行中会话重复投递(b-c#1563 七连发)[/-] [+]daemon: bot self-comment content echo loop — duplicate delivery in active session (b-c#1563, 7x burst) | daemon: bot 自评论文案回声循环——运行中会话重复投递(b-c#1563 七连发)[/+] on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions