Skip to content

wallet: retire the two debug-mode experiments, and say what actually clears a stuck wallet - #42

Merged
ehsan6sha merged 1 commit into
mainfrom
wallet/retire-experiments-and-honest-hint
Sep 5, 2026
Merged

wallet: retire the two debug-mode experiments, and say what actually clears a stuck wallet#42
ehsan6sha merged 1 commit into
mainfrom
wallet/retire-experiments-and-honest-hint

Conversation

@ehsan6sha

Copy link
Copy Markdown
Member

Reverts the two debug-mode experiments

Reverts #40 (debug mode: publish the request but don't open the wallet) and #41 (debug mode: hand the wallet no return address). Both were diagnostics, and they did their job. Four device logs showed MetaMask wedged on its splash screen on every warm resume — via our deep link, via the manual button, via recent apps, with the redirect on, with it off — and working on every cold launch, with or without a deep link. That isolates the hang to MetaMask's own resume on that phone; nothing in the app distinguishes the working case from the failing one. Left in, the toggles would give anyone who enables debug mode for support an altered wallet flow for no further gain.

Untouched, deliberately: the return path. #36/#38's wake and #39's park-on-hidden are what took the return from the wallet from 8.6 s to under a second, confirmed three times in the same logs. This is a git revert of exactly the two experiment commits — relayWake.ts and diag.ts are not in the diff.

The stuck-wallet hint says what actually works

It stops blaming Android's battery restriction, which the same logs ruled out (the wedge appears within seconds of backgrounding; battery restriction acts over minutes). It now says the thing every log showed working: close the wallet from recent apps and open it again — from its icon, or with the button — and it shows the request. Same correction on docs.fx.land in functionland/docs#180.

Testing

npm test --workspaces clean; typecheck and lint clean. The reverted tests go with the reverted code; every relay-wake test stays and passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_013BpqXrkEPA9odTyRdK5Mnx

…clears a stuck wallet

Reverts #40 (debug mode: publish the request but do not open the wallet) and
#41 (debug mode: hand the wallet no return address). Both were diagnostics, and
they did their job: four device logs showed MetaMask wedged on its splash screen
on every WARM resume -- by our deep link, by the manual button, by recent apps,
with the redirect on, with it off -- and working on every COLD launch, with or
without a deep link. That isolates the hang to MetaMask's own resume on that
phone. Nothing in the app distinguishes the working case from the failing one.
Left in, the two toggles would give anyone who enables debug mode for support an
altered wallet flow for no further gain.

Untouched, deliberately: the return path. #36/#38's wake and #39's park-on-hidden
are what took the return from the wallet from 8.6 s to under a second, and the
same logs confirm it three times over. `git revert` of exactly the two
experiment commits; relayWake.ts and diag.ts are not in the diff.

The stuck-wallet hint stops blaming Android's battery restriction, which the
same logs ruled out (the wedge appears within seconds of backgrounding; battery
restriction acts over minutes). It now says the thing every log showed working:
close the wallet from recent apps and open it again -- from its icon or with
the button -- and it shows the request.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013BpqXrkEPA9odTyRdK5Mnx
@ehsan6sha
ehsan6sha merged commit 4bf1d46 into main Sep 5, 2026
2 checks passed
@ehsan6sha
ehsan6sha deleted the wallet/retire-experiments-and-honest-hint branch September 5, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant