Commit Graph

3 Commits (de2dfd3034a7b506fa269910401bbdcbd4efc71d)

Author SHA1 Message Date
fhgffy 562127c654
fix(client): accept optional spaces in SSE event fields (#3975) 2026-10-08 01:28:38 +08:00
quan020406 a7fc9e13da
fix(client): accumulate multiline SSE data (#2122)
* fix(client): accumulate multiline SSE data

* fix(client): skip empty SSE data frames and clear lint findings

Accumulating data lines turned a bare "data:" frame into an empty JSON
payload that aborted the stream; the old parser skipped it. Skip frames
whose joined payload is empty. Also use strings.TrimPrefix in
appendSSEDataLine and check Fprint results / drop unused params in the
new streaming tests.

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
Co-authored-by: lyingbug <xiayula2014@gmail.com>
2026-09-25 22:23:38 +08:00
coconut-yc 238297e2c5 fix(client): harden chat and agent SSE reliability 2026-07-03 00:13:41 +08:00