Repository navigation
ref(agent-handoff): Clarify setup instructions - #130848
Conversation
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 426781f. Configure here.
| "prompt": ( | ||
| f"Follow the instructions verbatim at {guide_url}. " | ||
| f"Your secret token is `{issued.code}`." | ||
| f"Follow the Sentry setup instructions at {guide_url}. " |
There was a problem hiding this comment.
Let's keep this one as is actually
| f"Follow the instructions verbatim at {guide_url}. " | ||
| f"Your secret token is `{issued.code}`." | ||
| f"Follow the Sentry setup instructions at {guide_url}. " | ||
| f"One-time setup code: `{issued.code}`." |
There was a problem hiding this comment.
This is good though, maybe "Your setup code is "
There was a problem hiding this comment.
Actuallylet's say Your handoff code is
01eb900 to
d655183
Compare
| @@ -1,21 +1,28 @@ | |||
| # Claim Your Private Sentry Guide | |||
| # Set Up Sentry | |||
There was a problem hiding this comment.
Setup is probably wrong, maybe Sentry for Agents.
Because this won't always be about setting up sentry
| It is a private, single-use handoff code. Keep it out of HTTP request URLs, logs, and | ||
| conversation output. | ||
| Fetching this page does not claim it. | ||
| The user initiated this Sentry setup and provided a one-time handoff code. The command |
There was a problem hiding this comment.
| The user initiated this Sentry setup and provided a one-time handoff code. The command | |
| The user initiated a agent-handoff flow from sentry will have provided a one-time handoff code. The command |
| for the current shell sends that code to Sentry over HTTPS and prints the setup | ||
| instructions. It does not execute the returned content. |
There was a problem hiding this comment.
| for the current shell sends that code to Sentry over HTTPS and prints the setup | |
| instructions. It does not execute the returned content. | |
| for the current shell sends that code to Sentry over HTTPS and prints the setup | |
| instructions. Nothing will be executed or mutated when using the hand-off code. |
| instructions from Sentry. If the response is lost or the handoff code is unavailable, | ||
| ask them to copy new setup instructions. |
There was a problem hiding this comment.
| instructions from Sentry. If the response is lost or the handoff code is unavailable, | |
| ask them to copy new setup instructions. | |
| instructions from Sentry. If the response is lost or the handoff code is unavailable, | |
| ask them to copy the prompt again. |
| Your goal is to ensure authenticated Sentry access for the intended account and | ||
| organization, then follow the instructions below. |
There was a problem hiding this comment.
| Your goal is to ensure authenticated Sentry access for the intended account and | |
| organization, then follow the instructions below. | |
| Your goal is to ensure authenticated Sentry access for the intended account and | |
| organization, then follow the instructions at the end of this document. |
| prompt when the code has expired or was already used. Never request a long-lived token | ||
| in the conversation. | ||
|
|
||
| {{ flow_instructions }} |
There was a problem hiding this comment.
Let's add a # Next steps above this
Present the handoff as direct Sentry setup while preserving the platform-specific bootstrap and existing security behavior.
d655183 to
e9d52d2
Compare

The bootstrap page currently uses terms such as private guide and secret token without explaining what the command does. That framing can make the official setup handoff look untrusted when an agent evaluates pasted instructions.
Use direct setup terminology, state that the user initiated the flow, and explain that the platform-specific command sends a one-time code to Sentry over HTTPS and prints rather than executes the response. The redemption protocol and existing security behavior remain unchanged.