fix(im): address stream display review feedback

Wait for agent complete without a short timeout, unify Telegram stream
parse mode, remove obsolete FinalAnswer handling, isolate per-section
newline tracking, add lifecycle tests, and update IM streaming docs.
This commit is contained in:
wizardchen
2026-06-23 23:45:47 +08:00
committed by lyingbug
parent c3b036cb00
commit da3d65c6f2
8 changed files with 284 additions and 84 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ func (c *LongConnClient) connectAndRun(ctx context.Context) error {
_ = conn.Close()
// NOTE: streamBufs is intentionally NOT cleared on reconnect.
// Active streams survive reconnections — the WeCom replace-based
// protocol means the next SendStreamChunk will resend the full
// protocol means the next UpdateStreamContent will resend the full
// accumulated content on the new connection. EndStream always
// cleans up the buffer, so there is no memory leak.
}()