From 36355aa9e6e5ea65a73fc00fb7ea2b0db118962d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 15 Aug 2026 16:04:57 -0700 Subject: Log out opens the front door: the start page, with saved wallets one Unlock away Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv --- src/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app.js b/src/app.js index 0bbf857..cc30cee 100644 --- a/src/app.js +++ b/src/app.js @@ -4067,7 +4067,12 @@ const ctx = { hook: (name, ...args) => featureHook(name, ...args), // full sign-out (distinct from the padlock's lock-in-place): clear the // session and leave — offering a password if none protects the vault yet - logout: () => { lock({ offerPassword: true }); }, + logout: () => { + lock({ offerPassword: true }); + // Logging out means the front door, not the password prompt: land on the + // start page (Get started / sign in). Saved wallets stay one Unlock away. + if (!ui.pw) { ui.screen = 'unlock'; ui.unlockTab = 'create'; ui.onb = { step: 'welcome' }; render(); } + }, // the identity the header avatar currently wears (login > seed key > // remembered) — profile "mine"-ness must match what the user clicked shownPubkey: () => (featureHook('nostrLoginIdentity') || {}).pubkey -- cgit v1.2.3