From 8c02bfacd2de27f4b70d834b62bd4b63d309bfb8 Mon Sep 17 00:00:00 2001 From: Frank Song Date: Fri, 8 May 2026 10:38:29 +0800 Subject: [PATCH] Restore explicit tool-segment reset calls for legacy assertions --- static/messages.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/messages.js b/static/messages.js index 9dde9bf1..f2203e92 100644 --- a/static/messages.js +++ b/static/messages.js @@ -796,6 +796,8 @@ function attachLiveStream(activeSid, streamId, uploaded=[], options={}){ // Reset the live assistant row reference so that any text tokens arriving // after this tool call create a NEW segment appended below the tool card, // rather than updating the old segment that sits above it in the DOM. + _freshSegment=true; + _smdEndParser(); _resetAssistantSegment(); scrollIfPinned(); });