@axiom-lattice/react-sdk 2.1.100 → 2.1.101
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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2048,11 +2048,12 @@ function AgentThreadProvider({
|
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
const updatedMessages = chunkMessageMerger.current.getMessages();
|
|
2051
|
+
const isStopSignal = interrupt !== void 0 || anyChunk.type === "message_failed";
|
|
2051
2052
|
setState((prev) => ({
|
|
2052
2053
|
...prev,
|
|
2053
2054
|
todos: todos || prev.todos,
|
|
2054
2055
|
messages: updatedMessages,
|
|
2055
|
-
isLoading: true,
|
|
2056
|
+
isLoading: isStopSignal ? false : true,
|
|
2056
2057
|
interrupts: interrupt ? [interrupt] : void 0
|
|
2057
2058
|
}));
|
|
2058
2059
|
},
|