Skip to content

Internal thinking tags (<think>) are leaked to user #69843

Description

@Davidmoura10

Bug Description

Internal <think> thinking tags are being leaked to the user in Telegram messages instead of being filtered out internally.

Steps to Reproduce

  1. Use OpenClaw with any model that has thinking/reasoning enabled
  2. Wait for the model to generate internal thoughts
  3. The <think> tags and their content appear in the Telegram message to the user

Expected Behavior

Internal thinking tags should be filtered out before the message is sent to the user. The user should not see any <think> or </think> tags or their content.

Environment

  • OpenClaw version: 2026.4.20
  • Channel: Telegram
  • Model: minimax/MiniMax-M2.7 (and other models)

Additional Context

This appears to be a rendering/filtering issue where the thinking tags that should be internal to the model are being exposed to the end user. The issue was present in previous versions and persists after upgrading to 2026.4.20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions