Skip to content

feat(browser): add WebAuthn passkey gate and macOS camera/mic usage descriptions - #393

Merged
Hona merged 1 commit into
devfrom
ws1-phase3c-passkeys
Nov 21, 2026
Merged

Hona merged 1 commit into
devfrom
ws1-phase3c-passkeys

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Implements Phase 3c Part 1 (\UP-095\ #63002):

  • WebAuthn / passkey gate (\�pps/browser-engine/src/passkeys.rs): Matches official \�9a60d9d\ (\packages/gui-plugins/src/browser/webauthn-gate.ts, \chromium.ts:619,803-845,892-893,1394,1552).
    • Installs the hidden-binding page wrapper on the root session and every paused web OOPIF session (before \Runtime.runIfWaitingForDebugger), queueing observer replies through \cdp_ledger.outbox\ (\ lush_outbox\ + \Event::Pump(0)) so CEF's non-reentrant DevTools observer list is never re-entered.
    • Enforces \WebAuthn.enable { enableUI: false }\ (empty virtual authenticator environment) from tab creation on macOS/Linux and permanently on Windows controlled tabs (\OpenTab.agent_driven, \SetAgentDriven(true), or agent CDP); fails closed with \�rowser.passkeys.unrestricted\ if \WebAuthn.enable\ fails on Windows.
    • Emits \EngineMsg::PasskeyRefused\ only for main-frame or same-origin requests, interrupts in-flight agent runs once per document with \sign_in_required\ and official \�gentPasskeyRefusal\ copy, and shows the passkey notice banner ("Open in new tab"\ on Windows controlled tabs, "Import sign-in"\ -> Settings > Browser on macOS/Linux).
  • macOS \Info.plist\ camera/mic usage descriptions (\package-release.sh, \install-local.sh): Adds \NSCameraUsageDescription\ and \NSMicrophoneUsageDescription\ verbatim from official \desktop-native.ts:235-236\ / \�lectron-builder.config.ts:185-187\ (canonicalized via \plutil -convert xml1).
    • Note: \�pps/browser-engine/entitlements.plist\ is intentionally unchanged in this PR so
      elease.yml:721\ (\cmp -s .github/release/opencode-rune-engine.entitlements apps/browser-engine/entitlements.plist) stays green until Dax applies the lockstep .github/release/opencode-rune-engine.entitlements\ patch.
  • \ENGINE_REVISION\ bump (\3 -> 4): \stable.json\ now publishes \156.0.26-3, so this engine/wire PR bumps \ENGINE_REVISION\ to \4.

Verified live on \�lade\ (\prove-passkeys.ts\ \ALL_PASS: true:
eady.passkeys=true, \NotAllowedError\ on \get/\create, \conditional\ pending until abort, \immediate\ fast-fail, getter read once, 0 leaked tokens/binding events, permanent enforcement across \SetAgentDriven(false), OOPIF rejection with 0 spurious notices, 0 \observer_list\ log errors) + \cargo build\ + \cargo check\ + \guardrails.ps1\ 5/5.

@Hona
Hona merged commit d97726e into dev Nov 21, 2026
@Hona
Hona deleted the ws1-phase3c-passkeys branch November 21, 2026 04:57
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

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