@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.
@@ -1411,9 +1411,7 @@ function useThreads({ agentId, includeArchived, limit, enabled = true }) {
1411
1411
  const hasMoreThreads = useThreadStoreSelector(store, ɵselectHasNextPage);
1412
1412
  const isFetchingMoreThreads = useThreadStoreSelector(store, ɵselectIsFetchingNextPage);
1413
1413
  const isMutating = useThreadStoreSelector(store, ɵselectIsMutating);
1414
- const headersKey = useMemo(() => {
1415
- return JSON.stringify(Object.entries(copilotkit.headers ?? {}).sort(([left], [right]) => left.localeCompare(right)));
1416
- }, [copilotkit.headers]);
1414
+ const headersKey = copilotkit.ɵheadersGeneration;
1417
1415
  const runtimeStatus = copilotkit.runtimeConnectionStatus;
1418
1416
  const threadListEndpointSupported = copilotkit.threadEndpoints?.list !== false;
1419
1417
  const threadMutationsSupported = copilotkit.threadEndpoints?.mutations !== false;
@@ -1478,7 +1476,6 @@ function useThreads({ agentId, includeArchived, limit, enabled = true }) {
1478
1476
  }
1479
1477
  const context = {
1480
1478
  runtimeUrl: copilotkit.runtimeUrl,
1481
- headers: { ...copilotkit.headers },
1482
1479
  wsUrl: copilotkit.intelligence?.wsUrl,
1483
1480
  agentId,
1484
1481
  includeArchived,