ResumeStreamWithStorageResult
Defined in: src/expo/useChatStorage.ts:477
Result of resumeStream on the storage hook.
Mirrors the lib taxonomy onto the storage outcome:
- clean completion →
{ error: null, assistantMessage } - clean but EMPTY replay →
{ error: null, empty: true, assistantMessage }(zero content replayed — the stowed partial is finalized aswasStopped;assistantMessageis null when there was no partial to fall back to) - 410 expired →
{ error: null, expired: true, assistantMessage }(the stowed partial is finalized aswasStopped) - in-stream-interrupted →
{ error: <message>, interrupted: true, assistantMessage }(replayed content finalized aswasStopped) - transient (401/network) →
{ error, statusCode, assistantMessage: null }— nothing persisted, the handle is RETAINED for retry - no resumable stream →
{ error: "No resumable stream", assistantMessage: null }
Properties
assistantMessage
assistantMessage:
StoredMessage|null
Defined in: src/expo/useChatStorage.ts:495
The single reconciled assistant row, or null when nothing was persisted.
data
data:
ApiResponse|null
Defined in: src/expo/useChatStorage.ts:478
empty?
optionalempty:boolean
Defined in: src/expo/useChatStorage.ts:491
True for a clean terminal whose replay carried NO content (a [DONE]-only
replay — buffered frames lost server-side). The stowed partial was
finalized as wasStopped instead of the blank; nothing was persisted when
there was no partial. Callers should message this as an interruption, not
a successful restore.
error
error:
string|null
Defined in: src/expo/useChatStorage.ts:479
expired?
optionalexpired:boolean
Defined in: src/expo/useChatStorage.ts:481
True only for a 410: the buffer was gone and the stowed partial was finalized.
interrupted?
optionalinterrupted:boolean
Defined in: src/expo/useChatStorage.ts:483
True for an in-stream/tool-request terminal: replayed content finalized as stopped.
statusCode?
optionalstatusCode:number
Defined in: src/expo/useChatStorage.ts:493
HTTP status for a transient failure (e.g. 401) — retryable, handle retained.