Thinking is fixed per:
https://github.com/discourse/discourse-ai/commit/f6eedf3e0b07e929eb8644b2496a67c80ef8eae0
It is a very complex change, the protocol from anthropic is not easy to follow, you need to carry thinking blocks around.
Let me know how you go.