diff --git a/packages/dapp/src/dapp-connection-manager.ts b/packages/dapp/src/dapp-connection-manager.ts index 4cace07..99fe865 100644 --- a/packages/dapp/src/dapp-connection-manager.ts +++ b/packages/dapp/src/dapp-connection-manager.ts @@ -339,11 +339,13 @@ export class DappConnectionManager extends EventEmitter - console.error("[wizardconnect/dapp] Error pushing dapp_ready:", e), - ); - } + // Always send dapp_ready when wallet_ready is received — even if the wallet + // previously saw us (dapp_discovered=true). On reconnect after sleep/wake the + // relay may not have persisted the earlier dapp_ready, so the wallet would be + // stuck waiting. Re-sending is safe: the wallet is idempotent on dapp_ready. + this.pushDappReady().catch((e) => + console.error("[wizardconnect/dapp] Error pushing dapp_ready:", e), + ); this.emit("walletready", msg); }