CopilotKit v1.56.5 is a focused patch release that tightens reliability across its runtime and chat stack while introducing a useful new LangGraph state-injection capability. This update does not introduce breaking API changes, but it does address several issues that could affect agent loop stability, reasoning message handling, frontend tool execution, and React chat behavior in production deployments.
The headline feature in v1.56.5 is new LangGraph state injection support in @copilotkit/sdk-js. The createCopilotkitMiddleware API now exposes an ExposeStateOption type, allowing developers to inject either all graph state or a selected list of state fields into CopilotKit middleware. This gives teams more control over how workflow state is surfaced to downstream CopilotKit logic.
On the runtime side, the release fixes a stream conversion issue in the TanStack converter. CopilotKit now stops converting the stream after RUN_FINISHED, preventing unmatched TOOL_CALL_END events that could break AG-UI verification in multi-turn agent loops using frontend-only tools.
Another runtime fix improves TanStack state-tool detection by falling back to rawContent ?? raw.result. This ensures state-tool outputs are still recognized when older or legacy result fields are used.
The reasoning lifecycle has also been corrected. Open reasoning messages now close properly on REASONING_END and can reopen cleanly when a new REASONING_START event is emitted, reducing UI inconsistencies in applications that expose model reasoning states.
Beyond that, the release notes indicate additional fixes for LangGraph wrappers, Express compatibility, and React chat surfaces, along with the introduction of a new memory runner package. Together, these changes make the 1.56 line more stable for developers building conversational and agentic interfaces on top of CopilotKit.
For teams already shipping on CopilotKit 1.56, this patch is less about new surface area and more about removing edge-case failures in real-world agent workflows. The TanStack and reasoning fixes are especially important for applications that mix tool calls, multi-step automation, and visible reasoning traces inside chat interfaces.
The new LangGraph state exposure option is also notable because it improves interoperability between application state and CopilotKit middleware without requiring a broader architectural change. That makes v1.56.5 a practical upgrade for teams building complex agent flows with LangGraph and React-based chat products.
In short, CopilotKit v1.56.5 is a maintenance release worth adopting quickly if your stack depends on runtime correctness, stable React chat rendering, or deeper LangGraph integration.
Official Source: https://github.com/CopilotKit/CopilotKit/releases/tag/v1.56.5