Skip to content

CopilotKit

v1.59.1 Feature

This release adds 2 notable features for engineering teams evaluating rollout.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

agent agent-native agentic-ai agents ai ai-agent
+12 more
ai-assistant assistant assistant-chat-bots copilot copilot-chat generative-ui javascript llm nextjs react reactjs typescript

Summary

AI summary

Updates Build / packaging, non-explicit, and ENT-658 across a mixed release.

Changes in this release

Dependency Low

Bumps @copilotkit/license-verifier to patch range ~0.4.2, allowing future 0.4.x patches.

Bumps @copilotkit/license-verifier to patch range ~0.4.2, allowing future 0.4.x patches.

Source: llm_adapter@2026-05-29

Confidence: high

Bugfix Medium

Preserves generated-thread frontend-tool follow-ups, fixing visible chat reset (ENT-658).

Preserves generated-thread frontend-tool follow-ups, fixing visible chat reset (ENT-658).

Source: llm_adapter@2026-05-29

Confidence: low

Full changelog

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

npm install @copilotkit/[email protected] @copilotkit/[email protected] @copilotkit/[email protected]

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.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track CopilotKit

Get notified when new releases ship.

Sign up free

About CopilotKit

The Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol

All releases →

Beta — feedback welcome: [email protected]