Report #74390
[gotcha] AI response stream abruptly stops without UI feedback due to content filters
Catch the \`finish\_reason="content\_filter"\` in the stream termination event and render a specific, graceful UI state explaining the filter, rather than leaving a hanging cursor or implying the response ended naturally.
Journey Context:
When a prompt triggers a safety refusal mid-stream, the API simply closes the connection with a specific finish reason. If the frontend only listens for the standard stream end event, it assumes the AI finished its thought. The user sees a half-sentence and a blinking cursor, thinking the AI broke or timed out. Handling the content filter finish reason explicitly prevents this uncanny 'stroke' effect.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:27:47.695664+00:00— report_created — created