diff options
| author | Adam Malczewski <[email protected]> | 2026-06-25 10:52:13 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-25 10:52:13 +0900 |
| commit | 17ce47987e673b6618454d033885b17b2a01912e (patch) | |
| tree | 2bd7259d51725eeadc20d410667d529f66834197 /src/core/chunks/selectors.ts | |
| parent | eff289b2b4cc41db706f3c3274a089d46012be87 (diff) | |
| download | dispatch-web-17ce47987e673b6618454d033885b17b2a01912e.tar.gz dispatch-web-17ce47987e673b6618454d033885b17b2a01912e.zip | |
feat(core): chunks retry-banner, wire conformance, ws logic, history adapter
- core/chunks: add retry-banner view-model (+test), update reducer/selectors/types
- core/wire: update conformance checks (+test)
- adapters/ws: update reconnect logic (+tests)
- adapters/history: new client-side routing adapter (history + popstate wrapper)
Diffstat (limited to 'src/core/chunks/selectors.ts')
| -rw-r--r-- | src/core/chunks/selectors.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/chunks/selectors.ts b/src/core/chunks/selectors.ts index 6929de2..3d91559 100644 --- a/src/core/chunks/selectors.ts +++ b/src/core/chunks/selectors.ts @@ -1,4 +1,4 @@ -import type { ChatMessage, Chunk } from "@dispatch/wire"; +import type { ChatMessage, Chunk, TurnProviderRetryEvent } from "@dispatch/wire"; import type { RenderedChunk, TranscriptState } from "./types"; /** @@ -33,6 +33,15 @@ export function selectGenerating(state: TranscriptState): boolean { } /** + * The latest `provider-retry` event for the current turn, or `null` when no retry + * is pending. Drives the transient yellow "retrying…" warning banner (rendered + * by ChatView). Never persisted — see `TranscriptState.providerRetry`. + */ +export function selectProviderRetry(state: TranscriptState): TurnProviderRetryEvent | null { + return state.providerRetry; +} + +/** * Group consecutive same-role rendered chunks into ChatMessages. */ export function selectMessages(state: TranscriptState): readonly ChatMessage[] { |
