Skip to content

fix(examples/crewai-crews): bump ag-ui-crewai pin to 0.2.x - #4122

Merged
jpr5 merged 2 commits into
mainfrom
fix/dojo-agui-crewai-pin
Apr 21, 2026
Merged

jpr5 merged 2 commits into
mainfrom
fix/dojo-agui-crewai-pin

Conversation

@jpr5

@jpr5 jpr5 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Bump the Dojo-side ag-ui-crewai pin 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.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 #1550, shipped as ag-ui-crewai 0.2.0.

Showcase already moved to 0.2.x in #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

  • pip install --dry-run -r examples/integrations/crewai-crews/agent/requirements.txt resolves cleanly (Python 3.12)
  • 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

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).
@vercel

vercel Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 21, 2026 5:55pm
research-canvas Ready Ready Preview, Comment Apr 21, 2026 5:55pm
travel Ready Ready Preview, Comment Apr 21, 2026 5:55pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
chat-with-your-data Skipped Skipped Apr 21, 2026 5:55pm
form-filling Skipped Skipped Apr 21, 2026 5:55pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@vercel
vercel Bot temporarily deployed to Preview – chat-with-your-data April 21, 2026 17:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – form-filling April 21, 2026 17:52 Inactive
@jpr5
jpr5 merged commit c4507bc into main Apr 21, 2026
29 checks passed
@jpr5
jpr5 deleted the fix/dojo-agui-crewai-pin branch April 21, 2026 18:00
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

3 active and 2 inactive deployments
Preview – research-canvas — 008d4e58 Deployed Apr 21, 2026 by vercel[bot]
Preview – travel — 008d4e58 Deployed Apr 21, 2026 by vercel[bot]
Preview – docs — 008d4e58 Deployed Apr 21, 2026 by vercel[bot]
Preview – form-filling — 008d4e58 Deployed Apr 21, 2026 by vercel[bot]
Preview – chat-with-your-data — 008d4e58 Deployed Apr 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant