Download Latest Version v1.59.5 source code.tar.gz (30.7 MB)
Email in envelope

Get an email when there's a new version of CopilotKit

Home / v1.59.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-29 2.9 kB
v1.59.1 source code.tar.gz 2026-05-29 26.9 MB
v1.59.1 source code.zip 2026-05-29 35.6 MB
Totals: 3 Items   62.5 MB 1

CopilotKit v1.59.1

A patch release on the 1.59 line. Closes an ENT-658 regression where SDK-generated (non-explicit) threads could visibly reset the chat — losing the user message, tool card, and assistant reply — during a frontend-tool round-trip, and bumps @copilotkit/license-verifier onto a ~0.4.2 patch range.

Install

:::bash
npm install @copilotkit/react-core@1.59.1 @copilotkit/react-ui@1.59.1 @copilotkit/runtime@1.59.1

Fixes

  • @copilotkit/react-core: preserve generated-thread frontend-tool follow-ups — Fixes a visible chat reset (ENT-658) on threads where the SDK generates the threadId and /connect is intentionally skipped. The reset had two independent frontend causes, both in @copilotkit/react-core:
  • CopilotChat: non-explicit threads skip /connect, but the first runAgent still has to ship the same SDK-generated threadId the chat UI is rendering. agent.threadId = resolvedThreadId now runs at the top of the connect effect — before the early return for non-explicit threads — so the chat and agent can no longer diverge when the SDK mints the thread.
  • CopilotKitProvider: default object props (headers, properties, agents__unsafe_dev_only, selfManagedAgents) now resolve to shared frozen singletons (EMPTY_HEADERS / EMPTY_PROPERTIES / EMPTY_AGENTS) instead of fresh {} literals. In Intelligence mode a provider rerender could otherwise re-sync an empty local agent registry and replace the live remote agent instance mid-run, dropping the in-memory chat stream.

Regression coverage added in CopilotChat.absentThreadConnect.test.tsx (generated-thread frontend-tool round-trip) and CopilotKitProvider.stability.test.tsx (empty-agent rerender stability), plus a langgraph-python showcase demo, aimock fixture, and Playwright smoke for the repro. (#5043)

Build / packaging

  • @copilotkit/license-verifier bumped to ~0.4.2 — Moves the dependency off the exact 0.4.0 pin to the patch range ~0.4.2 (>=0.4.2 <0.5.0) in the root pnpm.overrides, @copilotkit/runtime, and @copilotkit/shared; pnpm-lock.yaml regenerated to resolve 0.4.2. Future 0.4.x patches are now picked up automatically while 0.5.0+ still requires an intentional bump. The .npmrc minimum-release-age guard was not modified. (#5100)

Packages republished at 1.59.1

@copilotkit/runtime, @copilotkit/react-core, @copilotkit/react-ui, @copilotkit/react-native, @copilotkit/core, @copilotkit/shared, @copilotkit/runtime-client-gql, @copilotkit/sdk-js, @copilotkit/voice, @copilotkit/web-inspector, @copilotkit/a2ui-renderer, @copilotkit/react-textarea, @copilotkit/sqlite-runner, @copilotkit/agentcore-runner, and @copilotkit/vue.

Source: README.md, updated 2026-05-29