Improve swap now UX: silent ephemeral wallet, network-aware dashboard links, labeled password prompts#369
Merged
Merged
Conversation
anderdc
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Several rough edges in the
alw swap nowflow surfaced on a mainnet (finney) miner:Scary mnemonic dump. During "Step 1/3: Reserving miner", the CLI printed fresh coldkey and hotkey mnemonics. These belong to the throwaway dendrite-lite ephemeral wallet (transport auth only, never holds funds), but a user has no way to know that — it reads like the tool just generated keys holding their money.
Wrong dashboard host. Reservation/swap links pointed at
https://test.all-ways.ioeven when the CLI is configured forfinney/netuid 7. The URL was hardcoded with only anALLWAYS_DASHBOARD_URLenv override and ignored the active network entirely.Unlabeled password prompts. The TAO flow prompts for the wallet password twice ("Enter your password" / "Decrypting" — bittensor's own text), with no indication of which password it wants or what each unlock authorizes.
Misplaced wallet notice. "TAO will be sent automatically from your wallet" printed at the very top of the flow, far from where the password is actually entered.
Fix
Pass
suppress=Truetowallet.create_if_non_existent(...)indendrite_lite.pyso the ephemeral wallet is created silently.Add a network-aware
dashboard_url(network=None)resolver inhelpers.py:finney→https://all-ways.iohttps://test.all-ways.ioALLWAYS_DASHBOARD_URLstill overrides everything.Routed all link builders (
view.py,swap.py,claim.py) through it, removing the hardcodedDEFAULT_DASHBOARD_URLconstant.Print a clear context line before each coldkey unlock:
Moved the "TAO sends automatically from your wallet ''" notice down to the unlock step, right next to the password prompt, and included the configured wallet name.
Testing
ruff check/ruff formatclean across all touched files