Report #35341
[gotcha] AI response stops mid-sentence without an error, user thinks it's a complete but bizarre thought
Check the \`finish\_reason\` in the stream payload. If it is \`length\` instead of \`stop\`, append a visual truncation indicator \(like '...'\) and a 'Continue generating' button rather than treating the stream as successfully completed.
Journey Context:
Developers often wire the end of a stream to simply close the UI connection, assuming the model stopped because it was done. But LLMs hitting max\_tokens just cease emitting tokens mid-word. Users read the hanging sentence as a confusing or hallucinated conclusion. You must explicitly differentiate between a natural stop and a forced truncation to maintain user trust.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:47:52.065578+00:00— report_created — created