RockteMQ-AI commented on issue #4108:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/4108#issuecomment-5579038791

   Thank you for reporting this well-detailed issue.
   
   After code analysis, we have confirmed this is a real bug. The root cause is 
in `OpenAiCompatibleLlmClient.emitStreamEvent` where 
`StringUtils.hasText(token)` (line ~273) returns `false` for whitespace-only 
strings — it requires at least one non-whitespace character. This silently 
drops standalone space, newline, and indentation fragments from the SSE stream.
   
   **Classification:**
   - **Type:** Bug
   - **Confidence:** High
   - **Status:** Confirmed, under investigation for fix
   
   The fix direction you suggested is correct — the condition should preserve 
whitespace-only content fragments rather than filtering them out. We will 
prepare a fix.


-- 
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