fix(core): degrade zodShapeStream parse errors to console.warn instead of crashing stream

DE
5mo ago
+4-2

Fixes #3510

Changes

  • Changed \controller.error()\ to \console.warn()\ when zodShapeStream encounters unparseable shapes
  • This prevents intermittent stream crashes during \subscribeToRun\ / \subscribeToBatch\

Root cause

When the server sends partial/incomplete shape data during streaming, the Zod validation fails and previously crashed the entire stream with \controller.error(). Now it gracefully skips unparseable chunks and logs a warning.


Summary by cubic

Stop stream crashes when the server sends partial shape data. zodShapeStream now warns (console.warn) instead of calling controller.error, so invalid chunks are skipped and subscribeToRun/subscribeToBatch keep streaming.