fix(websocket): limit final stream text to inline endings

This commit is contained in:
Xubin Ren
2026-06-10 15:52:39 +08:00
parent 4dd5b62f11
commit 7186039be1
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -1063,7 +1063,7 @@ class WebSocketChannel(BaseChannel):
buffered.append(delta)
full_text = "".join(buffered)
rewritten = self._media.rewrite_local_markdown_images(full_text)
if full_text:
if delta or rewritten != full_text:
body["text"] = rewritten
else:
body = {