Allow dismissing AskUserQuestion with X (decline reply) - #89
Merged
Conversation
Question cards had no close control, so users were stuck until they picked an option or waited for the 15-minute timeout. Add an X that resolves the paused tool call with "None, I don't want to respond to the question" for every asked question so the agent can continue. Co-authored-by: Shreya Shankar <shreyashankar@cmu.edu>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
The prior demo injected a question client-side only, so POST /api/ask-user-reply 404'd even though the modal closed. Add a dev-only /api/ask-user-pending helper to park a resolver, and surface non-OK reply statuses in the activity log instead of claiming a successful decline. Co-authored-by: Shreya Shankar <shreyashankar@cmu.edu>
shreyashankar
marked this pull request as ready for review
August 28, 2026 17:03
Embeddable in the PR description via raw.githubusercontent.com so the Status 200 proof is visible inline. Co-authored-by: Shreya Shankar <shreyashankar@cmu.edu>
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
AskUserQuestion modals had no way to dismiss — users were forced to pick an option or wait for the 15-minute timeout.
Changes
/api/ask-user-replywith"None, I don't want to respond to the question"for every question so the paused tool call resolvesDeclined question (no response)(and surfaces an error if the reply POST is non-OK)POST /api/ask-user-pendingso dismiss can be exercised with a real pending resolverScreenshots
POST /api/ask-user-reply→ Status Code: 200 OK:Network panel (filter
ask-user) showingask-user-reply200:Demo
Click X → decline reply → 200:
Test plan
"None, I don't want to respond to the question"Declined question (no response)