From a563d31b1eee002117eef7bf42a831de7cf68cac Mon Sep 17 00:00:00 2001 From: weichen Date: Sun, 11 Oct 2026 11:36:33 +0000 Subject: [PATCH] Add surface.updated to the StreamEventType union in the TS authority Why: U4 frontend store switches on the event type; the TS union mirrors the Go EvSurfaceUpdated constant (Core #25) and must include it or the frontend typecheck rejects the case. Evidence: go test unchanged (TS-only); frontend tsc in the Dev workspace after mirror sync. Impact: Type-only additive. Refs: Core PR #25; Dev task feature/generative-ui-u4 --- ts/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/types.ts b/ts/types.ts index 23eba5a..6149691 100644 --- a/ts/types.ts +++ b/ts/types.ts @@ -98,7 +98,8 @@ export type StreamEventType = | 'agent.spawn' | 'agent.progress' | 'agent.result' | 'artifact.created' | 'artifact.updated' | 'run.completed' | 'run.failed' | 'error' - | 'card.created' | 'card.updated' | 'card.status' | 'card.resolved'; + | 'card.created' | 'card.updated' | 'card.status' | 'card.resolved' + | 'surface.updated'; export interface StreamEvent

{ seq: number; runId?: ID; conversationId: ID; ts: string; v: number;