@mastra/react 1.4.11 → 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.cjs CHANGED
@@ -484,7 +484,7 @@ const accumulateChunk = ({ chunk, conversation, metadata }) => {
484
484
  return [...result, newMessage];
485
485
  }
486
486
  case "start": {
487
- const messageId = typeof chunk.payload.messageId === "string" ? chunk.payload.messageId : void 0;
487
+ const messageId = typeof chunk.payload?.messageId === "string" ? chunk.payload.messageId : void 0;
488
488
  if (messageId && result.some((message) => message.id === messageId)) return result;
489
489
  return [...result, newAssistantMessage(messageId ?? `start-${chunk.runId + Date.now()}`, [], metadata)];
490
490
  }