@mastra/react 1.7.0-alpha.5 → 1.7.0-alpha.7
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/agent/hooks.d.ts.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2170,6 +2170,13 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2170
2170
|
pendingToolApprovalIdsRef.current.add(toolCallId);
|
|
2171
2171
|
setIsAwaitingToolApproval(true);
|
|
2172
2172
|
}
|
|
2173
|
+
if (runId) {
|
|
2174
|
+
if (!liveRunId.current || liveRunFinished.current) {
|
|
2175
|
+
liveRunId.current = runId;
|
|
2176
|
+
liveRunFinished.current = false;
|
|
2177
|
+
}
|
|
2178
|
+
if (liveRunId.current === runId) _currentRunId.current = runId;
|
|
2179
|
+
}
|
|
2173
2180
|
setIsRunning(false);
|
|
2174
2181
|
}
|
|
2175
2182
|
if (isTerminal) {
|