-
-
Notifications
You must be signed in to change notification settings - Fork 69.7k
Thinking content leaks to channel output when Think: off #26466
Copy link
Copy link
Open
Description
Description
When using Claude Opus 4.5 with <thinking_mode>interleaved</thinking_mode> in the system prompt, the thinking/reasoning content is being sent to the channel (Feishu in my case) even when Think: off is set in the session.
Expected Behavior
When Think: off is configured, the gateway should filter out all thinking/reasoning content before sending to the channel. Only the final response should be delivered.
Actual Behavior
Internal thinking content like:
- "让我想想..."
- "用户问的是..."
- "已发送的有 5 条了。让我选一条新的..."
...is being sent to the user along with the actual response.
Environment
- OpenClaw version: 2026.2.19-2 (45d9b20)
- Model: anthropic/claude-opus-4-5-20251101
- Channel: Feishu
- Session status shows:
Think: off
Steps to Reproduce
- Use Claude Opus 4.5 with extended thinking enabled
- Set
Think: offin session - Send a message that triggers internal reasoning
- Observe that thinking content appears in channel output
Possible Cause
The filtering logic for <thinking> blocks may not be applied when the model uses interleaved thinking mode, or the filter runs before the full response is assembled.
Workaround
Currently manually avoiding writing thinking-style content in responses, but this is not ideal.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.