Repository navigation
fix(examples/crewai-crews): bump ag-ui-crewai pin to 0.2.x - #4122
Merged
Merged
Conversation
ag-ui-crewai 0.1.5 contains three defects that took down crewai-crews in prod for 9h on 2026-04-21: unguarded .messages access, orphan asyncio.create_task, and sync completion() calls. All three are fixed in 0.2.0 (ag-ui PR #1550). Showcase already moved to 0.2.x in PR #4115. Dojo is the user-facing reference — leaving it on 0.1.5 means every reader clones the broken version. This closes the validate-pins drift. Pip dry-run resolves ag-ui-crewai-0.2.0 cleanly with no conflicts. Grep of examples/integrations/crewai-crews/ confirms no consumer code touches the 0.1.5 defect paths (.state.messages, create_task, completion sync).
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
April 21, 2026 17:42
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…t#4122) ## Summary Bump the Dojo-side `ag-ui-crewai` pin to match the showcase counterpart ([CopilotKit#4115](CopilotKit#4115)) and close the validate-pins drift. - `examples/integrations/crewai-crews/agent/requirements.txt`: `ag-ui-crewai>=0.1.5` → `ag-ui-crewai>=0.2.0,<0.3.0` ## Why `ag-ui-crewai` 0.1.5 has three known defects that took down crewai-crews in prod for 9h on 2026-04-21: 1. Unguarded `.messages` access on state 2. Orphan `asyncio.create_task` (fire-and-forget without tracking) 3. Sync `completion(` call in an async path All three are fixed upstream in ag-ui PR [CopilotKit#1550](ag-ui-protocol/ag-ui#1550), shipped as ag-ui-crewai `0.2.0`. Showcase already moved to `0.2.x` in [CopilotKit#4115](CopilotKit#4115) (merged today). Dojo is the user-facing reference repo — leaving it on `0.1.5` means every reader clones the broken version. ## Pre-flight verification ### Pip resolve (Python 3.12 venv, `pip install --dry-run`) Clean resolution. Picked `ag-ui-crewai-0.2.0` alongside `ag-ui-protocol-0.1.17`, `crewai-0.130.0`, `crewai-tools-0.47.1`. No conflicts reported. Relevant tail of resolver output: ``` Would install ... ag-ui-crewai-0.2.0 ag-ui-protocol-0.1.17 crewai-0.130.0 crewai-tools-0.47.1 ... ``` ### Consumer code audit Grepped `examples/integrations/crewai-crews/` for any pattern matching the 0.1.5 defect paths: - `\.state\.messages` / `state\[.messages.\]` → no matches - `source\.state\.messages` → no matches - `asyncio\.create_task` → no matches - `crewai\.completion\(` / `litellm\.completion\(` → no matches - `messages|create_task|completion` across the whole `agent/` directory → no matches The Dojo integration consists of `server.py`, `crew.py`, `main.py`, `tools/custom_tool.py` — none of them directly access `.state.messages`, schedule orphan tasks, or invoke sync `completion()`. The 0.2.0 bump is purely a transitive fix; no consumer-side code changes are needed. ## Test plan - [x] `pip install --dry-run -r examples/integrations/crewai-crews/agent/requirements.txt` resolves cleanly (Python 3.12) - [x] Grep confirms no consumer code hits 0.1.5 defect paths - [ ] validate-pins CI job goes green (drift closed against showcase) - [ ] Basic CrewAI flow runs in the dev environment against the updated pin ## Related - Showcase counterpart: [CopilotKit#4115](CopilotKit#4115) - Upstream fix: [ag-ui-protocol/ag-ui#1550](ag-ui-protocol/ag-ui#1550)
This branch was successfully deployed
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.
Summary
Bump the Dojo-side
ag-ui-crewaipin to match the showcase counterpart (#4115) and close the validate-pins drift.examples/integrations/crewai-crews/agent/requirements.txt:ag-ui-crewai>=0.1.5→ag-ui-crewai>=0.2.0,<0.3.0Why
ag-ui-crewai0.1.5 has three known defects that took down crewai-crews in prod for 9h on 2026-04-21:.messagesaccess on stateasyncio.create_task(fire-and-forget without tracking)completion(call in an async pathAll three are fixed upstream in ag-ui PR #1550, shipped as ag-ui-crewai
0.2.0.Showcase already moved to
0.2.xin #4115 (merged today). Dojo is the user-facing reference repo — leaving it on0.1.5means every reader clones the broken version.Pre-flight verification
Pip resolve (Python 3.12 venv,
pip install --dry-run)Clean resolution. Picked
ag-ui-crewai-0.2.0alongsideag-ui-protocol-0.1.17,crewai-0.130.0,crewai-tools-0.47.1. No conflicts reported.Relevant tail of resolver output:
Consumer code audit
Grepped
examples/integrations/crewai-crews/for any pattern matching the 0.1.5 defect paths:\.state\.messages/state\[.messages.\]→ no matchessource\.state\.messages→ no matchesasyncio\.create_task→ no matchescrewai\.completion\(/litellm\.completion\(→ no matchesmessages|create_task|completionacross the wholeagent/directory → no matchesThe Dojo integration consists of
server.py,crew.py,main.py,tools/custom_tool.py— none of them directly access.state.messages, schedule orphan tasks, or invoke synccompletion(). The 0.2.0 bump is purely a transitive fix; no consumer-side code changes are needed.Test plan
pip install --dry-run -r examples/integrations/crewai-crews/agent/requirements.txtresolves cleanly (Python 3.12)Related