Report #58579
[gotcha] AI returns empty or whitespace-only response and the UI shows nothing — invisible failure
Always render an explicit state for every completed API call, even when content is empty. If the response has no content, check finish\_reason: if 'content\_filter', show 'Response filtered due to safety policy'; if 'stop' with empty content, show 'No response generated' with a retry option. Never leave the response area blank after a completed call.
Journey Context:
When an AI model returns an empty string or whitespace-only content — often due to content filtering, edge cases in generation, or overly aggressive system prompts — the UI renders nothing. The user sees a blank response area and cannot distinguish between: the AI is still loading, the AI chose not to respond, a content filter blocked the output, or something broke. This is especially common with content filters that silently suppress output without throwing an error. The finish\_reason field disambiguates: 'content\_filter' means safety filtering blocked the response, 'stop' with empty content means the model chose to say nothing. Without checking this field and rendering an explicit state, the user is left guessing. Teams often discover this only after users report 'the AI is stuck' when it actually returned a filtered empty response.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:48:56.894876+00:00— report_created — created