fix(web): wait for focused Passkey unlock - #9
Conversation
Three pull requests are open on this portal and they overlap. PR #9 and feat/nuri-passkey-wallet fix the identical WebAuthn focus bug, built twice in isolation — the clearest evidence that the state was written down nowhere and everyone was guessing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Superseded by #12 — the same WebAuthn focus wait is now on The e2e test in this PR is still worth having — it has no equivalent on |
taner-caliskan
left a comment
There was a problem hiding this comment.
Exact-head review of 86b37749ce46f2a19b4294624f995b3587c71206. Current-head Desktop Build (macOS) is failing. This is material for focused passkey unlock across web/desktop boundaries. Fix or conclusively classify it, rerun green, and verify focus loss/return, cancellation, duplicate prompts and successful unlock.
Summary
Use Passkey & Open Chataction after an exact tab-bound Connect returnWhy
Safari/WebKit can reject the second PRF assertion with
not focusedwhen it starts automatically immediately after returning from Connect. The explicit click provides a focused user activation before WebAuthn.Verification
pnpm --dir web checkpnpm --dir web typecheckpnpm --dir web test:unit— 9 passedpnpm --dir web buildpnpm --dir web test:e2e:smoke— 7 passedPart of #3. This PR does not include multi-Space work or domain/relay migration.