test(examples/ag-ui): interrupt-approval e2e over the AG-UI transport#654
Merged
Conversation
Ports examples/chat's interrupt spec: request_approval pauses the run via on_interrupt, and the app shell's <chat-interrupt-panel> (#649) renders the captured reason + Accept/Edit/Respond/Ignore. The interrupt-approval.json aimock fixture already shipped with the harness — only the spec was missing. 10/10 suite green locally. 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.
Summary
The follow-up flagged in #649: e2e coverage for the human-in-the-loop approval card in
examples/ag-ui.examples/chat's interrupt spec to the AG-UI transport:request_approvalpauses the run (on_interruptCUSTOM event →agent.interrupt()), and the app shell's<chat-interrupt-panel>(feat(examples/ag-ui): approval-card parity for human-in-the-loop #649) renders "Agent paused", the captured reason, and the Accept/Edit/Respond/Ignore actions.interrupt-approval.jsonaimock fixture already shipped with the harness in Part 2b — only the spec was missing. Scoped to panel-render parity with the chat spec (the fixture has no post-resume leg).Also deletes nothing and changes no app code — one new spec file.
Test Plan
examples/ag-ui — e2egreen (now 10 specs).🤖 Generated with Claude Code