mirror of
https://github.com/katanemo/plano.git
synced 2026-06-20 15:28:07 +02:00
- The synthetic message_start path only fired when the very first
observed event was a Result. If the CLI ever emitted (say) a bare
ContentBlockStart first, we'd ship malformed Anthropic SSE without a
preceding message_start. Trigger the synthesis on any first
stream-advancing event that isn't a MessageStart.
- Make every send-to-client branch consistent: break out of the loop
when the receiver has gone away (mpsc send returned Err), so we don't
keep generating events for a vanished client.
- Replace serde_json::to_string(...).unwrap() in the streaming error
path with the same fallback json_response already uses ("{}" on
serialize failure). No more panic surface in the streaming worker.
- Drop the dead `_touch_stream_module` placeholder and its unused
`use futures::stream` import.
|
||
|---|---|---|
| .. | ||
| bin | ||
| handlers | ||
| metrics | ||
| router | ||
| session_cache | ||
| signals | ||
| state | ||
| tracing | ||
| app_state.rs | ||
| lib.rs | ||
| main.rs | ||
| streaming.rs | ||