mirror of
https://github.com/block/buzz.git
synced 2026-11-25 18:52:52 +00:00
A fresh phone signing into an account linked to identity A gets a misleading identity-mismatch error when the account has only a backup for identity B. The existing import option was offered only when the entire backup list was empty. Offer the same import option whenever the linked identity has no listed backup. Import still rejects a different key, requires the existing backup-consent step, and prohibits creating a replacement identity. This fallback does not change account bindings or automatically recover a private key that was never backed up. Updated against main `6dbd159676908806109f23d1964159d96a35760a`, preserving the consent flow added since the original PR. Validation: - Both focused files passed with public Builderlab onboarding enabled: 67 tests. The journey covers empty and unrelated backups, wrong-key rejection, and matching-key import after “Back up and continue.” - In an isolated source tree with separate Git metadata and build output, restoring the old production condition failed the unrelated-backup journey (`blocked` instead of `setupIdentity`). Restoring the fix passed all 42 journeys; restored source hashes match the PR. - Wes exercised the original preview's transition to the import screen on November 4. This conflict repair preserves that production change; no new device run was performed. That native evidence covers the screen transition, not a completed real-account key import. - Required pre-push checks passed, including mobile formatting/analysis, the hook's mobile and crypto test suites, and file-size checks. [GitHub CI passed](https://github.com/block/buzz/actions/runs/45211217031) on `14e45a26e9873e75846e9a052f70bffd13139f6d`, including public-build tests and the Android build. The conflict/consent review finding is addressed in this revision. Existing-user backup enrollment and automatic fresh-device recovery are separate from this narrowly scoped fallback fix. Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Brain <1a02c72794dcd0f07058a353bc3a81f4028b8c77c92c87fce6d5c8b85970a20b@buzz.block.builderlab.xyz>