Why it matters
Streaming edits keep chats feeling alive, but platforms rate-limit edits — coalesce tokens and finalize cleanly on errors.
Practical steps
- ACK or defer first when the platform requires it.
- Send once, then edit on a throttle (~1/s).
- Buffer tokens; flush by size or time.
- On failure, replace the draft with one clear error line.
- Cap total length to control cost and mobile UX.
Watch out for
- Editing every token triggers 429s.
- Leaving a half-finished sentence on timeout.