Desktop: backup-file restore accepts raw .key/nsec but renders no Continue action
Describe the bug
The first-run Restore from a backup file dialog accepts a raw .key file containing a valid nsec1... private key. It successfully parses the file and displays Nostr identity found with the derived public identifier, but renders no Continue/Next action. The user is stranded in a dialog that has positively recognized the identity.
Steps to reproduce
- Start Buzz Desktop onboarding.
- Choose Use an existing key.
- Open Restore from a backup file.
- Select a small
.keytext file whose first non-empty line is a validnsec1...value. - Observe Nostr identity found and the derived public identifier.
- Observe that no Continue/Next button is rendered; only closing the dialog is possible.
Expected behavior
Either:
- allow the recognized raw key to continue through the normal identity-import action; or
- reject
.key/rawnsecfiles in this encrypted-backup-only dialog and direct the user to the normal Private key import path.
Recognizing the identity while providing no forward action is a dead end.
Version and platform
- Buzz version: Desktop 0.5.6
- OS: Windows 11 PRO x64
Logs / additional context
No private-key, public-key, or screenshot data is included.
The bug is also structurally present in current main:
MachineOnboardingFlowopensNostrKeyImportFormwithmode="backup".- The shared file input accepts
.key,.ncryptsec,text/plain. handleFilesloads the first non-empty line, including a valid rawnsec.- A valid raw key renders the Nostr identity found preview.
- The submit CTA is rendered only when
mode === "key" || isPasswordStage. - A raw
nsecinmode="backup"is not a password stage, so neither condition is true and no CTA appears.
Workaround: close the backup dialog, paste the same nsec into the normal Private key field, and continue there.