| Name | Modified | Size | Downloads / 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 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) 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-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.