Skip to content

Commit a43c647

Browse files
committed
fix(validation): add escape annotation
1 parent f09cd98 commit a43c647

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/hooks/stream/turn-model-serialize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export function contentBlocksToModel(blocks: ContentBlock[]): TurnModel {
214214
type,
215215
payload,
216216
...(scope ? { scope } : {}),
217+
// double-cast-allowed: synthetic replay envelope rebuilt from ContentBlocks for reduceEvent only; payloads are intentionally the minimal shape the reducer reads (no executor/mode), never provider-parsed or re-emitted on the wire
217218
}) as unknown as PersistedStreamEventEnvelope
218219

219220
const scopeFor = (block: ContentBlock): Record<string, unknown> | undefined =>

0 commit comments

Comments
 (0)