@copilotkit/react-core 1.78.0 → 1.79.1-canary.1792034358

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.
@@ -1440,9 +1440,7 @@ function useThreads({ agentId, includeArchived, limit, enabled = true }) {
1440
1440
  const hasMoreThreads = useThreadStoreSelector(store, _copilotkit_core.ɵselectHasNextPage);
1441
1441
  const isFetchingMoreThreads = useThreadStoreSelector(store, _copilotkit_core.ɵselectIsFetchingNextPage);
1442
1442
  const isMutating = useThreadStoreSelector(store, _copilotkit_core.ɵselectIsMutating);
1443
- const headersKey = (0, react.useMemo)(() => {
1444
- return JSON.stringify(Object.entries(copilotkit.headers ?? {}).sort(([left], [right]) => left.localeCompare(right)));
1445
- }, [copilotkit.headers]);
1443
+ const headersKey = copilotkit.ɵheadersGeneration;
1446
1444
  const runtimeStatus = copilotkit.runtimeConnectionStatus;
1447
1445
  const threadListEndpointSupported = copilotkit.threadEndpoints?.list !== false;
1448
1446
  const threadMutationsSupported = copilotkit.threadEndpoints?.mutations !== false;
@@ -1507,7 +1505,6 @@ function useThreads({ agentId, includeArchived, limit, enabled = true }) {
1507
1505
  }
1508
1506
  const context = {
1509
1507
  runtimeUrl: copilotkit.runtimeUrl,
1510
- headers: { ...copilotkit.headers },
1511
1508
  wsUrl: copilotkit.intelligence?.wsUrl,
1512
1509
  agentId,
1513
1510
  includeArchived,