Repository navigation
Conversation
…count's list The invite section of Add PC > Ovis relay was drawn only where the page was the Mac app's (`OvisMac/` in the user agent) and held the account's list. No shipped app has both: the Mac app and the Electron app show the PC's own page, which never mounts the hosted shell or holds a page list, and the phone apps and the hosted app hold a list but are not the Mac app. So no invite could be made for `ovis join`. - AccountRelayPanel now draws InvitePc wherever the page holds the account's list. InvitePc keeps its own rule and draws nothing for a device that may not write the list. The switch and its warning line are unchanged. - A PC's own page (Mac and desktop apps, a browser on the PC's address), signed in to the account whose signed list the PC follows, says in Add a connection > Ovis relay where an invite is made. The PC itself signs no invites. - docs/account-list.md "Invites" says where the section is; a changelog fragment. This widens where an invite can be made (any device that may already write the list); it changes nothing about what an invite can do or who may write the list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Review standing in for CodeRabbit (its review was rate limited on this PR)No CodeRabbit review ran here. I read the diff (
No finding. The staging QA re-runs the invite checks from a real device after the merge. |
|
Closed in favour of #4723, which merges this branch together with the other fixes the signed-list staging QA asked for. Nothing of this pull request was dropped: #4723 is The description, the tests and the review of this change stay here; #4723's table links back to it. |
Summary
Fixes staging QA failure 3 of the signed member list (B6/B7): no shipped app could open Invite
a PC, so nobody could make an invite, and
ovis join --invite-file(the way an agent adds a PC)had no line to use.
This widens where an invite can be made (any device that may already write the list); it changes
nothing about what an invite can do or who may write the list.
Verified on main, from the code
InvitePcwas drawn only byAccountRelayPanel, and only wheninMacApp()(anOvisMac/useragent) and
pageAccountList()was not null (src/components/ConnectStart.tsx:636). The pagelist is set only by the hosted shell's account controller (
src/lib/relay/accountController.ts:167),which mounts only on a page marked
<meta name="ovis-shell" content="relay">(src/main.tsx),and only with an account service (
shellAccountServiceOf: the phone apps' native sign-in, or theapp.ovis.shorigin).AccountRelayPanel)OvisMac/app/mac)127.0.0.1page (App.tsx), noOvisAuthbridge127.0.0.1pageThe only combination that drew it was a browser with the Mac marker faked, which is how QA ran
B6/B7.
The change (the lead's ruling)
AccountRelayPaneldrawsInvitePcwherever the page holds the account's list: the phone appsand the hosted app in a browser, in the same place (Add PC → Ovis relay).
InvitePckeeps itsown rule: it draws nothing for a device that may not write the list (
list.writer() === null).Let the PC join by itself and its warning line are unchanged.
A PC's own page (the Mac app, the Electron app, a browser on the PC's address) cannot sign
invites, and this PR does not make the PC a signer. When it is signed in to the account whose
signed list the PC follows (
listofGET /api/account/status), its Add a connection → Ovisrelay now shows one sentence (ko/ja/zh added):
An account without a list has no invites, so the sentence does not appear there.
docs/account-list.md "Invites" says where the section is and what a PC's page shows instead.
docs/account.md has no "in the Mac app" line about invites, so it is unchanged.
Design reference (src/AGENTS.md): Tailscale's admin console, where any signed-in browser makes an
auth key for a new machine, not only one client app. The section itself is unchanged; only where
it is offered moved.
What a person sees
Before:
Add PC → Ovis relay showed the sign-in line and the QR/code, and no invites. The Mac and desktop
apps had no such tab at all.
After:
PC: Make an invite, the switch, and the line with Copy and the one-line command for an
agent. A device that may not write the list still sees none of it.
has one line saying where to make an invite.
Tests
Written first; both failed before the fix.
src/components/InvitePc.test.tsx: the relay tab offers invites on a device that may write thelist for each of the following user agents, and never on a device that waits to be let in or on a
page with no list:
This replaces the test that pinned Mac-only.
src/components/ConnectPhoneDialog.test.tsx: a PC's page signed in to the account whose listthe PC follows says where to make an invite, and draws no invite section. The sentence is absent
on an account with no list, on a PC in no account, and on a PC in another account.
src/components/RelayShell.test.tsx: one fixture's stub page list now answerswriter()(null),since the signed-in relay tab asks every page list that.
Validation
bun run check fastwas not run locally: the PC's heavy queue did not open for over an hour (load above 150); ran the typecheck, the convention tests and the touched test files; CI's Fast checks run the unit suite.bun run typecheck(exit 0);bun test --timeout 60000oversrc/components/InvitePc.test.tsx,src/components/ConnectPhoneDialog.test.tsx,src/components/RelayShell.test.tsx,src/components/ConnectStart.test.ts,src/lib/api.test.ts,src/lib/i18n.test.ts,scripts/changelog-fold.test.tsand the threeconventions.test.tsfiles: 445 pass, 0 fail.invite section is the existing one, and the own window's line is one
settings-hintparagraph.🤖 Generated with Claude Code