@mastra/react 1.4.11-alpha.9 → 1.4.12-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -483,7 +483,7 @@ const accumulateChunk = ({ chunk, conversation, metadata }) => {
483
483
  return [...result, newMessage];
484
484
  }
485
485
  case "start": {
486
- const messageId = typeof chunk.payload.messageId === "string" ? chunk.payload.messageId : void 0;
486
+ const messageId = typeof chunk.payload?.messageId === "string" ? chunk.payload.messageId : void 0;
487
487
  if (messageId && result.some((message) => message.id === messageId)) return result;
488
488
  return [...result, newAssistantMessage(messageId ?? `start-${chunk.runId + Date.now()}`, [], metadata)];
489
489
  }