Merged
Conversation
Persist (deviceName → token) in localStorage after a successful ConnectWiFi. On the next mDNS discovery for that device, prefill the token input and show a "🔑 saved" tag. Each remembered device gets a small "✕" button to forget its token. Keyed by the Bonjour instance name (typically the device hostname) since the IP can change across DHCP leases but the name is stable. Tokens for an LAN-only test agent inside a desktop app are an acceptable trust boundary; this is not a credential vault. Pure frontend change — no Wails methods, no agent changes.
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.
Summary
Studio now remembers the agent token per discovered WiFi device. After a successful `ConnectWiFi`, subsequent mDNS-discovered sessions for that device prefill the token automatically — eliminating the only friction point in the v0.7.0 mDNS flow.
v0.7.1 PR 1 of 3.
How it works
Trust boundary
Tokens are persisted in the WebView's localStorage, which is sandboxed inside the Studio desktop app — same trust boundary as the user's filesystem. The agent token gates an LAN-only test surface (not production credentials), so this is an acceptable storage choice for v0.7.x. If we ever need real secret storage we'll move to macOS Keychain via the `keyring` Go package.
Keyed by name (not host:port) because IPs change across DHCP leases but device hostnames are stable.
Test plan