fix(chat): align a2ui assistant ID with deployed graph name#117
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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>
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
The a2ui Angular app used assistant ID
c-a2uibut the production/apiproxy routes to thestreamingLangGraph deployment, which registers the a2ui graph asa2ui_form. This caused HTTP 422 errors.Fix: Update both environment files to use
a2ui_form.Verified
c-a2ui→ this PR fixes the mismatch🤖 Generated with Claude Code