Repository navigation
feat(cli): Use device approval for remote agent handoffs - #2479
Merged
evanpurkhiser merged 1 commit intoNov 24, 2026
Merged
evanpurkhiser merged 1 commit into
evanpurkhiser merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
evanpurkhiser
commented
Nov 23, 2026
| test.each([ | ||
| { email: "[email protected]", slug: "example-org", accepted: true }, | ||
| { email: "[email protected]", slug: "example-org", accepted: false }, | ||
| { email: null, slug: "example-org", accepted: false }, |
Member
Author
There was a problem hiding this comment.
why would email be null in this case then though?
evanpurkhiser
commented
Nov 23, 2026
|
|
||
| if (normalizeHttpOrigin(parsed.output.sentryUrl) !== host) { | ||
| throw new HostScopeError( | ||
| "The handoff response names a different Sentry instance.", |
Member
Author
There was a problem hiding this comment.
Let's use some less AI-sounding thing here
Suggested change
| "The handoff response names a different Sentry instance.", | |
| "The handoff response is for a different Sentry instance.", |
evanpurkhiser
force-pushed
the
git/feat-cli-use-device-approval-for-remote-agent-handoffs
branch
from
November 23, 2026 23:24
a6c6bdf to
72ecbe2
Compare
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 72ecbe2. Configure here.
evanpurkhiser
force-pushed
the
git/feat-cli-use-device-approval-for-remote-agent-handoffs
branch
from
November 23, 2026 23:34
72ecbe2 to
8a2002f
Compare
evanpurkhiser
force-pushed
the
git/feat-cli-use-device-approval-for-remote-agent-handoffs
branch
from
November 24, 2026 00:05
8a2002f to
5f8b53d
Compare
evanpurkhiser
deleted the
git/feat-cli-use-device-approval-for-remote-agent-handoffs
branch
November 24, 2026 01:37
7 tasks done
evanpurkhiser
added a commit
to getsentry/sentry
that referenced
this pull request
Nov 24, 2026
Onboarding handoffs should work when a user and their agent are on different networks, with the user approving sign-in in their browser. Matching IPs continue to get a one-time CLI setup code. A mismatch or missing IP now consumes the handoff and returns the setup context with the code omitted. Device OAuth owns consent on that path. The prompt endpoint still accepts the legacy setting during the frontend rollout, and the claim never uses it to decide whether to mint credentials. Merge after the compatible stable CLI is available through the installer linked by the handoff guide. [Toolkit CLI device approval PR](getsentry/toolkit#2479)
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Cloud agents and browsers on different networks need a way to finish onboarding while the user stays in control of sign-in.
When the handoff claim omits its setup code, use the CLI's existing device flow with the handoff email. Print the approval URL and code for the agent to relay to the user, then continue setup after login succeeds.
Release this CLI change through the installer before Sentry starts omitting the setup code.