yyqdbngt opened a new pull request, #3411:
URL: https://github.com/apache/rocketmq-dashboard/pull/3411

   ### Summary
   
   `LlmSseSession` guards its state machine so an abandoned SSE response 
cancels its provider task exactly once. The suite covered lifecycle callbacks, 
late attachment and clean terminal completion, but not the send path or 
double-attach/error guards.
   
   ### Changes
   
   - Attaching a second task cancels it and rejects with `An SSE session can 
own only one task`
   - Events are forwarded to the emitter while active; sending after 
cancellation fails without touching the emitter
   - A failing send cancels the session and its task
   - `completeWithError` notifies termination once and forwards the failure
   - `complete` without `beginTerminal` and `cancel` after terminal completion 
are no-ops
   
   ### Testing
   
   `mvn test -Dtest=LlmSseSessionTest` passes: 10 tests, 0 failures (up from 3).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to