@copilotkit/react-core 1.56.5 → 1.57.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.
@@ -4673,6 +4673,16 @@ function useThreads$1({ agentId, includeArchived, limit }) {
4673
4673
  };
4674
4674
  }, [store]);
4675
4675
  const runtimeStatus = copilotkit.runtimeConnectionStatus;
4676
+ (0, react.useEffect)(() => {
4677
+ copilotkit.registerThreadStore(agentId, store);
4678
+ return () => {
4679
+ copilotkit.unregisterThreadStore(agentId);
4680
+ };
4681
+ }, [
4682
+ copilotkit,
4683
+ agentId,
4684
+ store
4685
+ ]);
4676
4686
  (0, react.useEffect)(() => {
4677
4687
  if (!copilotkit.runtimeUrl) {
4678
4688
  store.setContext(null);
@@ -4696,7 +4706,6 @@ function useThreads$1({ agentId, includeArchived, limit }) {
4696
4706
  headersKey,
4697
4707
  copilotkit.intelligence?.wsUrl,
4698
4708
  agentId,
4699
- copilotkit.headers,
4700
4709
  includeArchived,
4701
4710
  limit
4702
4711
  ]);
@@ -10243,4 +10252,4 @@ Object.defineProperty(exports, 'useToast', {
10243
10252
  return useToast;
10244
10253
  }
10245
10254
  });
10246
- //# sourceMappingURL=copilotkit-DMFu29Kx.cjs.map
10255
+ //# sourceMappingURL=copilotkit-DGbvw8n2.cjs.map