Repository navigation
ref(agent-handoff): Move handoff claims to the CLI - #131499
Conversation
| try { | ||
| irm https://cli.sentry.dev/install.ps1 | iex | ||
| } finally { | ||
| Remove-Item Env:SENTRY_HANDOFF | ||
| } |
There was a problem hiding this comment.
Let's drop the remove item, we don't even really need that, just the irm ... | iex and the env set before it
There was a problem hiding this comment.
Done — PowerShell now only sets SENTRY_HANDOFF and runs the installer.
4b2c7f5 to
dc20c7c
Compare
The public handoff page now passes the one-time code to Sentry CLI, which owns claim exchange and authentication. Remove the legacy Markdown POST and private credential runbook so claims have one API path.
dc20c7c to
a0c1d2a
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a0c1d2a. Configure here.
The CLI claims handoffs against sentry.io by default, so the public guide now sets SENTRY_HOST when the page is served by another instance. Co-Authored-By: Evan Purkhiser <1421724+evanpurkhiser@users.noreply.github.com>
|
No findings on the latest commit. |
Abdkhan14
left a comment
There was a problem hiding this comment.
@evanpurkhiser worth looking into:
src/sentry/agent_handoff/views.py:24 — Preview links are broken. The frontend still links to ?preview=1&flow=..., but the view now ignores both parameters and returns generic installer instructions instead of flow-specific previews.
src/sentry/agent_handoff/claims.py:127 — Organization context is lost. The CLI dependency prints only flowInstructions, while onboarding/create-project instructions reference “the organization slug above.” Agents therefore lack the slug required to report progress.
src/sentry/templates/sentry/agent_handoff/claim.md:15 — Custom/self-hosted instance URL is not passed to the CLI, so claims default to Sentry SaaS or another configured host. This is already raised in the existing Bugbot comment.
Reuse the existing code block and PowerShell helpers so the whole install command lives in one place instead of being split across the template. Co-Authored-By: Evan Purkhiser <1421724+evanpurkhiser@users.noreply.github.com>

Agent handoffs now claim and authenticate through Sentry CLI, so the public Markdown page should hand the one-time code to the installer instead of exchanging it itself.
This updates
agent-handoff.mdwithSENTRY_HANDOFFinstall commands for Unix and PowerShell, removes the legacy Markdown POST, slash alias, and private credential runbook, and moves the remaining claim tests to the public JSON API. Claim and setup-code analytics remain on the shared API path.Draft until getsentry/toolkit#2320 lands and its CLI release is available from the stable installer.