Files
open-webui/backend/open_webui/utils
Classic298andClaude 87bed3f0b3 fix: stream post-tool-call thinking into the Thoughts section (#29052)
After a tool call, the model's thinking was streamed into the chat as if it were the main response, and only jumped into the collapsed Thoughts section once the turn finished. Every further tool call repeated it.

Each tool round appended an empty placeholder message item to the output and sent it to the browser, then dropped it again from the copy used to offset the next round's item indices. The browser therefore held one item more than the backend counted, so the first thinking chunk of the next round was written into that leftover message item and rendered as normal text until the finished output replaced it.

The placeholder is removed. It was never needed: a message item is already created when actual content arrives, and dropping it also stops an empty assistant message being sent back to the model on the follow-up request.

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-27 16:56:00 -04:00
..
2026-06-29 11:56:00 -05:00
2026-08-24 18:29:36 -04:00
2026-08-13 21:02:17 -06:00
2026-08-25 16:04:43 -04:00
2026-07-31 17:30:47 -04:00
2026-07-23 02:54:56 -04:00
2026-07-26 21:12:14 -04:00
2026-07-31 17:41:14 -04:00
2026-07-31 17:41:14 -04:00
2026-08-23 13:36:53 -04:00
2026-07-23 21:29:33 -04:00
2026-08-25 15:00:53 -04:00
…
2026-08-24 18:38:29 -04:00
2026-08-10 19:28:21 -06:00
2026-08-25 16:53:53 -04:00
2026-07-26 23:09:22 -04:00
2026-08-13 00:07:31 -06:00
2026-07-27 19:39:36 -04:00
2026-08-25 16:53:53 -04:00
2026-08-16 22:56:19 -07:00
2026-08-17 00:57:57 -07:00
2026-08-24 18:29:36 -04:00
2026-08-25 16:53:53 -04:00
…
2026-08-19 22:48:32 -07:00
2026-08-25 16:53:53 -04:00
2026-08-25 16:53:53 -04:00
2026-07-27 19:39:36 -04:00
2026-07-31 17:41:14 -04:00