Anthropic Claude3.7 sonnet thinking mode with tool use is unstable #11535

Closed
opened 2026-02-21 19:00:54 -05:00 by yindo · 0 comments
Owner

Originally created by @fdb02983rhy on GitHub (Mar 18, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.1

Cloud or Self Hosted

Cloud

Steps to reproduce

Image Image

✔️ Expected Behavior

The message history should maintain:
Assistant message with tool_use
User message with tool_result

But instead it's creating:
Assistant message with thinking + tool_use + text (duplicating the content)
User message with tool_result

Actual Behavior

No response

Originally created by @fdb02983rhy on GitHub (Mar 18, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.1 ### Cloud or Self Hosted Cloud ### Steps to reproduce <img width="584" alt="Image" src="https://github.com/user-attachments/assets/dd2929a4-c39e-49b7-94d0-f7b1c23b4516" /> <img width="693" alt="Image" src="https://github.com/user-attachments/assets/da047a87-0045-4cef-99f4-575e019a8be8" /> ### ✔️ Expected Behavior The message history should maintain: Assistant message with tool_use User message with tool_result But instead it's creating: Assistant message with thinking + tool_use + text (duplicating the content) User message with tool_result ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:00:54 -05:00
yindo closed this issue 2026-02-21 19:00:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11535