Report #45541
[gotcha] Content safety filter silently truncates streaming responses mid-generation
Handle content\_filter finish reason in streaming responses explicitly. When detected, replace the partial response with a clear safety filter message. Do not offer a simple retry with the same input — it will produce the identical filter result. Offer rephrasing or escalation instead.
Journey Context:
Content safety filters can trigger mid-generation, causing the stream to terminate abruptly. The partial response looks like the AI simply finished its thought. Unlike finish\_reason 'length' where retrying with continuation makes sense, content filter truncation will reproduce identically on retry with the same input. The double UX failure: users see incomplete information AND have no idea why, leading to confused retries that produce the same result. You must distinguish between 'ran out of tokens' \(retryable with continuation\) and 'content was filtered' \(not retryable with same input\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:54:43.264538+00:00— report_created — created