Repository navigation
fix(net): one devices list per Mousse ID account on the desktop - #1650
Merged
Merged
Conversation
Mousse ID now keeps one devices list per account and refuses a second one with `account_network`, at bind and on the connector calls of a computer whose list it folded into the account's list. - A computer that can leave its network without stranding anything (it hosts no Space, no other device holds a pass in its list, it keeps no bots) always takes the join sign-in, so it joins the account's list instead of binding a second one. A Space it only belongs to no longer keeps it out. - A computer that keeps its network and is refused at bind stops with a plain message and keeps working on its own; nothing of the refused sign-in stays. - A computer whose list was folded drops its sign-in and the hosted relay as when signed out, stops renewing, and Settings shows "Your devices are now on one list. Sign in again to join it." Its next sign-in joins that list. - Sign-in errors say "devices list" in plain words, never "binding". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hy when refused Co-Authored-By: Claude Opus 5.5 <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.
Problem
One Mousse ID account could hold several devices lists, so each computer saw only its own devices. Mousse ID now keeps one list per account. It refuses a second one with
account_network(HTTP 409), both at bind and on the connector calls of a computer whose list it folded into the account's list. The desktop has to handle that refusal.Change
account_networkfrom renewal or any connector call. It then drops its sign-in and the hosted relay as when signed out, and stops renewing.net.statusrecords no error for this.PlusStatus.reasonislist_merged, and Settings → Devices shows "Your devices are now on one list. Sign in again to join it." The next sign-in joins the account's list and clears the note.authority_offline("Open Mousse on it, then sign in again"). The computer keeps its network.net.plus.login.finisherrors now carry their details to the window, which turnsaccount_networkinto plain words and never says "binding".Verification
MOUSSE_PLUS_ROOT=/home/aeon/.cache/wt-plus-onelist node scripts/verify.mjs tests/net/plus/one-devices-list.test.ts tests/net/plus/hosted-computer-join.test.ts tests/net/plus/removed-computer-rejoin.test.ts tests/net/plus/profile.test.ts tests/net/plus/computer-join.test.ts tests/renderer/devicesPage.test.ts tests/renderer/plus-sign-in.test.ts --typecheck all: PASS, 7 files, 78 tests.tsc --noEmit -p tsconfig.node.jsonandtsc --noEmit -p tsconfig.web.jsonhad no errors.tests/net/plus/login.test.ts,tests/net/hosted-absent.test.ts,tests/net/plusLegacySwitch.test.ts,tests/net/transports/service.test.tsandtests/net/protocol/codec.test.ts: PASS, 12 files, 116 tests.tests/net/plus/hosted-computer-join.test.tswithMOUSSE_PLUS_ROOTat Mousse ID master e584d138 (bvsr365/mousse-plus refactor: remove dead and fragile features after gated review #34,account_networkand the fold): 6 of 6 passed against Mousse ID's real routes, sign-in service and relay. Two tests are new:reason: 'list_merged', and joins the kept list at its next sign-in.The fold state is made in the in-memory store the way the service folds at load. The fixture now maps Mousse ID refusals to HTTP codes as
apps/api/src/app.tsdoes; before, they came back as 500.tests/net/plus/one-devices-list.test.ts(new) runs through the realNetServiceand the local IPC registry against a hand-written stand-in of Mousse ID:account_network_keptdetails.authority_offlineand keeps the network.tests/renderer/devicesPage.test.ts: the account row shows the folded-list note, and a refused sign-in shows the plain message.tests/renderer/plus-sign-in.test.ts: both refusal wordings, with no "binding".Notes
NetService.tsis also touched by feat(teams): one access decision for routed calls from teammates, off by default #868 and thenet-engine-1b*branches, for unrelated features.account_networkand the fold). This PR expects that answer and changes nothing on Mousse ID.No issue
🤖 Generated with Claude Code