The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/yy-ai-eof has failed.
Run started by GitHub user yyqdbngt (triggered by yyqdbngt).

Head commit for run:
8b4b7984a4be4c216aad43d089f752259ba65d60 / yyqdbngt <[email protected]>
fix(ai): reject a run stream that ends before the terminal done frame

`consumeEventStream` returned as soon as `reader.read()` reported `done`, so a 
body
that closed without the server's terminal `event: done` looked like a completed 
run
for both `openRunStream` and `attachRunStream`: the promise resolved, the UI 
stopped
streaming and the rest of the answer was lost without any error being surfaced.

The reader now throws a structured `AiStreamError` (`llm.stream.premature_eof`) 
when
the body ends before the terminal frame, while keeping every frame that did 
arrive.
Normal `done` frames, `error` frames, explicit aborts, the idle watchdog and 
reader
cancellation are unchanged.

Regression coverage in `web/src/api/ai.test.ts`: two cases (open and attach) 
fail on
the unmodified tree with "promise resolved undefined instead of rejecting", 
plus one
case pinning a `done` frame that arrives without a trailing blank line.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/36960614772

With regards,
GitHub Actions via GitBox

Reply via email to