The live log parser handles one data line per SSE event. SSE allows multiple data: lines per event, which should be joined before JSON parsing. Improve stream_job_logs so it handles multiline event payloads and final buffered events correctly.
Acceptance criteria:
- Multiple data: lines in one SSE event are accumulated according to SSE semantics before parsing.
- The parser handles events split across chunks.
- Malformed events are ignored without breaking the stream.
- Tests cover multiline stdout/stderr events and terminal events.
The live log parser handles one data line per SSE event. SSE allows multiple data: lines per event, which should be joined before JSON parsing. Improve stream_job_logs so it handles multiline event payloads and final buffered events correctly.
Acceptance criteria: