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

Head commit for run:
71ba3bd80b97f15e4be12ad6b96e551db1602fca / yyqdbngt <[email protected]>
fix(ai): keep the optimistic question when the run was never admitted

`finishStream` cleared the optimistic user bubble unconditionally once the
end-of-run timeline refetch succeeded. When the POST failed before the server
admitted the run - a refused connection, or a 409 because another tab holds the
run - no `run_started` frame ever arrived and nothing was persisted, so the
refetched transcript had no user row: the question disappeared from the screen
and an error banner was all that was left.

The hook now records whether the run behind the in-flight stream was admitted
(the `run_started` frame, or the run id `attach` was given) and keeps the
optimistic bubble when the stream failed without it. An admitted run still drops
it, so the persisted row is never painted twice.

Regression coverage in `useAgentRun.test.ts`: the never-admitted case fails on
the unmodified tree with "expected null to be '这个问题还会在吗'", plus a case
pinning that an admitted run still clears the bubble.

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

With regards,
GitHub Actions via GitBox

Reply via email to