test(examples/ag-ui): green up main — match classified-error e2e copy#695
Merged
Conversation
#693 replaced the raw stream-failure text with friendly AGENT_ERROR_MESSAGES copy ("Can't reach the server. Check your connection and try again."), which no longer contains "fail"/"error" — turning main red on examples/ag-ui — e2e. The chat example's spec was updated in #693; the ag-ui twin was missed. Mirror that assertion so the ag-ui error-handling spec asserts the actual copy. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Why
#693 (structured
AgentError+ classified error UX) replaced the raw stream-failure text with friendlyAGENT_ERROR_MESSAGEScopy — for a network abort that's now "Can't reach the server. Check your connection and try again." — which no longer contains "fail"/"error".The chat example's
error-handling.spec.tswas updated in #693 to assert the new copy, but its ag-ui twin was missed. As a resultexamples/ag-ui — e2eis red on main (run 27791822868), which is also gating the canonical demo deploy.Fix
One-line assertion update mirroring the chat example:
/can't reach|connection|server|interrupted|try again/i. The abort path (route.abort('failed')) classifies asconnection→ "Can't reach the server…", matchingcan't reach/connection/try again.No product code change — test-only, restores green.
🤖 Generated with Claude Code