Skip to content

ref(agent-handoff): Link the instructions to the handoff guide URL - #131824

Closed
sentry-junior[bot] wants to merge 3 commits into
masterfrom
evanpurkhiser/fix-agent-handoff-remove-preview-link
Closed

sentry-junior[bot] wants to merge 3 commits into
masterfrom
evanpurkhiser/fix-agent-handoff-remove-preview-link

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

#131819 pointed the "See the full instructions" and "View all instructions" links at new URL('/agent-handoff.md', links.sentryUrl). The copied prompt sends the agent to getHandoffGuideUrl(), which builds the same path from urlPrefix.

This points both links at getHandoffGuideUrl(), so the instructions the user opens are the ones the agent reads. On instances other than sentry.io, the links now go to that instance's guide instead of sentry.io's. It also removes the leftover getHandoffPreviewUrl helper.

via @evanpurkhiser.

--

View Session [Sentry]

The "See the full instructions" and "View all instructions" links pointed
at /agent-handoff.md?preview=1&flow=..., but the backend stopped honoring
the preview mode in #131499. The links now open the generic CLI install
guide instead of the flow's instructions, so remove them.

Co-Authored-By: Evan Purkhiser <1421724+evanpurkhiser@users.noreply.github.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 19, 2026

@evanpurkhiser evanpurkhiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

rebase it junior

@evanpurkhiser
evanpurkhiser marked this pull request as ready for review November 19, 2026 17:39
@evanpurkhiser
evanpurkhiser requested a review from a team as a code owner November 19, 2026 17:39

@evanpurkhiser evanpurkhiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Junior actually I didn't want to remove the link entirely

Keep the "See the full instructions" and "View all instructions" links,
but point them at getHandoffGuideUrl(), the same /agent-handoff.md URL the
copied prompt sends the agent to, and drop the leftover
getHandoffPreviewUrl helper.
@sentry-junior sentry-junior Bot changed the title fix(agent-handoff): Remove links to the retired instructions preview ref(agent-handoff): Link the instructions to the handoff guide URL Nov 19, 2026
@sentry-junior

sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Got it. The links stay now. I merged master in (so this keeps #131819's links) and reworked the PR: both links now use getHandoffGuideUrl(), the same /agent-handoff.md URL that's in the copied prompt, and the leftover getHandoffPreviewUrl is gone.

@github-actions

Copy link
Copy Markdown
Contributor

Story previews

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

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

@sentry-junior sentry-junior Bot closed this Nov 19, 2026

This branch was successfully deployed

1 active deployment
Preview — 7f62e2a7 Deployed Nov 19, 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