You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2026/10/02 03:39:19 UTC
[GH] (rocketmq-dashboard/fix/yy-ai-eof): Workflow run "CI" failed!
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 <bt...@gmail.com>
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