Skip to content

Allow dismissing AskUserQuestion with X (decline reply) - #89

Merged
shreyashankar merged 3 commits into
mainfrom
cursor/dismiss-ask-user-question-fd25
Aug 28, 2026
Merged

Allow dismissing AskUserQuestion with X (decline reply)#89
shreyashankar merged 3 commits into
mainfrom
cursor/dismiss-ask-user-question-fd25

Conversation

@shreyashankar

@shreyashankar shreyashankar commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

AskUserQuestion modals had no way to dismiss — users were forced to pick an option or wait for the 15-minute timeout.

Changes

  • Add an X on the question card header
  • Dismissing POSTs /api/ask-user-reply with "None, I don't want to respond to the question" for every question so the paused tool call resolves
  • Activity log records Declined question (no response) (and surfaces an error if the reply POST is non-OK)
  • Dev-only POST /api/ask-user-pending so dismiss can be exercised with a real pending resolver
  • Docs note the dismiss affordance

Screenshots

POST /api/ask-user-replyStatus Code: 200 OK:

Status Code 200 OK for ask-user-reply

Network panel (filter ask-user) showing ask-user-reply 200:

Network panel: ask-user-reply status 200

Demo

Click X → decline reply → 200:

Dismiss AskUserQuestion with X returns 200

Test plan

  • Register pending ask → inject matching modal → click X → POST /api/ask-user-reply returns 200
  • Payload includes "None, I don't want to respond to the question"
  • History shows Declined question (no response)
  • Live agent AskUserQuestion still unblocks after X
Open in Web Open in Cursor 

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>
@mintlify

mintlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
docwriter 🟢 Ready View Preview Aug 28, 2026, 3:37 PM

💡 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
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>
@shreyashankar
shreyashankar merged commit 8657443 into main Aug 28, 2026
5 of 7 checks passed
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.

2 participants