KQ-744 · STREAM/RETRY
Stream Retry
A stream that can fail mid-answer and pick itself back up. When the host marks it failed the tail frays — the last characters step down in opacity, five dots cascade in after them and an inline Retry control arrives on snap; nothing bounces, because a failure is not an event to celebrate. Retry is a button reached by Tab, and when the stream reopens the seam heals with a hairline that brightens and fades on a slow tween so the reader can see where the answer was joined.
KQ-744 · STREAM/RETRY
Answer from Fernworks Model 3
No answer yet.
Idle · press play
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/stream-retry
Props
- text
- string
- default —
- The answer arrived so far. Append-only across a retry.
- streaming
- boolean
- default false
- The stream is open and words are arriving.
- failed
- boolean
- default false
- The stream dropped: the tail frays and Retry shows.
- error
- string
- default "Connection dropped"
- The short line beside the Retry control.
- onRetry
- () => void
- default —
- Fires from the Retry control. The host resumes from the seam.
- retryLabel
- string
- default "Retry"
- Copy on the Retry control.
- label
- string
- default —
- Names the answer region for assistive technology.
- model
- string
- default —
- The model's name for the header chip.
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | The answer arrived so far. Append-only across a retry. |
| streaming | boolean | false | The stream is open and words are arriving. |
| failed | boolean | false | The stream dropped: the tail frays and Retry shows. |
| error | string | "Connection dropped" | The short line beside the Retry control. |
| onRetry | () => void | — | Fires from the Retry control. The host resumes from the seam. |
| retryLabel | string | "Retry" | Copy on the Retry control. |
| label | string | — | Names the answer region for assistive technology. |
| model | string | — | The model's name for the header chip. |