Skip to content

QQ Bot sends verbose/repetitive replies after upgrading to 2026.5.2 #76935

Closed as not planned

Description

@BigBear0099

Bug Description

After upgrading from OpenClaw 2026.4.29 to 2026.5.2, the QQ Bot channel plugin sends multiple messages per user input and frequently repeats content from previous replies. The same LLM model (deepseek-v4-flash) produced concise, single-message replies on 2026.4.29, so this is not a model behavior change.

Steps to Reproduce

  1. Install OpenClaw 2026.5.2
  2. Install the external @openclaw/qqbot plugin via openclaw channels add --channel qqbot
  3. Configure a QQ Bot channel with any reasoning model
  4. Send a message to the bot via QQ
  5. Observe that the bot sends 2-4 separate messages in response, often repeating points across messages

Expected Behavior

The bot should send a single, concise reply per user message, consistent with behavior in 2026.4.29 where qqbot was a bundled channel.

Root Cause Analysis

The 2026.5.2 release externalized the QQ Bot channel from a bundled plugin to a separate npm package (@openclaw/qqbot). The external package appears to have different message chunking/streaming logic that splits responses into multiple messages and sometimes resends earlier content.

Key observations:

  • Same model, same prompt → different behavior between versions
  • The issue persists regardless of systemPrompt content (only partially mitigated by strict length constraints)
  • The bundled qqbot in 2026.4.29 did not exhibit this behavior

Workaround

Setting a restrictive systemPrompt on the channel configuration reduces verbosity but does not fully resolve the multi-message/repetition issue:

systemPrompt: "Rules: 1. Reply in no more than 3 sentences 2. Never repeat what was already said 3. Do not proactively expand topics 4. Answer only what was asked, nothing extra"

Environment

  • OpenClaw version: 2026.5.2 (stable channel)
  • @openclaw/qqbot: version bundled with 2026.5.2
  • Install method: user-level npm global install
  • Model: deepseek-v4-flash (reasoning mode enabled)
  • Platform: Linux (VM, bridge network)

Additional Context

The external qqbot plugin also required manual symlink creation (~/.openclaw/extensions/qqbot → ~/.openclaw/npm/node_modules/@openclaw/qqbot) for the gateway to discover it, which may indicate the plugin discovery mechanism for external channels needs improvement as well.

Activity

  1. clawsweeper commented on May 3, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close as superseded: the same QQBot split/repetitive-reply symptom is now tracked by a newer open issue with current-release gateway logs and a clearer source-path diagnosis, while this older report's extra context-bleeding claim is not independently proven as a separate root cause.

    Root-cause cluster
    Relationship: superseded
    Canonical: #95526
    Summary: The newer QQBot issue is the canonical tracker for the remaining split/repetitive markdown-reply behavior; adjacent QQBot duplicate reports remain distinct unless their evidence matches the same chunker path.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Canonical path: Consolidate the remaining QQBot split/repetitive-reply work under the newer current-release tracker, and handle any separate context-bleeding bug only with fresh live evidence.

    So I’m closing this here because the remaining work is already tracked in the canonical issue.

    Review details

    Best possible solution:

    Consolidate the remaining QQBot split/repetitive-reply work under the newer current-release tracker, and handle any separate context-bleeding bug only with fresh live evidence.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence live reproduction was run for the full issue. The split-message part is source-reproducible on current main and supported by the newer current-release logs; the context-bleeding part still needs live evidence.

    Is this the best way to solve the issue?

    Yes. Closing this older report as superseded by #95526 is the best current cleanup because that issue has the current-release logs and source-path framing needed for maintainer action.

    Security review:

    Security review: No patch is under review, and the issue is not a security-sensitive report.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Canonical newer tracker: The newer open QQBot issue documents the same user-visible symptom on v2026.6.9 with gateway-log evidence showing one inbound message followed by multiple independent markdown chunk sends, and it explicitly cross-links this older report as the same symptom.
    • Current main still chunks QQBot markdown replies: Current main builds mdChunks from the formatted markdown result and sends them through the chunk retry loop, matching the canonical issue's reported Sent markdown chunk path. (extensions/qqbot/src/engine/messaging/outbound-deliver.ts:768, 6e5f4d685ec9)
    • Each chunk is sent independently: The shared QQBot chunk send loop iterates each chunk and calls sendTextChunkToTarget for each send attempt, so long markdown is currently delivered as multiple QQ API sends. (extensions/qqbot/src/engine/messaging/outbound-deliver.ts:259, 6e5f4d685ec9)
    • Latest release has the same path: The latest release tag v2026.6.9 points at c645ec4 and still contains the same mdChunks plus Sent markdown chunk path, so the remaining behavior is not already fixed in the latest release. (extensions/qqbot/src/engine/messaging/outbound-deliver.ts:768, c645ec4555c0)
    • Chunker tests protect multiple chunks, not one visible bubble: Adjacent QQBot chunker tests assert long fenced markdown produces more than one chunk under the current byte-safety limit, so the current tested behavior does not resolve the one-visible-reply expectation. (extensions/qqbot/src/engine/messaging/markdown-table-chunking.test.ts:174, 6e5f4d685ec9)
    • Context-bleeding claim is not yet distinct proof: QQBot group history intentionally prepends buffered non-mention group messages when the bot is mentioned, so prior-topic references need live evidence before treating them as a separate session-state root cause rather than part of the same QQBot reply behavior cluster. (extensions/qqbot/src/engine/group/history.ts:260, 6e5f4d685ec9)

    Likely related people:

    • sliverp: Authored the original QQBot channel PR, the QQBot stream config PR, participated in this issue discussion, and authored the merged markdown table chunking PR that added the current chunker tests and touched outbound dispatch. (role: original QQBot introducer and markdown chunker contributor; confidence: high; commits: bf6f506dfae6, 65b781f9ae3a, e7ee1c55b433; files: extensions/qqbot/src/channel.ts, extensions/qqbot/src/types.ts, extensions/qqbot/src/engine/messaging/markdown-table-chunking.ts)
    • cxyhhhhh: Authored the merged PR that added group chat support, C2C streaming, the refactored gateway pipeline, group history, outbound dispatch, and related messaging modules implicated by this report. (role: major QQBot engine contributor; confidence: high; commits: 5ccf179a34a9; files: extensions/qqbot/src/engine/gateway/outbound-dispatch.ts, extensions/qqbot/src/engine/gateway/stages/assembly-stage.ts, extensions/qqbot/src/engine/group/history.ts)
    • samzong: Authored the merged partial tool-progress fix that changed QQBot outbound dispatch, messages API, sender, and outbound-deliver behavior around visible multi-message delivery. (role: recent adjacent QQBot delivery contributor; confidence: medium; commits: f6b40861f7d9; files: extensions/qqbot/src/engine/gateway/outbound-dispatch.ts, extensions/qqbot/src/engine/messaging/outbound-deliver.ts, extensions/qqbot/src/engine/api/messages.ts)

    Codex review notes: model internal, reasoning high; reviewed against 6e5f4d685ec9.

  2. BigBear0099 commented on May 3, 2026

    @BigBear0099
    Author

    Update: Context Bleeding Between Conversations

    Upon further testing, the issue is more severe than initial description suggests. The bot doesn't just send multiple messages — it mixes content from previous conversation turns into the current reply.

    Example

    User asks about topic A → Bot replies about topic A.
    User then asks about topic B → Bot replies about topic B but also re-references topic A in the same response, as if the two contexts were merged.

    This indicates the 2026.5.2 qqbot plugin has a context management bug where previous conversation context bleeds into subsequent replies, not just a message chunking issue.

    Impact

    This severely affects conversation accuracy. Users receive responses that conflate different topics, making the bot unreliable for sequential Q&A.

  3. bxy3045134656 commented on May 15, 2026

    @bxy3045134656

    确认:我们也遇到了完全相同的问题

    同样确认这个 bug 确实存在。

    环境信息:

    • OpenClaw 版本:2026.5.4
    • QQ Bot 插件:@openclaw/qqbot(外置版)
    • 模型:qwen3.6-plus(通义千问)
    • 平台:Windows 11 (x64)
    • 安装方式:npm 全局安装

    现象:
    升级到 2026.5.x(QQ Bot 外置后)的版本后,确实遇到过 Bot 回复拆分成多条消息、内容重复的情况。回退到 2026.4.29 之前版本时没有这个问题。

    跟 Issue 描述完全一致,外置 QQ Bot 包的消息分块/streaming 逻辑确实跟内置版有差异。希望官方能跟进修复 🙏

  4. sliverp commented on May 22, 2026

    @sliverp
    Member

    One reply was split into multiple parts, which is considered to be in line with expectations. Are there any detailed screenshots attached? Let me confirm if it's the kind of repetition.

  5. added
    P2Normal backlog priority with limited blast radius.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Jun 14, 2026
  6. kingpro1985 commented on Jun 17, 2026

    @kingpro1985

    I saw this while looking at custom model/provider setup issues: "QQ Bot sends verbose/repetitive replies after upgrading to 2026.5.2".

    If it helps your testing, CloudGPU exposes a hosted OpenAI-compatible endpoint that can route to GPT, Claude, Gemini, DeepSeek, Kimi and GLM behind one API key.

    Base URL: https://gpuapis.com/api/v1
    Setup guide: https://gpuapis.com/use-cases/deepseek-gemini-claude-api/

    I can share a small test key/credit and a cURL request if you want to verify it in your current client before doing any integration work.

  7. kingpro1985 commented on Jun 17, 2026

    @kingpro1985

    I saw this while looking at custom model/provider setup issues: "QQ Bot sends verbose/repetitive replies after upgrading to 2026.5.2".

    If it helps your testing, CloudGPU exposes a hosted OpenAI-compatible endpoint that can route to GPT, Claude, Gemini, DeepSeek, Kimi and GLM behind one API key.

    Base URL: https://gpuapis.com/api/v1
    Setup guide: https://gpuapis.com/use-cases/deepseek-gemini-claude-api/

    I can share a small test key/credit and a cURL request if you want to verify it in your current client before doing any integration work.

  8. edisonxl commented on Jun 21, 2026

    @edisonxl

    Heads up — 县长老哥 (edisonxl) just opened #95526 covering the same user-visible symptom ("the same content received twice") for v2026.6.9, with gateway-log evidence that the root cause is the QQBot markdown chunker emitting N independent outbound messages (different TraceId / refIdx per chunk), not a delivery-queue race. Linking so the two issues can be triaged together. The 6.9 release shipped fixes #93164 and #93938 for the same chunker behavior on Telegram but did not include the equivalent fix for QQBot.

  9. locked as resolved and limited conversation to collaborators on Jun 25, 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

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions