fix: harden Hermes stream recovery around tool boundaries (#189)
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user