Skip to content

feat(agent-handoff): Add reusable setup prompt UI - #130465

Open
evanpurkhiser wants to merge 1 commit into
masterfrom
git/feat-agent-handoff-add-reusable-setup-prompt-ui
Open

evanpurkhiser wants to merge 1 commit into
masterfrom
git/feat-agent-handoff-add-reusable-setup-prompt-ui

Conversation

@evanpurkhiser

Copy link
Copy Markdown
Member

Provide reusable handoff content for Sentry setup surfaces: an ordered setup checklist, a preloaded Markdown guide preview, and a copy action that mints a private prompt only when clicked.

Keep IP pinning enabled by default, show the sharing warning when it is disabled, and support retrying preview or clipboard failures. Includes an inline story and component/hook coverage for preview loading, pinning choices, expiration, clipboard recovery, and dismissal.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-gcdlmr4q8.sentry.dev

Comment on lines +37 to +38
Body = Fragment,
Footer = Fragment,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super in love with this. Maybe what would be better is if you have it like this

<AgentHandoff>
  <AgentHandoff.Details />
  <AgentHandoff.Action trigger={... defaults to button, can be ovverideen like dropdown menu trigger} />
</AgentHandoff>

then we can compose this inside a dropdown instead

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from 862a4a8 to b231196 Compare November 9, 2026 20:07

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

} catch {
throw new Error(t('Unable to create your agent prompt. Please try again.'));
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy reuses consumed handoff token

Medium Severity

After a successful copy, later clicks reuse the cached prompt until expiry or a pinning change. The backend handoff is single-use, so a second copy can paste an already-claimed token and leave setup failing for up to five minutes.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b231196. Configure here.

@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from b231196 to 8f4618f Compare November 9, 2026 20:14
@evanpurkhiser
evanpurkhiser requested a review from a team as a code owner November 9, 2026 20:14
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from 8f4618f to 9c4ed49 Compare November 9, 2026 20:16
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from 9c4ed49 to 79ae131 Compare November 9, 2026 20:50
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from 79ae131 to 148dc33 Compare November 9, 2026 21:03
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch 2 times, most recently from 623e679 to f689e35 Compare November 9, 2026 21:11
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from f689e35 to 626f738 Compare November 9, 2026 21:18
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from 626f738 to c77aa54 Compare November 9, 2026 21:28
@evanpurkhiser
evanpurkhiser force-pushed the git/feat-agent-handoff-add-reusable-setup-prompt-ui branch from c77aa54 to 1f8acef Compare November 9, 2026 21:42

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1f8acef. Configure here.

path: {organizationIdOrSlug: organization.slug},
}),
data: {flow, disableIpPinning},
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Onboarding mint omits required context

High Severity

Copying always POSTs {flow: 'onboarding', disableIpPinning} with no context. The handoff API requires context.runId for the onboarding flow and rejects the request otherwise, so minting a prompt cannot succeed and the copy action fails every time.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1f8acef. Configure here.

This branch was successfully deployed

1 active deployment
Preview — 1f8acef4 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant