This release adds 2 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+12 more
Summary
AI summaryUpdates Build / packaging, non-explicit, and ENT-658 across a mixed release.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| 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 thethreadIdand/connectis intentionally skipped. The reset had two independent frontend causes, both in@copilotkit/react-core:CopilotChat: non-explicit threads skip/connect, but the firstrunAgentstill has to ship the same SDK-generatedthreadIdthe chat UI is rendering.agent.threadId = resolvedThreadIdnow 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) andCopilotKitProvider.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-verifierbumped to~0.4.2— Moves the dependency off the exact0.4.0pin to the patch range~0.4.2(>=0.4.2 <0.5.0) in the rootpnpm.overrides,@copilotkit/runtime, and@copilotkit/shared;pnpm-lock.yamlregenerated to resolve0.4.2. Future0.4.xpatches are now picked up automatically while0.5.0+ still requires an intentional bump. The.npmrcminimum-release-ageguard 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
About CopilotKit
The Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol
Related context
Related tools
Beta — feedback welcome: [email protected]