@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 CHANGED
@@ -2143,11 +2143,12 @@ function AgentThreadProvider({
2143
2143
  }
2144
2144
  }
2145
2145
  const updatedMessages = chunkMessageMerger.current.getMessages();
2146
+ const isStopSignal = interrupt !== void 0 || anyChunk.type === "message_failed";
2146
2147
  setState((prev) => ({
2147
2148
  ...prev,
2148
2149
  todos: todos || prev.todos,
2149
2150
  messages: updatedMessages,
2150
- isLoading: true,
2151
+ isLoading: isStopSignal ? false : true,
2151
2152
  interrupts: interrupt ? [interrupt] : void 0
2152
2153
  }));
2153
2154
  },