Report #40129
[gotcha] Network error during streaming causes already-displayed partial content to disappear because UI state was not persisted
Always persist streamed tokens to durable UI state as they arrive, not just a render buffer. On stream error preserve the partial content and show a connection-lost indicator with a retry-from-here option rather than clearing the display. The retry-from-here pattern sends the partial response back as context and asks the model to continue.
Journey Context:
The natural implementation of streaming is to append tokens to a render buffer and display them. If the stream fails due to network timeout or rate limit or server error, the common behavior is to clear the buffer and show an error state which erases content the user already read. This is devastating for long responses where the user was following along. The fix is to treat streamed tokens as committed state the moment they arrive. On error the partial response should remain visible with an indicator that generation was interrupted. The retry-from-here pattern works well but requires careful prompt engineering to avoid the model restarting from scratch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:49:42.601352+00:00— report_created — created