Repository navigation
feat(agent-handoff): Require device approval across networks - #132266
Merged
evanpurkhiser merged 1 commit intoNov 24, 2026
Merged
evanpurkhiser merged 1 commit into
evanpurkhiser merged 1 commit into
Conversation
This was referenced Nov 23, 2026
evanpurkhiser
marked this pull request as ready for review
November 24, 2026 00:50
wedamija
approved these changes
Nov 24, 2026
| _record_claim(ClaimOutcome.INVALID, handoff) | ||
| raise | ||
| _record_claim(ClaimOutcome.ACCEPTED, handoff) | ||
| _record_claim(ClaimOutcome.ACCEPTED if same_ip else ClaimOutcome.DEVICE_AUTH_REQUIRED, handoff) |
Member
There was a problem hiding this comment.
device_auth_required is the last event for this path. Nothing links the approval result to handoff_id, so we cannot see how many of these handoffs complete. Is that worth tracking?
Member
Author
There was a problem hiding this comment.
the handoff_id and onboarding run are connected so we see once that bit starts.
Can try and probably have the handoff_id get passed through to device auth too to get metrics over there as well
Comment on lines
+6
to
10
| keep running while the user approves in their browser. Follow the setup instructions the | ||
| CLI prints after sign-in succeeds. | ||
|
|
||
| Replace HANDOFF_CODE with the handoff code, run the command for your shell once, and then | ||
| follow the instructions it prints. |
Member
There was a problem hiding this comment.
Nit: the first paragraph and the second paragraph both end with "follow the instructions it prints".
evanpurkhiser
deleted the
git/feat-agent-handoff-require-device-approval-across-networks
branch
November 24, 2026 19:18
evanpurkhiser
added a commit
that referenced
this pull request
Nov 24, 2026
The handoff guide repeats when to follow the CLI’s output. Keep that instruction after the approval step, where it tells the agent when to continue setup. [Follow-up from #132266](#132266 (comment))
evanpurkhiser
added a commit
that referenced
this pull request
Nov 25, 2026
Handoff sign-in can use device approval when the agent runs on a different network. Remove the network-only checkbox and warning from both prompt variants, and stop including the setting in requests. Deploy after the handoff claim endpoint supports device approval. [Backend device approval PR](#132266)
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.
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