@mastra/react 0.1.0-beta.13 → 0.1.0-beta.15

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
@@ -152,7 +152,7 @@ const toUIMessage = ({ chunk, conversation, metadata }) => {
152
152
  }
153
153
  case "start": {
154
154
  const newMessage = {
155
- id: `start-${chunk.runId + Date.now()}`,
155
+ id: typeof chunk.payload.messageId === "string" ? chunk.payload.messageId : `start-${chunk.runId + Date.now()}`,
156
156
  role: "assistant",
157
157
  parts: [],
158
158
  metadata