Skip to content

[Bug]: Thinking block leaking into telegram and confuses Agent #107787

Closed

Description

@najef1979-code

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Root cause: OpenClaw 2026.7.1 has a runtime routing bug with MiniMax-M3. When no explicit thinkingDefault is set, the model generates thinking blocks as part of its output. Those blocks are supposed to stay internal and never reach Telegram. In this version, they're leaking through to Telegram as regular text messages.

The chain:

• Arnold had no thinkingDefault explicitly set → system defaulted to the model's natural output mode
• MiniMax-M3 generates thinking blocks at "high" level by default when in that mode
• OpenClaw 2026.7.1 is routing those blocks as visible text to Telegram instead of suppressing them
• Result: you saw Arnold's raw coaching notes instead of polished responses

Steps to reproduce

The chain:

• Arnold had no thinkingDefault explicitly set → system defaulted to the model's natural output mode
• MiniMax-M3 generates thinking blocks at "high" level by default when in that mode
• OpenClaw 2026.7.1 is routing those blocks as visible text to Telegram instead of suppressing them
• Result: you saw Arnold's raw coaching notes instead of polished responses

Expected behavior

no issues

Actual behavior

thinking leaks into telegram, agent sees that and gets confused.

OpenClaw version

2026-7-1

Operating system

ubuntu

Install method

npm

Model

MiniMax-M3

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs

Screenshots, recordings, and evidence

No response

Impact and severity

No response

Additional information

2026.7.1, commit 2d2ddc4

Activity

  1. clawsweeper commented on Jul 15, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 31, 2026, 11:41 PM ET / September 1, 2026, 03:41 UTC.

    Summary
    Keep open for protected security triage. Current main has provider-side handling and tests for MiniMax M3 reasoning, but the report lacks the raw provider stream and Telegram delivery trace needed to determine whether a nonconforming stream bypassed that boundary.

    Reproducibility: no. the report identifies an older version and model but supplies neither a raw provider stream nor an outbound Telegram trace, and current source defaults reasoning presentation off unless explicitly enabled.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Maintainer decision needed

    Question Recommendation
    Does a security owner want to retain this report for trace-based verification of a possible sensitive-output leak despite the current provider-side safeguards? Collect a redacted trace: Keep the issue open until a maintainer or reporter supplies a raw MiniMax stream plus corresponding Telegram delivery record from a current official build.

    Why: The item has a protected security label, while source and tests indicate the reported default path is already guarded but cannot rule out an unstructured or custom-provider stream.

    Next step
    Protected security triage and missing producer-to-delivery evidence make automated repair unsafe; the existing no-new-fix-pr marker also applies.

    Security
    Needs attention: The report concerns possible sensitive-output exposure, but current source evidence does not establish a present breach without a provider and delivery trace.

    Review details

    Best possible solution:

    Obtain a redacted raw MiniMax stream and Telegram outbound trace from a current official release; if reasoning still reaches visible text, repair classification at the provider/agent boundary rather than stripping it in Telegram.

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

    No: the report identifies an older version and model but supplies neither a raw provider stream nor an outbound Telegram trace, and current source defaults reasoning presentation off unless explicitly enabled.

    Is this the best way to solve the issue?

    No: a Telegram-specific suppression would be the wrong layer; current code places MiniMax stream handling and visible-output separation before channel delivery, but trace evidence is needed to identify any remaining bypass.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A Telegram-only filter could conceal the symptom while leaving malformed provider output or agent normalization unclassified; the missing raw stream and outbound trace prevent a safe root-cause conclusion.

    Codex review notes: model internal, reasoning high; reviewed against 09a71580645f.

    Label changes

    Label justifications:

    • P1: A confirmed recurrence would expose internal agent reasoning in a user-facing messaging flow.
    • impact:security: The reported symptom is possible disclosure of internal reasoning to Telegram recipients.
    Evidence reviewed

    Security concerns:

    • [medium] Potential reasoning disclosure remains unverified
      Internal reasoning reaching a chat recipient is security-sensitive; the supplied report lacks the stream and delivery evidence needed to determine whether current normalization was bypassed.
      Confidence: 0.72

    What I checked:

    Likely related people:

    • Vinayaka Jyothi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • DrHack1: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify 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-security-reviewClawSweeper marked this issue as needing security-sensitive review.
    on Jul 16, 2026
  3. openclaw-barnacle commented on Jul 31, 2026

    @openclaw-barnacle

    This bug report has been automatically marked as stale due to inactivity.
    ClawSweeper is checking whether current main already fixes the reported behavior.
    Inactivity alone will not close a bug report.

  4. added
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    and removed
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    on Jul 31, 2026
  5. openclaw-barnacle commented on Aug 16, 2026

    @openclaw-barnacle

    This bug report has been automatically marked as stale due to inactivity.
    ClawSweeper is checking whether current main already fixes the reported behavior.
    Inactivity alone will not close a bug report.

  6. openclaw-barnacle commented on Sep 1, 2026

    @openclaw-barnacle

    This bug report has been automatically marked as stale due to inactivity.
    ClawSweeper is checking whether current main already fixes the reported behavior.
    Inactivity alone will not close a bug report.

  7. added
    staleMarked as stale due to inactivity
    and removed
    staleMarked as stale due to inactivity
    on Sep 1, 2026
  8. najef1979-code commented on Sep 12, 2026

    @najef1979-code
    Author

    I do not seem to have this issue anymore, closing this ticket.

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

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions