Skip to content

fix(chat): align a2ui assistant ID with deployed graph name#117

Merged
blove merged 2 commits into
mainfrom
claude/condescending-sanderson
Apr 12, 2026
Merged

fix(chat): align a2ui assistant ID with deployed graph name#117
blove merged 2 commits into
mainfrom
claude/condescending-sanderson

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 12, 2026

Summary

The a2ui Angular app used assistant ID c-a2ui but the production /api proxy routes to the streaming LangGraph deployment, which registers the a2ui graph as a2ui_form. This caused HTTP 422 errors.

Fix: Update both environment files to use a2ui_form.

Verified

  • Generative-ui: ✅ weather cards and stat cards render correctly in production
  • Streaming: ✅ multi-turn markdown streaming works in production
  • A2UI: ❌ HTTP 422 with c-a2ui → this PR fixes the mismatch

🤖 Generated with Claude Code

blove and others added 2 commits April 11, 2026 20:32
The generative-ui system prompt instructed the LLM to produce JSON
specs with a "rootKey" field, but the @json-render/core Spec type
expects "root". RenderSpecComponent checks `spec()?.root` (line 50),
so all LLM-generated specs silently failed to render.

Fix: replace all occurrences of "rootKey" with "root" in the prompt.
Updated both the source and the streaming deployment copy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The a2ui Angular app used assistant ID 'c-a2ui' but the production
/api proxy routes to the streaming LangGraph deployment, which
registers the a2ui graph as 'a2ui_form'. This caused HTTP 422
"Invalid assistant" errors.

Fix: update both environment files to use 'a2ui_form'.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

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

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment Apr 12, 2026 5:29am

Request Review

@blove blove merged commit ccc8261 into main Apr 12, 2026
14 checks passed
blove added a commit that referenced this pull request Apr 12, 2026
PR #117 changed the a2ui assistant ID from 'c-a2ui' to 'a2ui_form',
but the production proxy (examples-middleware.ts) routes chat/a2ui
requests to the standalone c-a2ui LangGraph deployment, whose
langgraph.json registers the graph as 'c-a2ui'.

Revert to 'c-a2ui' to match the deployed backend.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
blove added a commit that referenced this pull request Apr 12, 2026
* fix(chat): correct generative-ui prompt — use root not rootKey

The generative-ui system prompt instructed the LLM to produce JSON
specs with a "rootKey" field, but the @json-render/core Spec type
expects "root". RenderSpecComponent checks `spec()?.root` (line 50),
so all LLM-generated specs silently failed to render.

Fix: replace all occurrences of "rootKey" with "root" in the prompt.
Updated both the source and the streaming deployment copy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(chat): align a2ui assistant ID with deployed graph name

The a2ui Angular app used assistant ID 'c-a2ui' but the production
/api proxy routes to the streaming LangGraph deployment, which
registers the a2ui graph as 'a2ui_form'. This caused HTTP 422
"Invalid assistant" errors.

Fix: update both environment files to use 'a2ui_form'.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(chat): revert a2ui assistant ID to c-a2ui to match deployment

PR #117 changed the a2ui assistant ID from 'c-a2ui' to 'a2ui_form',
but the production proxy (examples-middleware.ts) routes chat/a2ui
requests to the standalone c-a2ui LangGraph deployment, whose
langgraph.json registers the graph as 'c-a2ui'.

Revert to 'c-a2ui' to match the deployed backend.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
blove added a commit that referenced this pull request Apr 12, 2026
The a2ui proxy routes to the standalone c-a2ui LangGraph deployment
which registers the graph as 'c-a2ui'. PR #117 changed this to
'a2ui_form' and the squash merge of PR #118 failed to restore it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
blove added a commit that referenced this pull request Apr 12, 2026
The a2ui proxy routes to the standalone c-a2ui LangGraph deployment
which registers the graph as 'c-a2ui'. PR #117 changed this to
'a2ui_form' and the squash merge of PR #118 failed to restore it.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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