Repository navigation
Conversation
WP0 of multiple Silo users per device (User > Server > Profile). Adds the sign-in key, saved sign-in and user index records with their keychain store, the per-Apple-TV-user launch-state fields (all optional so saved state still decodes), Ask For, and the account scope readers. No behavior change yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
WP1 of multiple Silo users per device. TokenStore now serves a selected sign-in (server + account) instead of one slot per server, with add-or-refresh installs, rollback snapshots, per-sign-in refresh and expiry, and removal of a sign-in, a user, or a server. Existing per-server sessions migrate into one user once their account is known, failing closed on keychain errors. Sign-out refreshes an expired token before revoking, and only ever at the session's own server. Top Shelf follows the linked user's sign-in. A single-user device keeps today's behavior through interim placement rules that the flow package replaces. Co-Authored-By: Claude Opus 5.5 <[email protected]>
WP3A of multiple Silo users per device. Pure, tested decision logic: which user, server and credential to open at launch (with Ask For and the migration hints), where a finished sign-in goes and which prompt it raises, the server step every sign-in starts with, user naming with rename and duplicate-name rules, and the sign-out and removal copy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
WP3B of multiple Silo users per device. A user coordinator now decides what opens at launch (linked user, last server, Ask For), runs every sign-in path (password, network, device code, browser, phone pairing) through the mandatory server step and placement rules with the two questions, and handles Switch User, Change server, Add User, Add Server, rename, sign-out, remove and remove-server with the spec's fallback. Profiles are remembered per sign-in. Screens are plain stubs that the platform UI packages finish. Replaces WP1's interim rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tay apart WP2 of multiple Silo users per device. Profile IDs repeat across accounts on one server (every pre-profiles account has `default`), so response snapshots, downloads, UI customization and its outbox, title art, hidden libraries, seek intervals, browse and navigation preferences, tvOS library scope, episode spoilers, player settings, queued settings writes and push display targets now include the account. Data saved before accounts moves once to the account that owned the server's old session; no other account ever reads it. This also fixes downloads from one account showing up for another account on the same server. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of the user flows (WP3B). A sign-in that finishes after its screen was left is revoked instead of saved; a fallback active server no longer counts as launch history; Try again reopens the current server; Last used and the paired profile read without waiting; double presses run once; stopped pairings end their session; profile lists read under remote playback aren't cached; an unreadable index keeps diagnostics. Saved servers with no users always show "Sign in to…", Ask For also applies when returning to Who's Watching, isLoggedIn is false with nothing selected, and queued player-setting writes carry their account. Copy and card titles no longer repeat the server name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
WP4 of multiple Silo users per device. Choose a User with stacked profile avatars, Last used and Sign in again badges, and a long-press menu to rename or remove; Choose a Server with per-server sign-out; Sign in to…; the Switch User / Change server / Sign out footer on Who's Watching; Settings › Users; the Ask For row and "user › profile" pairing value in General; and the sign-in questions and sign-out confirmations with copy that says who is affected. Focus returns to the card or row that opened an overlay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
WP5 of multiple Silo users per device. Choose a User cards with stacked profile avatars and touch-and-hold (Control-click) rename and remove; Choose a Server with per-server sign-out; Sign in to…; Manage Users in Settings; the Who's Watching server menu with this user's servers, other users and Manage Users; the Ask For picker with device wording; native sign-out confirmations that name who is affected; and Switch Server actions that open this user's servers. Server setup gains Back and Cancel where a pushed screen had no way out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Not you?" on the TV approval card now reads Switch User and no longer warns about signing out; leaving the chooser, by picking a user or going back, returns to the card instead of leaving a stale approval queued. Profile settings writes and their pending edits carry the account. One shared ProfileAvatar replaces three copies, resolving card images against the card's own server. Downloads never delete files or folders for a scope whose store didn't load, and legacy cleanup handles the per-account layout. A failed server removal restores the profile only with its sign-in. Cancel from Add User reopens the profile it started from. Card accessibility labels use the full user name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A sign-in that finishes on another server's screen before migration is refused and revoked instead of saved into that server's slot. Servers that were signed out at the update hand their old local data to the household's next sign-in there. macOS windows follow a user switch, the account line and rename no longer repeat or pin names, tvOS Menu cancels the sign-in root, Choose a Server as the root offers Switch User, a verified pending server re-scopes its stores, and signing out of the current user's other server turns its pushes off. Removes the old "Not you? Switch account" auto-start, the switchAccount shim and other code the feature left unused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signing out or removing now keeps trying to end the session on the server: three tries with backoff, then a small keychain queue (shared by every Apple TV user, capped by age and count) retried at launch and on foreground, refreshing first and only at the session's own server. Changing the paired profile always ends on Who's Watching; a dropped duplicate legacy session is revoked when its tokens differ; "Active" marks only the current user's open server; Add Server with every server already in the user opens setup alone. Same-named servers show their host, duplicate user names no longer repeat a server, and the iOS server menu keeps each item's second line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every root NavigationStack shared router.path, so the sign-in stack being swapped out could read the Settings path that Cancel restored and try to push routes it has no destinations for, which asserted in debug builds and showed blank pages in release. Each stack now sees the path only while its own screen is showing, and writes from a stack being removed are ignored. Confirmations also add the host when a user has two servers with the same name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add User opened "Sign in to…" even when a server was already on screen. It now opens the sign-in for that server; Change server there still lists every saved server, and Cancel goes back as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedToo many files! This PR contains 175 files, which is 75 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configuration
📒 Files selected for processing: 175
You can disable this status message by setting the
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. Comment |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Each saved sign-in is now an account: a server URL, a server account, and its sign-in. The device-side "Silo user" that grouped one sign-in per server is gone, along with Change Server, Add Server, Choose a Server, rename, user naming, and the separate-user prompts. - Choose an Account shows one card per account: username, email when the server has one, and the server's name. Two people on one server are two accounts; one person on two servers is two accounts. - Add Account picks a saved server or a new one, then signs in. Signing in to an account that is already saved refreshes it. - Sign Out keeps the card (Sign in again); Remove forgets the account. Removing the last account on a server also forgets the server, through the registry's removal. Settings › Manage Servers is folded into Settings › Accounts. - Who's Watching offers Switch Account and Sign out. Ask For is Profile Only or Account + Profile. - Migration makes one account per server session. An index written by the earlier multi-user format is read as one account per sign-in.
A phone that sets the TV up with two or more accounts now leaves it on Choose an Account, focused on the last one sent, instead of opening that one. The setup summary says so. One sign-in still opens its Who's Watching.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
The active-server handler sent a blank TV to Who's Watching once the first account saved, which closed the setup screen and ended the phone's session mid-way. The setup screen already moves on itself when the phone is done. Paired accounts now keep their username, so Choose an Account names them.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
…ess away Apple TV's server step now always opens "Set up with your phone"; a Saved servers button opens "Sign in to…". First-run screens fade in by opacity on tvOS: the crossfade transition left the new screen with nothing focused.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
The list reads each server's branding when it opens, so servers added from a phone show their logo too.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
iPhone, iPad and Mac read each listed server's branding as Apple TV does, through a shared loader and MarqueeServerMark's app-icon fallback.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Resolves #862's download storage reclaim against account-scoped downloads: loads report both the store outcome and whether downloads not yet moved to their account are missing, the in-scope sweep runs only on a complete load at the account's path, and Other Download Data keeps the active account's scope (server, acct-<id>, profile) while listing the server's other accounts and profiles.
A slow server no longer holds back the others' logos, and the load restarts when the saved servers change, so a late result can't land on a stale list.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
…rk appears The letter tile is gone from every server mark. The phone-pairing screens read the pushed server's logo once the person allows the session, and Settings › Account and Server reads each server's current logo.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Manage Accounts' footer keeps that wording for Apple TV only, as the sign-out copy does.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Even a saved logo's image is a network request, so the Allow screen shows the Silo icon. After Allow, a branding result only lands while the phone is still pushing the same server.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Closes #182
Related issue: N/A
Validation tasks: changes #322 C2, C3; #323 C2, C3, C5; #326 C1; #327 C1, C3
Silo keeps one sign-in per server, so signing in to a second account on the same server replaces the first. A household sharing a device can't keep separate accounts, and on Apple TV every Apple TV user ends up on the same account.
The most common case is one person with different accounts on different servers, where the usernames usually differ too. This PR's first version grouped sign-ins into a device-side "Silo user" with one sign-in per server. In testing, that hid the account behind the group: a card read "testadmin · 2 servers", and signing in to a second server as
adminstill showed "testadmin". It also put server choosing (Change server, Choose a Server) in front of people.Approach
Each saved sign-in is its own account: a server address, a server account, and its sign-in. Servers are a detail of an account, not a level in the app.
mainbecomes one account per saved server session, with no new sign-in. A session whose account isn't known yet stays a pending account until the server names it, then takes over that server's old local data.No server changes are needed;
/api/v2/account/mealready returns the email. Android needs the same model; a separate issue will cover it.Validation
ArtworkURLTestsandImageSizeCapabilityTests, which fail the same way onmain, and, in earlier runs,ASSSubtitleRendererTests.testSupersededFontDownloadCannotFailOrFinishNewSelection, which fails intermittently.testadminon both servers, a second admin on one, and a second person on the other.main(package resolution).mainbuild on a device.Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-831/
Risks
Checklist
AI Disclosure
Note
Problem
Closes #182
Related issue: N/A
Validation tasks: changes #322 C2, C3; #323 C2, C3, C5; #326 C1; #327 C1, C3
Silo keeps one sign-in per server, so signing in to a second account on the same server replaces the first. A household sharing a device can't keep separate accounts, and on Apple TV every Apple TV user ends up on the same account.
The most common case is one person with different accounts on different servers, where the usernames usually differ too. This PR's first version grouped sign-ins into a device-side "Silo user" with one sign-in per server. In testing, that hid the account behind the group: a card read "testadmin · 2 servers", and signing in to a second server as
adminstill showed "testadmin". It also put server choosing (Change server, Choose a Server) in front of people.Approach
Each saved sign-in is its own account: a server address, a server account, and its sign-in. Servers are a detail of an account, not a level in the app.
mainbecomes one account per saved server session, with no new sign-in. A session whose account isn't known yet stays a pending account until the server names it, then takes over that server's old local data.No server changes are needed;
/api/v2/account/mealready returns the email. Android needs the same model; a separate issue will cover it.Validation
ArtworkURLTestsandImageSizeCapabilityTests, which fail the same way onmain, and, in earlier runs,ASSSubtitleRendererTests.testSupersededFontDownloadCannotFailOrFinishNewSelection, which fails intermittently.testadminon both servers, a second admin on one, and a second person on the other.main(package resolution).mainbuild on a device.Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-831/
Risks
Checklist
AI Disclosure
Changes since #831 opened
AccountsSettingsViewModel.footer(device:)to return different copy based on device sharing status, displaying personal device messaging that mentions keeping accounts for re-sign-in and forgetting them on this device for non-shared devices, while retaining the existing 'Everyone who uses Silo on this device shares these accounts' messaging for shared devices, and added test assertions inSignOutConfirmationCopyTests.testOnlySharedDevicesSayEveryoneIsAffectedto verify the word 'everyone' is excluded for personal devices and included for shared devices [a821a43]TVPairingReceiverView.bodytask block to enforce consent requirements and prevent stale updates [ba814e6]