Repository navigation
API: name a page that asks for a passkey in a Bot's computer - #2147
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 19:28
davidmckayv
force-pushed
the
passkey-notice-spec
branch
8 times, most recently
from
November 24, 2026 22:47
0402885 to
1560b01
Compare
A handoff request can now say the page asked for a passkey: a passkey challenge kind and handoff source, and a passkey field on the request naming the site that asked and when. The challenge kind and the handoff source are declared open (x-extensible-enum), with every value they had, so a client reads a new kind it doesn't know. Additive only: nothing a client sends changes. The shared types and the one sentence the computer gives as the request's reason come with it.
davidmckayv
force-pushed
the
passkey-notice-spec
branch
from
November 24, 2026 23:17
1560b01 to
56640f7
Compare
12 tasks done
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.
Why
When a page in a Bot's computer asks for a passkey (Google's passkey step, say), a passkey kept on the person's own device can't answer it: 1Password, iCloud Keychain and a phone are all out of reach of a computer in the cloud. The way through is the page's own "Try another way". OpenBot should say that plainly, on the request the person is looking at, and tell the Bot the same.
What changes in the API
Additive only. Nothing a client sends changes.
ComputerChallenge.kindgainspasskey: the page asked for a passkey while the Bot was driving.ComputerControlRequest.sourcegainspasskey: a request for a person that the computer raised because the page asked for one.ComputerControlRequest.passkey(optional): set when the page asked for a passkey while the request was open, naming the site that asked (host, such as accounts.google.com) and when (askedAt).Both enums are declared open (
x-extensible-enum) with every value they had, per api/README.md "Enums that grow", so every client reads a kind it doesn't know.api/accepted-breaking-changes.mdlists each "removed the enum constraint" line oasdiff reports, with that reason. Checked locally with the pinned oasdiff 1.38.0: no breaking changes left once they are listed.shared/computer-control.tsgains the matching types andPASSKEY_REASON, the one sentence the computer gives as the request's reason:The generated web, mobile and Recorder clients are regenerated. The screens that show the notice follow in their own PR.
Checks
bun run api:lintandbun run api:generate(no drift), the API and shared tests, the tolerant-reader tests, the copy-rule tests, biome, andbun run typecheck.