Skip to content

Upgrade web UI to pydantic/ai-chat-ui 1.2.0#5246

Merged
DouweM merged 3 commits intopydantic:mainfrom
johnthagen:patch-1
May 4, 2026
Merged

Upgrade web UI to pydantic/ai-chat-ui 1.2.0#5246
DouweM merged 3 commits intopydantic:mainfrom
johnthagen:patch-1

Conversation

@johnthagen
Copy link
Copy Markdown
Contributor

I noticed that the CDN version listed in the web chat UI for @pydantic/ai-chat-ui is a few months out of date

Checklist

  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • No breaking changes in accordance with the version policy.
  • PR title is fit for the release changelog.

@github-actions github-actions Bot added size: S Small PR (≤100 weighted lines) dependency labels Apr 29, 2026
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

) from _import_error

CHAT_UI_VERSION = '1.0.0'
CHAT_UI_VERSION = '1.2.0'
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.

🔴 Version requirement bump violates mandatory UI adapter backwards compatibility policy

The pydantic_ai_slim/pydantic_ai/ui/AGENTS.md rule file explicitly states "version requirement bumps are disallowed" for UI adapters. This PR bumps CHAT_UI_VERSION from '1.0.0' to '1.2.0', which directly changes the CDN URL used to fetch the @pydantic/ai-chat-ui npm package (pydantic_ai_slim/pydantic_ai/ui/_web/app.py:29). Per the policy, new functionality from v1.2.0 should instead be gated behind version checks, and the base version requirement should remain at 1.0.0.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is not the same thing.

@DouweM
Copy link
Copy Markdown
Collaborator

DouweM commented May 1, 2026

@johnthagen Derp, thank you. Can you please update the failing test as well please?

@johnthagen
Copy link
Copy Markdown
Contributor Author

Can you please update the failing test as well please?

@DouweM Done.

@DouweM DouweM changed the title Upgrade to ai-chat-ui 1.2.0 Upgrade web UI to pydantic/ai-chat-ui 1.2.0 May 4, 2026
@DouweM DouweM merged commit 0db6ea8 into pydantic:main May 4, 2026
45 checks passed
@johnthagen johnthagen deleted the patch-1 branch May 4, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency size: S Small PR (≤100 weighted lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants