Skip to content

API: name a page that asks for a passkey in a Bot's computer - #2147

Merged
davidmckayv merged 1 commit into
mainfrom
passkey-notice-spec
Nov 24, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
passkey-notice-spec

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

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.kind gains passkey: the page asked for a passkey while the Bot was driving.
  • ComputerControlRequest.source gains passkey: 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.md lists 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.ts gains the matching types and PASSKEY_REASON, the one sentence the computer gives as the request's reason:

This page is asking for a passkey. A passkey on your own device can't be used in the Bot's computer, so take control and choose Try another way on the page to sign in with a password or a code.

The generated web, mobile and Recorder clients are regenerated. The screens that show the notice follow in their own PR.

Checks

bun run api:lint and bun run api:generate (no drift), the API and shared tests, the tolerant-reader tests, the copy-rule tests, biome, and bun run typecheck.

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
davidmckayv merged commit fc4dd72 into main Nov 24, 2026
34 checks passed
@davidmckayv
davidmckayv deleted the passkey-notice-spec branch November 24, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant