From 5ac8c93027d840e47994ad3ed916f5d1891da8b1 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sat, 1 Aug 2026 19:12:32 +0800 Subject: [PATCH] remove multiple wallets + monero auto-open + agents rules --- AGENTS.md | 2 + .../src/lib/states/monero-wallet.svelte.ts | 4 + .../src/lib/states/xrp-wallet.svelte.ts | 2 +- apps/desktop/src/routes/index.svelte | 35 +-- apps/desktop/src/routes/monero/index.svelte | 223 +++++------------- apps/desktop/src/routes/settings.svelte | 111 +++------ apps/desktop/src/routes/xrp/index.svelte | 89 +------ 7 files changed, 114 insertions(+), 352 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 46ba803..829a78d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,3 +2,5 @@ - Never commit changes unless explicitly told to do so. Always ask first or wait for the user's command. - Never manually edit `.router/router.ts` — sv-router auto-generates it from the filesystem. Just create the route file in the correct filesystem location. +- Only commit when explicitly told to do so. When asked to commit, always write a single simple line commit message. +- At the end of every response, always surface a "Pending from you" section listing anything you need from the user (decisions, permissions, credentials, confirming a plan, etc.). If nothing is pending, say "Nothing pending." diff --git a/apps/desktop/src/lib/states/monero-wallet.svelte.ts b/apps/desktop/src/lib/states/monero-wallet.svelte.ts index 7b9c0fc..9a5f829 100644 --- a/apps/desktop/src/lib/states/monero-wallet.svelte.ts +++ b/apps/desktop/src/lib/states/monero-wallet.svelte.ts @@ -82,6 +82,10 @@ export const MoneroWallet = () => { await checkStatus() } await listWallets() + if (wallets.length > 0) { + const pw = await moneroGetStoredPassword(wallets[0]) + if (pw) await openExistingWallet(wallets[0], pw) + } } const logout = async () => { diff --git a/apps/desktop/src/lib/states/xrp-wallet.svelte.ts b/apps/desktop/src/lib/states/xrp-wallet.svelte.ts index eaa33b5..60bcf71 100644 --- a/apps/desktop/src/lib/states/xrp-wallet.svelte.ts +++ b/apps/desktop/src/lib/states/xrp-wallet.svelte.ts @@ -80,7 +80,7 @@ export const XrpWallet = () => { ) if (walletList) { wallets = walletList - if (walletList.length === 1 && !currentWalletId) { + if (walletList.length > 0 && !currentWalletId) { currentWalletId = walletList[0].id } } diff --git a/apps/desktop/src/routes/index.svelte b/apps/desktop/src/routes/index.svelte index 1f5a505..0363f59 100644 --- a/apps/desktop/src/routes/index.svelte +++ b/apps/desktop/src/routes/index.svelte @@ -269,40 +269,7 @@ - {#if xrpWallet.wallets.length > 1} - - - XRP Wallets - - -
- {#each xrpWallet.wallets as wal} - - {/each} -
-
-
- {/if} - -
+
- {/each} -
- {#if moneroSelectedWallet} -
- {#if session.unlocked} - - {:else if w.biometricAvailable} - - {/if} -
- - -
-
- {/if} -
- {/if} -

- Or create a new wallet: -

- - {#if w.biometricAvailable} - - {/if} - {#if !moneroUseBiometric} - {/if} -
+ placeholder="Wallet name" + bind:value={moneroWalletName} /> -
-
-

- Restore from seed -

-