Skip to content

fix: use latest agui dependencies to include required fixes - #2145

Merged
ranst91 merged 1 commit into
mainfrom
fix/use-latest-agui-fixes
Jul 11, 2025
Merged

ranst91 merged 1 commit into
mainfrom
fix/use-latest-agui-fixes

Conversation

@ranst91

@ranst91 ranst91 commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

This PR upgrades all AGUI packages, so fixes for AGUI related items are available

Summary by CodeRabbit

  • Chores
    • Updated several dependencies to newer versions for improved compatibility and stability.

@vercel

vercel Bot commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
copilotkit-feature-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2025 3:43pm
demo-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2025 3:43pm
docs ❌ Failed (Inspect) Jul 11, 2025 3:43pm
examples-coagents-ai-travel-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2025 3:43pm
examples-coagents-research-canvas-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2025 3:43pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
examples-coagents-ai-researcher-ui ⬜️ Ignored (Inspect) Visit Preview Jul 11, 2025 3:43pm

@coderabbitai

coderabbitai Bot commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

"""

Walkthrough

The package.json file for the @copilotkit/runtime package was updated to increment the versions of several @ag-ui dependencies and peer dependencies, specifically raising them to newer releases. No other files or exported entities were changed.

Changes

File(s) Change Summary
.../runtime/package.json Bumped versions of @ag-ui/client, @ag-ui/core, @ag-ui/encoder, @ag-ui/proto (to 0.0.34), and @ag-ui/langgraph (to 0.0.6) in dependencies and peerDependencies.

Possibly related PRs

Suggested labels

preview

Suggested reviewers

  • mme
  • suhasdeshpande
  • ataibarkai
    """

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5890707 and 40c505b.

⛔ Files ignored due to path filters (1)
  • CopilotKit/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • CopilotKit/packages/runtime/package.json (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • CopilotKit/packages/runtime/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: Test (20.x)
  • GitHub Check: Test (18.x)
  • GitHub Check: Build Images (coagents-qa-native, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-qa-text, ui)
  • GitHub Check: Build Images (next-openai, next-openai)
  • GitHub Check: Build Images (coagents-qa-native, ui)
  • GitHub Check: Build Images (coagents-routing, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-research-canvas, ui)
  • GitHub Check: Build Images (coagents-research-canvas, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-routing, ui)
  • GitHub Check: Build Images (coagents-qa-text, agent, python, local-deps)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
CopilotKit/packages/runtime/package.json (1)

82-85: Peer range should reflect the same minimum but also allow future patch releases

You widened the peer range to >=0.0.34, which is good, but it’s effectively identical to ^0.0.34 while being less explicit about the upper bound (< 0.1.0 assumed).
For consistency with the rest of the repo (and npm expectations) consider:

-    "@ag-ui/client": ">=0.0.34",
+    "@ag-ui/client": "^0.0.34",

(do the same for the other three). This still enforces 0.0.34 as the minimum, consumes patch updates automatically, and communicates intent more clearly to consumers.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1e088f0 and 5890707.

⛔ Files ignored due to path filters (1)
  • CopilotKit/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • CopilotKit/packages/runtime/package.json (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`CopilotKit/packages/runtime/**`: Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/

CopilotKit/packages/runtime/**: Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/

📄 Source: CodeRabbit Inference Engine (.cursor/rules/copilotkit-architecture.mdc)

List of files the instruction was applied to:

  • CopilotKit/packages/runtime/package.json
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Review [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Use [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/package.json : Workspace configuration should be maintained in CopilotKit/package.json
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-04T14:01:21.727Z
Learning: Applies to **/agent-js/**/*.{js,ts,jsx,tsx} : Install '@copilotkit/sdk-js' package for JavaScript agents.
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-ui/**/* : Add [react-ui/] for pre-built components when building a simple Copilot or customizing UI components
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-core/**/* : Use [react-core/] for basic integration when building a simple Copilot
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/runtime/** : Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/sdk-js/**/* : Use [sdk-js/] package for developing JavaScript agents
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/react-ui/** : UI components for copilot interfaces should be placed in CopilotKit/packages/react-ui/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/runtime-client-gql/** : GraphQL client for runtime communication should be implemented in CopilotKit/packages/runtime-client-gql/
CopilotKit/packages/runtime/package.json (14)
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Review [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Use [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/package.json : Workspace configuration should be maintained in CopilotKit/package.json
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-04T14:01:21.727Z
Learning: Applies to **/agent-js/**/*.{js,ts,jsx,tsx} : Install '@copilotkit/sdk-js' package for JavaScript agents.
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/runtime-client-gql/** : GraphQL client for runtime communication should be implemented in CopilotKit/packages/runtime-client-gql/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/runtime/** : Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-core/**/* : Use [react-core/] for basic integration when building a simple Copilot
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-ui/**/* : Add [react-ui/] for pre-built components when building a simple Copilot or customizing UI components
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/sdk-js/**/* : Use [sdk-js/] package for developing JavaScript agents
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/react-textarea/** : Textarea component with AI integration should be implemented in CopilotKit/packages/react-textarea/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/examples-and-demos.mdc:0-0
Timestamp: 2025-07-04T14:02:08.498Z
Learning: Applies to examples/*/package.json : Each example project should have a package.json file specifying dependencies.
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to examples/coagents-starter/agent-js/**/* : Check [coagents-starter/agent-js/] for JavaScript agent example
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/sdk-js/** : JavaScript SDK for backend integration should be implemented in CopilotKit/packages/sdk-js/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/react-ui/** : UI components for copilot interfaces should be placed in CopilotKit/packages/react-ui/
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: Build Images (coagents-qa-text, ui)
  • GitHub Check: Build Images (coagents-research-canvas, ui)
  • GitHub Check: Build Images (next-openai, next-openai)
  • GitHub Check: Build Images (coagents-routing, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-qa-native, ui)
  • GitHub Check: Build Images (coagents-qa-text, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-qa-native, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-research-canvas, agent, python, local-deps)
  • GitHub Check: Build Images (coagents-routing, ui)
  • GitHub Check: Test (18.x)
  • GitHub Check: Test (20.x)

Comment on lines 49 to 55
"dependencies": {
"@ag-ui/client": "0.0.28",
"@ag-ui/core": "0.0.28",
"@ag-ui/encoder": "0.0.28",
"@ag-ui/langgraph": "0.0.4",
"@ag-ui/proto": "0.0.28",
"@ag-ui/client": "0.0.34",
"@ag-ui/core": "0.0.34",
"@ag-ui/encoder": "0.0.34",
"@ag-ui/langgraph": "0.0.5",
"@ag-ui/proto": "0.0.34",
"@anthropic-ai/sdk": "^0.27.3",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Double-check workspace-wide alignment after bumping the @ag-ui/* versions

The runtime package now hard-pins:

"@ag-ui/*": "0.0.34"
"@ag-ui/langgraph": "0.0.5"
  1. If any sibling workspaces still reference 0.0.28 (or an older langgraph), pnpm will install both versions side-by-side, bloating node_modules and risking subtle runtime conflicts (e.g. class identity mismatches).
  2. A strict pin without a caret means every subsequent patch from 0.0.35+ will be missed until another manual bump. Consider ~0.0.34 (patch-level) or keep the previous caret (^) strategy if you want automatic patch uptake.

Request verifying the rest of the monorepo and lockfile before publishing:


🏁 Script executed:

#!/bin/bash
# List every workspace dependency on @ag-ui/* and highlight mismatches
rg --json '"@ag-ui/' |
  jq -r '.data.lines.text' |
  sort -u

Length of output: 1327


Ensure @Ag-ui versions stay in sync across the monorepo

We still have mixed pins for @ag-ui/client, core, encoder and proto—some workspaces are on 0.0.28/>=0.0.28 while runtime now hard-pins 0.0.34. This will cause duplicate installs and potential class-identity conflicts.

• Update all packages/**/package.json entries for @ag-ui/{client,core,encoder,proto} to the same range (for example, ^0.0.34 or ~0.0.34 to pick up patch releases).
• Keep @ag-ui/langgraph at 0.0.5 everywhere if that’s the intended version.
• After bumping, run pnpm install (or pnpm update) and commit the regenerated lockfile.

To verify alignment:

rg --json '"@ag-ui/' |
  jq -r '.data.lines.text' |
  sort -u
🤖 Prompt for AI Agents
In CopilotKit/packages/runtime/package.json around lines 49 to 55, the versions
of @ag-ui packages are inconsistently pinned across the monorepo, which can
cause duplicate installs and conflicts. Update all @ag-ui/client, @ag-ui/core,
@ag-ui/encoder, and @ag-ui/proto dependencies in every packages/**/package.json
to use the same version range, such as ^0.0.34 or ~0.0.34, to allow patch
updates. Keep @ag-ui/langgraph fixed at 0.0.5 if that is the intended version.
After updating all package.json files, run pnpm install or pnpm update to
regenerate the lockfile and commit the changes. Use the provided rg and jq
command to verify all versions are aligned.

@ranst91
ranst91 force-pushed the fix/use-latest-agui-fixes branch from 5890707 to 40c505b Compare July 11, 2025 15:37
@changesets-bot-copilotkit

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 40c505b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
vercel Bot temporarily deployed to Preview – demo-viewer July 11, 2025 15:39 Inactive
@vercel
vercel Bot temporarily deployed to Preview – docs July 11, 2025 15:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-coagents-research-canvas-ui July 11, 2025 15:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-coagents-ai-travel-app July 11, 2025 15:42 Inactive
@vercel
vercel Bot temporarily deployed to Preview – copilotkit-feature-viewer July 11, 2025 15:43 Inactive
@github-actions

github-actions Bot commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

Preview environments destroyed for this pull request.

@github-actions

github-actions Bot commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

Status: ✅ Passed (View Run)

Commit: 3d3d9be

Duration: 217.1s

Total Tests: 33

Pass Rate: 100.0%

Failed Tests: 0

🔍 Detailed Results

coagents-research-canvas

CoAgents Research Canvas (UI) - Local Depenencies

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
CrewAI chromium ✅ PASSED -

coagents-qa-native

CoAgents QA Native (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -

coagents-qa-text

CoAgents QA Text (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
OpenAI (LGC Python) chromium ✅ PASSED -
Anthropic (LGC Python) chromium ✅ PASSED -
OpenAI (LGC JS) chromium ✅ PASSED -
Anthropic (LGC JS) chromium ✅ PASSED -

coagents-routing

CoAgents Routing (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -

next-openai

Next OpenAI - Self Hosted

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
LangChain (OpenAI) chromium ✅ PASSED -
Groq chromium ✅ PASSED -

@ranst91
ranst91 merged commit af17255 into main Jul 11, 2025
@ranst91
ranst91 deleted the fix/use-latest-agui-fixes branch July 11, 2025 16:02
ranst91 added a commit that referenced this pull request Jul 11, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Jul 15, 2025
2 tasks done

This branch was previously deployed

5 inactive deployments
Preview – copilotkit-feature-viewer — 40c505b9 Deployed Jul 11, 2025 by vercel[bot]
Preview – examples-coagents-ai-travel-app — 40c505b9 Deployed Jul 11, 2025 by vercel[bot]
Preview – docs — 40c505b9 Deployed Jul 11, 2025 by vercel[bot]
Preview – examples-coagents-research-canvas-ui — 40c505b9 Deployed Jul 11, 2025 by vercel[bot]
Preview – demo-viewer — 40c505b9 Deployed Jul 11, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant