Repository navigation
feat!: move the chat logic into @copilotkit/core so React, Vue and Angular share it - #8113
Merged
Merged
Conversation
…ntainers hooks and unused dependencies Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n any-value Standard Schema Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… on circular content Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e and skip no-op setter updates Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r lookup Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ind the ɵ prefix Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o a replaced provider tool returns Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ules and transcription in the chat Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ose the core on unmount Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ring a run sends Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e the core on destroy Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tton while the agent runs Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bel the last chat strings Co-Authored-By: Claude Opus 5.5 <[email protected]>
…op lucide-react Co-Authored-By: Claude Opus 5.5 <[email protected]>
… polygons Co-Authored-By: Claude Opus 5.5 <[email protected]>
…de-vue-next Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tool overrides and dispose() Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he Chat UI 2.0 guide Co-Authored-By: Claude Opus 5.5 <[email protected]>
AlemTuzlak
requested review from
jpr5,
mme,
rainerhahnekamp,
tylerslaton and
wolfmanfx
as code owners
October 30, 2026 15:29
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the
|
Contributor
Production Digest-Pinning AuditAll 43 services digest-pinned. Run 2026-10-30 08:29:35 PDT — 0 finding(s). |
2 of 4 tasks
AlemTuzlak
added a commit
that referenced
this pull request
Nov 2, 2026
Core's public types (chat messages and tool-call layout) import from
@ag-ui/core, but core listed it only as a dev dependency. tsdown then
inlined it into the declaration bundle and, with CI set, failed the
build ("Detected dependencies in bundle: @ag-ui/core"). Every job that
builds core failed on 2.0.0 since #8113.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
React, Vue, and Angular now share one copy of the chat logic, in
@copilotkit/core. A fix in core now reaches all three frameworks. This PR moves the labels, renderer types, renderer lookup, tool-call layout, message de-duplication, the input's send and stop rules, transcription, and the license state into core. The chat icons are now inline SVG data in core, solucide-reactandlucide-vue-nextare gone.BREAKING CHANGE:
BasicMarkdownRenderer,BasicMarkdown,parseMarkdown(with its types), and theuseLearningContainershooks are removed.CopilotChatLabelshas more keys.CopilotKitCore.addToollets a newer tool replace an older one. Vue and Angular use React's default text and chat rules. Migration steps:docs/migrate/chat-2.0.mdx("Chat UI in 2.0").What does this PR do?
parseMarkdownand themarkeddependency in core, the deprecateduseLearningContainershooks,@radix-ui/react-slot, and the test-onlyminimalCatalog.ɵprefix.dispose()is new, and tool registrations stack. The React and Vue subclasses pass a wait-for-render option instead of overriding a method.Bugs that this fixes:
Related PRs and Issues
@copilotkit/vue/v2built from the wrong entry).Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.mdTesting
Commands run
pnpm nx run-many -t build,test,check-types,publint,attwfor core, shared, react-core, vue, angular, a2ui-renderer, markdown-renderer, react-native, web-inspector, web-components, and mcp-apps-renderer: all pass.pnpm check:docs-snippets: all 1611 snippets pass.2.0.0already. This PR adds no lint errors.Manual test (the demos need an LLM key, or the
slow-toolsagent from the Angular demo server)How this PR makes testing easy
packages/core/src/chat/__tests__/.Risk / rollback
Medium. The chat components in all three frameworks changed. React's behavior is the reference, and React's existing tests pass without change. Vue and Angular change where they used to differ from React (listed in the migration guide). To undo, revert this PR.
Public API change
Before
After
🤖 Generated with Claude Code