Skip to content

revert: copilotkit 0.1.94 AG-UI upgrade (#754) — incompatible protocol#756

Merged
spashii merged 1 commit into
mainfrom
sameer/revert-copilotkit-agui
Jul 2, 2026
Merged

revert: copilotkit 0.1.94 AG-UI upgrade (#754) — incompatible protocol#756
spashii merged 1 commit into
mainfrom
sameer/revert-copilotkit-agui

Conversation

@spashii

@spashii spashii commented Jul 2, 2026

Copy link
Copy Markdown
Member

Reverts #754. The AG-UI upgrade turned out to be a 4-layer protocol migration, not a dep bump, and I verified the event vocabularies are incompatible:

  • copilotkit 0.1.94 LangGraphAGUIAgent serves via .run() + EventEncoder, emitting AG-UI protocol events (RUN_STARTED / TEXT_MESSAGE_CONTENT / STEP_STARTED, LangGraph events buried in RAW envelopes) as SSE.
  • agentic_client.py parses bare NDJSON lines, and agentic_worker.py consumes raw LangGraph event names (on_tool_start, on_tool_end, on_chat_model_end), which the frontend event parser also depends on.

So the AG-UI stream doesn't match the client/worker/frontend contract — proven live on echo-next (run.failed / no assistant output). Restoring copilotkit 0.1.78 + LangGraphAgent (the format the pipeline was built for). The base64 GCP_SA_JSON fix (#755) is independent and stays.

The AG-UI migration is worth doing but as a scoped, tested project across all four layers (agent → client → worker → frontend), tracked in the backlog — not a reactive dep bump.

🤖 Generated with Claude Code

@spashii spashii merged commit 2855830 into main Jul 2, 2026
3 of 4 checks passed
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