github CopilotKit/CopilotKit v1.56.5

latest releases: v1.59.5, v1.59.4, v1.59.3...
one month ago

CopilotKit v1.56.5

A patch release on the 1.56 line. No breaking API changes — fixes to the runtime stream converters, reasoning lifecycle, LangGraph wrappers, Express compatibility, and React chat surfaces, plus a new LangGraph state-injection helper and a new memory runner package.

Install

npm install @copilotkit/react-core@1.56.5 @copilotkit/react-ui@1.56.5 @copilotkit/runtime@1.56.5

Features

  • LangGraph state injection in @copilotkit/sdk-jscreateCopilotkitMiddleware now exposes an ExposeStateOption (boolean | readonly string[]) that injects selected graph state into the CopilotKit middleware. (#4354)

Runtime fixes (@copilotkit/runtime)

  • TanStack converter — stop converting the stream after RUN_FINISHED. The TanStack chat() engine runs a multi-turn agent loop and calls processToolCalls() on frontend-only tools, which produced an unmatched TOOL_CALL_END and tripped the AG-UI verify middleware. (#4476)
  • TanStack state-tool detection — fall back to rawContent ?? raw.result so state-tool results are recognised even when only the legacy field is populated. (a48e9a17)
  • Reasoning lifecycle — close any open reasoning message on REASONING_END, and reopen cleanly when a new REASONING_START arrives. (18f6c1e2)
  • Reasoning lifecycle — track REASONING message-open and run-open state separately to avoid duplicate REASONING_MESSAGE_END events. (7bcd2f81)
  • LangGraph subagents — default streamSubgraphs to true in the agent wrapper. @ag-ui/langgraph 0.0.31+ flipped the default to undefined, breaking subagent streaming; this restores the previous behaviour while preserving any explicit caller override via nullish coalescing. (#4446)
  • Express 4/5 compatibility — replace string wildcards with RegExp routes in the Express adapter and switch to {*splat} syntax for path-to-regexp v8, so the runtime works across Express 4, 4.20+, and 5. (#4447)

SDK fixes (@copilotkit/sdk-js)

  • Zod v4 state fields preserved in LangGraph output_schema — adds a zodState helper that attaches a ~standard.jsonSchema.input hook to Standard-Schema-compatible schemas. Without it, Zod v4 fields carry only ~standard.validate + vendor, so LangGraph's isStandardJSONSchema() returned false and getJsonSchemaFromSchema silently dropped fields from the graph's output_schema, which then filtered them out of STATE_SNAPSHOT events. (#4358)

React fixes (@copilotkit/react-core, @copilotkit/react-ui)

  • Suggestions on the welcome screen — pills marked available: "always" now render on the welcome screen when a runtimeUrl is configured, instead of being hidden until the first message. (#4462)
  • Input overlay observer — re-attach the chat-input overlay observer when leaving the welcome screen, so overlays mount correctly on the first user interaction after welcome. (#4472)
  • Image attachments — render image attachments as compact 80×80 thumbnails laid out in a horizontal row above the message text (rather than 300×300 stacked below), aligning with conventional chat UIs. (#4459)

Dependency hygiene

  • Bump @ag-ui/* packages to 0.0.53. (#4477)
  • Deep security sweep across the workspace — 155 advisories down to 3 unfixable transitives (parse-git-config, elliptic). Includes ~36 new pnpm overrides for resolvable transitives plus storybook/vite/vitest devDep bumps. (868f6b17)

Build / packaging

  • @copilotkit/a2ui-renderer — remove a redundant prepack script that was breaking canary publishes with ENOENT. (#4467)

Monorepo

Packages republished at 1.56.5

@copilotkit/runtime, @copilotkit/react-core, @copilotkit/react-ui, @copilotkit/core, @copilotkit/shared, @copilotkit/runtime-client-gql, @copilotkit/sdk-js, @copilotkit/voice, @copilotkit/web-inspector, @copilotkit/a2ui-renderer, @copilotkit/react-textarea, and @copilotkit/sqlite-runner.

Don't miss a new CopilotKit release

NewReleases is sending notifications on new releases.