Repository navigation
fix(unlock): choose wallet in Full Unlock instead of auto-minting local - #247
Merged
Merged
Conversation
…inting local The Full Unlock tutorial fired makeLocalWallet on open and showed a "creating" spinner. Because the device keypair at ~/.config/solana/id.json is never deleted on disconnect, redoing the tutorial silently re-adopted the same local wallet — so a user who disconnected to switch wallets got the wallet step skipped, with no way to choose Phantom. Replace the auto-mint `creating` screen with a `choose` screen that renders the canonical ConnectWallet chooser (device wallet or Phantom/web wallet). No wallet is minted until the user picks; both paths still end in walletConnected → Fund. The local keyfile is untouched — picking "device wallet" reuses it as before. Also add install-guide/github-token.md so agents know the GitHub token is injected via GH_TOKEN/credential-helper, where it's stored (~/.agentnet/tokens/github.json), and to tell the user to register one in Settings → GitHub when it's missing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What & why
Switching the local wallet was broken in the Full Unlock tutorial.
disconnectWallet) correctly clearswallet-mode.jsonand keeps the device keypair (~/.config/solana/id.json) — as intended.requestUnlock()firedmakeLocalWalletimmediately and showed acreatingspinner. SincelocalWallet()never deletes/overwrites the keyfile, redoing the tutorial silently re-adopted the same local wallet → the wallet step got skipped and there was no way to choose Phantom.Fix
creatingscreen with achoosescreen that renders the canonical<ConnectWallet embedded />chooser (device wallet or Phantom/web wallet). One source of truth for wallet detection/connect — no duplicated picker logic.requestUnlockno longer sendsmakeLocalWallet; the user picks. Both paths still end in awalletConnectedpush that flipsunlocked, and the existing effect advances to Fund.creatingTitle/creatingBody→chooseTitle/chooseStatus/chooseBody(en/ko/ru).Behavior
Docs
Adds
install-guide/github-token.md: how the GitHub token is injected into agents (GH_TOKEN/credential helper), where it lives (~/.agentnet/tokens/github.json), and how to register one in Settings → GitHub when missing — so agents don't get stuck hunting for it.Testing
Static review only — the npm registry was unreachable in my environment, so I could not run
vite build/tsc/vitest. Please let CI run. Changes are contained tosurfaces/webview(unlock provider + i18n) and docs.🤖 Generated with Claude Code