fix: harden Hermes stream recovery around tool boundaries (#189)

This commit is contained in:
Zhicheng Han
2026-04-24 15:42:42 +02:00
committed by GitHub
parent edd41e6eb7
commit 009acc1c28
6 changed files with 496 additions and 114 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ export function streamRunEvents(
onDone()
}
} catch {
onEvent({ event: 'message', delta: e.data })
// Some SSE adapters may deliver raw text frames. Treat them as
// assistant deltas so they render instead of being silently ignored.
onEvent({ event: 'message.delta', delta: e.data })
}
}