diff options
| author | Adam Malczewski <[email protected]> | 2026-06-12 15:08:24 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-12 15:08:24 +0900 |
| commit | 94da06025d4edd23cb7eda1deb2738070e08cd30 (patch) | |
| tree | 8f58526992d24aa275adc28ac92423aca8f2b3cc /src/core/wire/conformance.ts | |
| parent | 1c01427631347499bcaf4187c4a4c1f8afc3d23f (diff) | |
| download | dispatch-web-94da06025d4edd23cb7eda1deb2738070e08cd30.tar.gz dispatch-web-94da06025d4edd23cb7eda1deb2738070e08cd30.zip | |
feat(chat): multi-client live view — watch in-flight turns + user prompt on stream
- subscribe every open conversation on load + WS reconnect (resync), unsubscribe on tab close
- derive a stream-based 'generating' state for watchers (Composer running indicator)
- fold the user-message turn event so watchers render the prompt mid-turn (de-dup vs sender's optimistic echo)
- re-pin [email protected] / [email protected]; re-mirror contracts; add user-message to the exhaustiveness guard
Diffstat (limited to 'src/core/wire/conformance.ts')
| -rw-r--r-- | src/core/wire/conformance.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/wire/conformance.ts b/src/core/wire/conformance.ts index d89772e..13be78c 100644 --- a/src/core/wire/conformance.ts +++ b/src/core/wire/conformance.ts @@ -12,6 +12,8 @@ export function assertAgentEventExhaustive(event: AgentEvent): string { return "status"; case "turn-start": return "turn-start"; + case "user-message": + return "user-message"; case "text-delta": return "text-delta"; case "reasoning-delta": @@ -96,6 +98,10 @@ export function assertWsClientMessageExhaustive(msg: WsClientMessage): string { return "invoke"; case "chat.send": return "chat.send"; + case "chat.subscribe": + return "chat.subscribe"; + case "chat.unsubscribe": + return "chat.unsubscribe"; default: return msg satisfies never; } |
