v1.50.0
CopilotKit v1.50.0 Release Notes
CopilotKit v1.50 is a major update. It includes many highly sought after new features, under the hood improvements and simplifications, and extensive improvements to existing core elements:
- useAgent - Superset of useCoAgent with more control, including: Shared State, Time Travel, Multi-Agent Execution and Agent Mutual Awareness
- Threads and Persistence - Multiple, long running and resumable, agent conversations
- New Design System - Deeper UX customization
- Direct to LLM Improvements - Shared state & Additional supported LLMs
- Zod schema support - Type safe compilation and runtime
- Simplified Infrastructure - Removal of GraphQL
- Backwards Compatibility - All CopilotKit v 1.10 compatible apps can be updated to v 1.50 with no required coding changes
Backwards Compatibility
Everything you’re already using continues to work. v1.50 is fully backwards compatible with client code using v1.10. In fact, as a first step in this pre-release period, we would love for you to start with just rebuilding, and let us know if you run into any problems.
As we said above, all of the v1 (or unversioned) hooks continue to work with v1.50. To take advantage of new hooks you’ll use those marked as /v2 (shown below).
You can opt into any of the new developer interfaces or keep using the old ones. Mixing is allowed in the following configurations:
- New Chat component + old hooks
- Old components + new hooks
- New v2 APIs are exposed under a subpath:
import { CopilotChat, useAgent } from "@copilotkit/react-core/v2";
useAgent
The v2 hook useAgent is a proper superset of useCoAgent which gives more control over the agent connection, including:
Shared state
import { useAgent } from "@copilotkit/react-core/v2";
const { agent } = useAgent({ agentId: "my-agent" });
agent.state
agent.setState
Time travel
import { useAgent } from "@copilotkit/react-core/v2";
const { agent } = useAgent({ agentId: "my-agent" });
agent.setMessages()
Multi-agent execution
import { useAgent } from "@copilotkit/react-core/v2";
const { agent: langgraph } = useAgent({ agentId: "langgraph" });
const { agent: pydantic } = useAgent({ agentId: "pydantic" });
[langgraph, pydantic].forEach((agent) => {
agent.addMessage({ id: crypto.randomUUID(), role: "user", content: message });
agent.runAgent();
});
Agent Mutual Awareness
You can even make agents aware of each other!
import { useAgent } from "@copilotkit/react-core/v2";
const { agent: langgraph } = useAgent({ agentId: "langgraph" });
const { agent: pydantic } = useAgent({ agentId: "pydantic" });
langgraph.setMessages(pydantic.messages)
pydantic.setMessages(langgraph.messages)
Other Highlights
- New runner with telemetry baked in, enabling better observability out of the box.
- CopilotRuntime rerouting and v2 subpackage export to align with CopilotKit Next single-endpoint architecture.
- Suggestions flow reworked: optional execution, improved availability, and added UI indicators (spinner) to show chat readiness.
- Inspector enabled by default and stability improvements around LangChain integrations.
Shared / Infrastructure
- Added telemetry-enabled runner and refreshed dependency stack to latest vNext.
- Improved LangChain stability and dependency resolution; minor fixes across packages.
- Introduced rerouting CopilotRuntime and telemetry fix for the 1.50 runtime.
Runtime
- Ported legacy endpoint creators to 2.0; runtime v2 exported as subpackage.
- Updated tool assignment logic (merge fixes) and removed redundant agent instantiation.
- Node HTTP integration now uses Hono directly; providers treeshaken and optional by default.
- Agents now unpack/set as promises to avoid startup delays; runtime uses CopilotNext single endpoint.
React Core
- Predictive state updates and setters fixed; better sync of back-and-forth state including initial state.
- Coagent state renders enabled; interrupt renders re-enabled and queued to avoid races.
- Suggestions improvements: availability fix, added support in 1.5, spinner indicator, and route to CopilotKitNext implementation.
- Context handling hardened (no infinite resets, string-only context values, custom converters allowed); tool-call result args fixed; agent name resolved from provider props.
- V2 styles exported; dependencies adjusted.
React UI
- Suggestions support added to 1.5 UI with repeatable interrupts and spinner readiness indicator.
- Default
Messagesfont color now honors--copilot-kit-primary-color. - General dependency and stability fixes inherited from React Core/Runtime.
React Textarea
- Textarea now routes to the CopilotKitNext implementation; inherits suggestions/runtime fixes via dependencies.
Runtime Client (GQL)
- Aligns with telemetry-enabled runner, inspector enablement, suggestion refactors, and dependency updates from shared/runtime.
SDK JS
- Allows LangGraph 1.0 and adopts telemetry runner, LangChain stability tweaks, and inspector enablement.
General Quality
- Lint/format cleanup, minor fixes, and dependency bumps across all packages to ensure consistency for 1.50.0.