You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(recommendations): mark a movie or series Not interested on phone and TV - #1105
Closes#984
Related issue: N/A
Validation tasks: none (the Recommendations cases #319 and #320 never mark a title, and nothing changes on Home until one is marked)
A profile can mark a movie or series Not interested on web and Apple, which keeps it out of that profile's recommendation and discovery rows. The Android phone and TV apps had no way to mark a title, clear a mark, or see which titles are marked. This adds all three.
Approach
Card menus and title pages (phone and TV): movie and series cards and the title page's More menu offer Not Interested, which reads Show in Recommendations once the title is marked. The action appears only when the server sends user_state.not_interested, so older servers don't show it. Episodes, seasons and other items don't get it.
Writes: PUT/DELETE /api/v2/not-interested/{item_id} run as a third membership kind beside favorites and the watchlist. They share the outbox, reconciliation and the notices for a change the server didn't confirm.
Home: once the server confirms a mark, the title leaves the rows the server filters (sections.HidesNotInterested) at once; the server's not_interested user-state event then refreshes Home, as it does for favorites and the watchlist. Continue Watching, Recently Added and the other rows keep it. On TV, focus moves to a neighbouring card when the focused card leaves its row.
Settings › Not Interested (under Library on phone, General on TV): the marked titles from GET /api/v2/not-interested, newest first and paged, each with Show in Recommendations. The entry shows only while GET /api/v2/capabilities/not-interested reports the feature. The list and the capability are read again after a profile switch, and the list keeps reading while a page shows nothing new.
Title pages re-read a mark this session already changed, so a change made on another client isn't overridden by the device's earlier one.
The strings come from Silo-Server/silo-translations#205 (English plus its translation pass), synced in local mode. That pull request merges first; this one then re-syncs to the release it publishes.
Validation
Phone and TV debug builds: pass.
Unit tests: the new Home and Settings list tests and the membership API tests pass. NotInterestedListViewModelTest.aPageThatShowsNothingReadsTheNextOne fails on 9c8f7c0 and passes with the review fixes. aPageHiddenByAClearThatLandsDuringItsReadReadsTheNextOne fails on 56b08c2 and passes on 0743817. An earlier full testDebugUnitTest run had 3 failures, all in androidAppFormattersTest (a comma instead of a point in a decimal), which this change doesn't touch.
On a phone emulator (Android 16) and an Android TV emulator (Android 14) against a local server with a test library, checked after each step with the API:
Card menu: mark and clear, on phone and TV.
Title page More menu: mark and clear.
Home: a marked title left a recommendation row and stayed in Recently Added.
Settings list: shows the marked titles, and Show in Recommendations clears the mark and removes the row. On TV, focus moves to the row that took its place, or to the row above when the last row leaves.
Surface and build: Android phone emulator (Android 16) and Android TV emulator (Android 14), debug builds of this branch. Before this change the menu entries and the Settings entry don't exist, so the captures show the new screens only. Tablet and foldable were not captured: no tablet or foldable emulator was available. The phone screens use the standard menu and Settings list layouts.
Risks
None identified. The client sends no Not interested request unless the server advertises the feature through user_state.not_interested or the capability endpoint.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
Add Not Interested marking for movies and series on phone and TV
Adds a NOT_INTERESTED membership kind across the sync layer: mark/clear writes use a dedicated route, reconcile from the mark read, and coalesce separately from watchlist (MembershipOutbox.kt, MembershipPort.kt)
Card context menus on Home, detail overflow menus, and TV detail action rows offer a mark/clear toggle for movie and series types, via NotInterested.canMark; the action is hidden when the mark is null
Home sections listed in NotInterested.hidingSectionTypes drop marked titles immediately, with section counts adjusted and emptied sections removed (HomeViewModel.kt)
Behavioral Change: MediaItemUserState gains a notInterested field and ItemDetail gains userState (user_state), so decoders now expect these nullable fields; profile switches clear the cached Not Interested mark and re-probe capability
… and TV
Movie and series cards and title pages get Not Interested, which reads
Show in Recommendations once the title is marked. The action shows only
when the server sends user_state.not_interested. Marks and clears go
through PUT/DELETE /api/v2/not-interested/{item_id} as a third
membership kind, so they share the outbox, reconciliation and
unconfirmed-change notices with favorites and the watchlist.
Once the server confirms a mark, Home drops the title from the rows the
server filters (sections.HidesNotInterested) and reads Home again;
Continue Watching, Recently Added and other rows keep it. On TV, focus
moves to a neighbouring card when the focused card leaves its row, even
if another row still shows the title.
Settings lists the marked titles from GET /api/v2/not-interested, each
with Show in Recommendations, under Library on phone and General on TV,
while GET /api/v2/capabilities/not-interested reports it available.
Translations are synced in local mode from silo-translations; the new
keys are English-only until the translation pass.
ClosesSilo-Server#984
…st focus
The TV Not Interested list reuses the Home Sections button and the list
focus helper, both apps share the row caption, and the Not interested read
shares the membership read. Restoring a row on TV now moves focus to the
row that took its place instead of the one above it.
This organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing.
Adds Not Interested membership support to Android phone and TV. Eligible movie and series cards and detail pages can mark or clear titles. Home filters marked titles from configured sections. Settings adds capability-gated lists with pagination and restore actions.
Changes: Not Interested membership flow
Layer / File(s)
Summary
Membership data and API shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/*, shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/*, shared/src/commonMain/kotlin/org/siloserver/silo/repository/*, shared/src/commonMain/kotlin/org/siloserver/silo/di/*, docs/membership-api-v2.md, shared/src/commonTest/kotlin/org/siloserver/silo/network/apiv2/MembershipV2Test.kt
Adds Not Interested membership state and operations, a paginated list API, and a capability check. Catalog details now carry user state.
Membership synchronization and Home filtering android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/sync/*, android-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/MembershipNoticeHost.kt, shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/HomeViewModel.kt, shared/src/commonTest/kotlin/org/siloserver/silo/viewmodel/HomeNotInterestedTest.kt, android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/data/sync/*, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvMembershipConsumerTest.kt
The outbox sends and reconciles Not Interested commands. Home applies membership state and filters marked titles from configured sections. Tests cover command reconciliation and Home updates.
Phone and TV card and detail actions androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/home/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/personal/PersonalMediaGridContent.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/*, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/*, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/home/*
Adds Not Interested menu actions to eligible movie and series cards and detail pages. Phone and TV detail state reflects membership actions.
Adds settings lists on phone and TV. The lists support loading, failure and retry states, pagination, opening a title, and restoring it to recommendations.
Localized strings and catalog metadata .silo-translations, android-shared/silo-locales.properties, android-shared/src/androidMain/res/values-*/strings_catalog.xml, android-shared/src/androidMain/res/values-b+zh+*/strings_catalog.xml, android-shared/src/androidMain/res/values/strings_catalog.xml
Updates translation metadata and generated Android catalogs. Adds localized Not Interested actions, settings and membership messages, additional error and playback-connection strings, and revised Up Next labels.
TV feed focus handling androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvHomeSectionsEditor.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/home/TvHomeSectionsTest.kt
The TV feed tracks the focused section when rows change. HomeSectionsControlButton becomes internal, and its test assertion is updated.
sequenceDiagram
participant CardMenu
participant HomeViewModel
participant MembershipActions
participant MembershipOutbox
participant MembershipV2Api
participant Server
CardMenu->>HomeViewModel: toggleNotInterested(itemId, true)
HomeViewModel->>MembershipActions: begin and perform membership action
MembershipActions->>MembershipOutbox: enqueue membership command
MembershipOutbox->>MembershipV2Api: markNotInterested(itemId)
MembershipV2Api->>Server: PUT /api/v2/not-interested/{item_id}
Server-->>MembershipV2Api: membership response
MembershipOutbox-->>HomeViewModel: confirm membership action
HomeViewModel->>HomeViewModel: filter marked title from configured sections
Loading
Suggested reviewers:quick104, rxwatcher
Merge Risk: Moderate · previous review 07438
The feature looks sound, but a few minor issues remain. Some Up Next labels may call a shuffled movie an episode, and a profile switch during a title load can briefly show the wrong Not Interested action. The translation pin must also point to a published release before merge.
Security architecture risk: Moderate · up to 07438
Not Interested uses Silo’s existing profile and membership controls. Two gaps remain: a Settings action from the previous profile can be accepted as a new action for the active profile, and rolling back an app while keeping its local data can interrupt sync for more than Not Interested.
Retained concerns
Minor · security · inferred: Bind Restore to the profile that supplied the Settings row. On phone and TV, the rendered callback carries only the title ID, while the view model begins a fresh intent under the current generation. If the old callback is dispatched after the identity changes but before the row is removed, it can clear an existing mark for that title in the newly active profile. The generation checks reject an old intent, not a new intent created from an old row.
Minor · reliability · observed: Contain unsupported outbox kinds during a rollback that retains Room data. The reviewed head persists a new operation kind. On the merge base, an eligible retained ready row reaches enum decoding and throws before it is claimed, leaving it eligible to fail subsequent drains. The exception stops the membership batch and occurs before the same drain reaches legacy sync. Retained reconcile or paused rows are also incompatible with the base’s pending-projection reader.
inferred — The observed Settings callers are in-app phone and TV surfaces, not a new externally callable Android endpoint. The stale-action consequence is limited to a title’s recommendation mark in the currently authorized profile; the inspected path does not confer another profile’s credentials or access.
Trust Boundaries and Controls
observed — List reads require Silo authentication and match the captured profile ID and token as part of the ownership check. Restore writes use separately captured durable authority. That protects previously recorded work from being reassigned, but the write interface does not carry the displayed row’s owner.
Dependencies
observed — The client pins list requests to a captured profile and checks that profile before and after the exchange. That verifies local request ownership, not who owns the returned data. The client relies on Silo Server to filter list contents and authorize each item operation for the acting profile; those server guarantees were not established by the client source.
Data and control flow
observed — Pagination keeps the first page’s captured owner. The view model discards results from superseded requests, clears the list when notified that identity is changing, and reloads after the change. Writes record a command and projection together before an inline or background sender can claim the command.
Resilience and Maintainability Implications
observed — Inline and background senders compete for the same command claim. Interrupted claimed writes move to reconciliation rather than automatic resend. A current-session notice can invoke Check Status, which reads server state without submitting another mutation; after restart, restored commands do not raise that notice by themselves. Observing the desired state is not proof the original write was acknowledged.
inferred — Read-only recovery depends on an item-level 404 meaning absence. If the route itself becomes unavailable and answers 404, the client cannot distinguish that from a cleared mark and can retire a pending clear as reconciled. The server’s error contract during capability withdrawal was not available.
Rollout and rollback
observed — Silo Server advertises Settings availability; the client checks that capability for the captured profile and refreshes it on identity changes. Title actions separately depend on the optional item-state field. These checks govern UI exposure, not dispatch of already-recorded work.
inferred — Before approving a data-preserving rollback, the release operator must verify that unresolved Not Interested rows were resolved or safely isolated, or use a rollback build that can handle them. The merge-base reader does not perform that check, and hiding the feature does not clear Room data.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: adding Not Interested marking for movies and series on the Android phone and TV apps. The changeset adds card and title-page menu actions, membership writes, Home filt…
Linked Issues check
Directly linked issue #984 is open. Its coding requirements map to the whole-PR changes (merge base cb588a3 to head 0743817):
- Card menus [#984]: NotInterested.canMark accepts only "movie" and "seri…
The description is related to the changeset. It states that Android phone and TV apps gain the ability to mark, clear, and list Not Interested titles for movies and series. It names the affected areas…
Full details: Title check
Explanation
The title names the main change: adding Not Interested marking for movies and series on the Android phone and TV apps. The changeset adds card and title-page menu actions, membership writes, Home filtering, and a Settings list. The title is specific and matches the primary change.
Full details: Linked Issues check
Explanation
Directly linked issue #984 is open. Its coding requirements map to the whole-PR changes (merge base cb588a3 to head 0743817):
Card menus [#984]: NotInterested.canMark accepts only "movie" and "series". Phone (MediaCardActions, MediaCardContextMenu) and TV (TvMediaCardActions, tvCardActions) show the toggle only when user_state.not_interested is non-null. The label changes to Show in Recommendations after marking. Episodes, seasons, and audiobooks do not receive the action.
Title pages [#984]: MovieDetailContent, SeriesDetailContent, and TvItemDetailScreen add the action to the More menu. ItemDetailViewModel and TvItemDetailViewModel derive the state only for markable types.
Writes [#984]: MembershipV2Api adds markNotInterested (PUT) and clearNotInterested (DELETE) on /api/v2/not-interested/{item_id}. MembershipOutbox and RoomMembershipPort handle NOT_INTERESTED, including reconciliation. MembershipOutboxTest covers the mark and clear routes.
Home [#984]: HomeViewModel removes a confirmed mark from rows whose type is in NotInterest.hidingSectionTypes, without a new Home read. HomeNotInterestedTest covers which rows keep or drop the title. Other rows keep it.
Settings list [#984]: NotInterestedV2Api.list calls GET /api/v2/not-interested with cursor paging. NotInterestedListViewModel covers newest-first order, paging, and continued paging when a page adds no visible titles. SettingsNotInterestedScreen (phone) and TvNotInterestedList (TV) show the list. NotInterestedCapability gates the entry.
Older servers [#984]: the action and the Settings entry are hidden when the server does not send the feature data or the capability reports unavailable.
Remaining uncertainty: TV focus behavior and profile-switch behavior are verified by code and unit tests. The emulator evidence in the PR description covers the main flows. The reviewer reports that final review fixes were not checked on a device. This does not remove any coding requirement from the mapping.
The translation pin and the x-platforms change for the strings are release tasks. They are non-coding and do not change this verdict.
Full details: Out of Scope Changes check
Explanation
Each changed area supports a #984 objective:
Membership kind and outbox changes (MembershipPort.Kind, MembershipOutbox, RoomMembershipPort, MembershipNoticeHost, MembershipActions.withMembership) add the third membership kind. The favorite and watchlist paths use the shared helper.
Detail and card projections (ItemDetailViewModel, TvItemDetailViewModel, CardActionsHelpers, TvCardActionsHelpers) show the new mark in the UI.
TvSkylineSectionFeed focus tracking and the HomeSectionsControlButton visibility change, with its TvHomeSectionsTest lookup update, support TV focus when a card leaves its row.
NotInterestedText.kt provides the caption for Settings rows.
Locale and string resources, the .silo-translations pin, and silo-locales.properties supply the new UI strings. The pin to a fork-only local revision is a merge-readiness concern. It is not a scope finding.
docs/membership-api-v2.md documents the new endpoints and behavior.
AndroidModule, AndroidTvModule, NetworkModule, and RepositoryModule register the new classes.
The MembershipActivationTest, MembershipOutboxTest, TvMembershipConsumerTest, CardWatchStatusTest, and TvHomeSectionsTest edits follow the new kind or the visibility change.
No changed area was found that is unrelated to #984. The three FormattersTest failures in the PR description come from an earlier run. The changed-file summary does not include the FormattersTest file. This does not prove absence, but it is not a scope finding.
Full details: Description check
Explanation
The description is related to the changeset. It states that Android phone and TV apps gain the ability to mark, clear, and list Not Interested titles for movies and series. It names the affected areas: card menus, title pages, Home rows, and Settings. It also cites the endpoints and the evidence captured, so it is specific enough to decide the check.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The Evidence section does not show the required comparisons or recording for these visible changes:
Not Interested menus and Settings list (androidApp/.../MediaCardActions.kt, MovieDetailContent.kt, SeriesDetailContent.kt, NotInterestedSettings.kt; phone app and androidTvApp/.../TvMediaCardActions.kt, TvNotInterestedList.kt; TV): the linked captures are described as new-screen-only, so before/after captures of the same screen with the same data are missing for phone and TV. The PR explains that tablet and folded/open foldable captures were unavailable.
Home filtering and TV focus relocation (shared/.../HomeViewModel.kt, androidTvApp/.../TvSkylineSectionFeed.kt; phone app and TV): provide before/after Home captures with the same data for phone and TV; the described captures do not cover Home. Add a recording of TV focus moving when the focused card leaves its row. Tablet and folded/open foldable captures were unavailable as noted.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
The reason will be displayed to describe this comment to others. Learn more.
Definite not-interested clear refusals are treated as unknown outcomes
A definite 4xx refusal from clearNotInterested is sent to reconciliation and can remain unresolved if the follow-up read fails. Surface definite refusals directly while continuing to reconcile ambiguous network and 5xx outcomes.
File android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/sync/MembershipOutbox.kt, line 71:
Definite not-interested clear refusals are treated as unknown outcomes
Handle a definite 4xx refusal from this mutation separately from an ambiguous network or 5xx outcome. The shared response handling currently sends every non-success into reconciliation, so a refused clear is not reported directly and can remain unresolved if the follow-up read fails. Extend the result and response handling to surface definite refusals while reconciling unknown outcomes.
**Also found in:**
- `android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/sync/MembershipOutbox.kt:70-70`
Kody rule violation: [Reconcile ambiguous mutation outcomes without replaying them](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/12d2fb1e-2010-487a-b35d-d4feb93e724b?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
The reason will be displayed to describe this comment to others. Learn more.
Not changed: this is the outbox's rule for every membership kind. Favorites and Watchlist send a 4xx to reconciliation the same way on main, and docs/membership-api-v2.md documents it (single attempt, then a read). Not interested only joins that path.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification. Since the existing membership contract explicitly specifies a single mutation attempt followed by reconciliation, and this change applies that same behavior to Not Interested, I would not require a separate 4xx handling change in this PR.
The possibility of an unresolved outcome if the follow-up read fails is a broader outbox concern, not a regression introduced by this change.
The reason will be displayed to describe this comment to others. Learn more.
Phone settings eagerly composes every loaded title
Keeping every loaded title in one lazy-list item retains and lays out offscreen posters, buttons, and rows. Emit each title from state.items as its own keyed lazy-list item so offscreen rows can be disposed.
Prompt for LLM
File androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/NotInterestedSettings.kt, lines 78-80:
Phone settings eagerly composes every loaded title
Every loaded title is composed inside a single lazy-list item, so scrolling through many pages retains and lays out every poster, button, and row even when offscreen. Emit each title as its own keyed lazy-list item so offscreen rows can be disposed.
The reason will be displayed to describe this comment to others. Learn more.
Agreed; I've left it for a maintainer to decide, since keyed per-row items need the grouped-card layout rebuilt per row and checked visually. See my review comment on the same line.
The reason will be displayed to describe this comment to others. Learn more.
That sounds reasonable. A maintainer can weigh the performance benefit against the layout work and visual verification needed to preserve the grouped-card appearance.
The reason will be displayed to describe this comment to others. Learn more.
Capability is not rechecked after an in-place profile switch
Switching profiles while Settings remains composed can hide the entry for the new profile because LaunchedEffect does not rerun. Refresh notInterestedCapability when the identity generation changes on both phone and TV.
Prompt for LLM
File androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsScreen.kt, lines 126-129:
Capability is not rechecked after an in-place profile switch
Switching profiles while Settings remains composed invalidates the cached capability, but the effect does not rerun because its singleton key is unchanged, hiding the entry for the new profile. Refresh the capability when the identity generation changes on both phone and TV.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Rechecking the capability on identity changes while Settings is shown addresses the reported profile-switch issue on both phone and TV. I haven’t independently verified the fix.
The reason will be displayed to describe this comment to others. Learn more.
TV pagination stops when the loaded titles are all restored
Clearing every loaded title leaves the TV list empty even when another page remains, because loadMore() only runs when a title receives focus. Request the next page when the displayed list is empty and hasMore is true.
Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvNotInterestedList.kt, lines 184-187:
TV pagination stops when the loaded titles are all restored
Clearing every loaded title while another page remains leaves the TV list empty, because `loadMore()` is only triggered when a title receives focus. Request the next page when the displayed list becomes empty and `hasMore` is true.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ddfdb0d: the list view model keeps reading while more pages remain and nothing new is shown, so neither app is left with an empty list. New test aPageThatShowsNothingReadsTheNextOne fails on 9c8f7c0 and passes now.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. The reported fix in ddfdb0d addresses the pagination issue for both apps, and the regression test provides coverage. I haven’t independently verified the commit or test results.
The reason will be displayed to describe this comment to others. Learn more.
List responses can publish after an identity change
A response from an old server or profile can publish stale titles and become the owner of later pages. Capture the identity generation with pageOwner, recheck both before publishing, and invalidate or reload retained list state when the identity changes.
File shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/NotInterestedListViewModel.kt, line 132:
List responses can publish after an identity change
This check rejects superseded list requests but does not reject a response after the active server or profile changes. A response captured under the old identity can therefore publish its titles and become the owner for later pages. Capture the identity generation with `pageOwner`, recheck both immediately before publishing, and invalidate or reload retained list state when the identity changes.
Kody rule violation: [Bind settings operations and serialization to their captured identity](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/abb88112-0a6f-40ca-a606-f3e0c011a824?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
The reason will be displayed to describe this comment to others. Learn more.
A response can't publish after an identity change: ownedV2Call checks the owner again after the exchange and returns identity_changed. The retained list state was the real gap; ddfdb0d resets and reloads the list when the identity generation changes.
The reason will be displayed to describe this comment to others. Learn more.
The distinction makes sense: if ownedV2Call rejects a response after the identity changes, the original response-publication concern is mitigated. Resetting and reloading the retained list on an identity-generation change addresses the separate stale-state gap.
I couldn’t verify commit ddfdb0d because the PR file-content lookup returned no content, so that assessment is based on your description.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 7
Architecture findings (1)
Advisory architecture findings (1)
Minor — A data-preserving rollback can interrupt shared membership recovery for an affected profile. The PR stores MEMBERSHIP_NOT_INTERESTED in the existing queue. The base build's recovery query does not filter by operation kind, and its enum decoder rejects the new value. If the row survives rollback and is selected under the same authority, decoding can fail the whole batch, including pending favorites or watchlist changes. This is a rollback containment issue, not a cross-profile write.
All loaded titles sit inside one item. Each composition of that item invokes NotInterestedRow for every loaded title. After ten default-sized pages, that is 500 rows. Use keyed lazy entries based on contentId so pagination does not grow one large composed item.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 4a9f7257-44c7-4e32-a4cd-14a9c44ac0fd
Commits
Reviewing files that changed from the base of the PR and between cb588a3 and 9c8f7c0.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Use content-neutral Arabic text for upNext_playNow.
The Arabic value تشغيل الحلقة التالية means "Play next episode". The TV next-up overlay can show a non-episode item (TvPlayerScreen.kt:3702-3703 checks !nextEpisode.isEpisode), and its play button uses the same key without a content-type guard (TvPlayerScreen.kt:3730). For that item, the button text names the wrong content type. The English source, Play Next Up, is content-neutral and does not have this problem.
Revise the Arabic translation so it does not name episodes. Apply the change in the translation source (silo-translations) and regenerate android-shared/src/androidMain/res/values-ar/strings_catalog.xml. Do not edit the generated catalog by hand.
The reason will be displayed to describe this comment to others. Learn more.
Not from this PR: these values are already on silo-translations main (from Silo-Server/silo-translations#163, which renamed the button to Play Next Up and describes it as starting the next episode). This branch only syncs them in with its own keys, and any later sync would bring them in too. A wording change belongs in the catalog.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Up Next labels a shuffled movie as an episode.
The Czech upNext_playNow value is now Přehrát další díl ("Play next episode"). Both Up Next panels use this key for the play action whenever a next item exists. A shuffle can supply a movie as that next item. The phone panel shows the action at PlayerNextUpScreen.kt:315, and the TV panel shows it at TvPlayerScreen.kt:3730. The label therefore describes the action as an episode for a movie.
Make the play-action label describe the item it starts. Use wording that also fits movies, or choose an episode label only when the next item is an episode. The Danish and German catalogs use the same episode wording and need the same correction.
The reason will be displayed to describe this comment to others. Learn more.
Not from this PR: these values are already on silo-translations main (from Silo-Server/silo-translations#163, which renamed the button to Play Next Up and describes it as starting the next episode). This branch only syncs them in with its own keys, and any later sync would bring them in too. A wording change belongs in the catalog.
The reason will be displayed to describe this comment to others. Learn more.
@Quick104 Thanks for the context. I understand that the wording change belongs in the translation catalog, outside this PR. I won’t mark the finding as addressed.
Learnings added
Learnt from: Quick104
Repo: Silo-Server/silo-android PR: 1105
File: android-shared/src/androidMain/res/values-cs/strings_catalog.xml:3973-3973
Timestamp: 2026-11-30T17:00:24.972Z
Learning: Within repository "Silo-Server/silo-android", only for files matching one of ["android-shared/src/androidMain/res/values-cs/strings_catalog.xml"]: The Czech catalog at android-shared/src/androidMain/res/values-cs/strings_catalog.xml is generated from silo-translations catalog/*.arb and must not be edited directly. Propose wording corrections in the source translation catalog, because a later sync can reintroduce the source wording.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the Up Next play label valid for shuffled movies.
The shared upNext_playNow resource is used on Up Next surfaces where a shuffled movie can be the next item. For example, TvPlayerScreen.kt shows a movie pick in the shuffle panel and renders this label on the play row. PlayerNextUpScreen.kt uses the same label. The English base is Play Next Up, but this PR changes the Japanese, Korean, and Lithuanian values to say "next episode." In those locales, the play button can tell the user to play an episode when the pick is a movie.
Keep this label neutral, as in the English base string. If the episode wording is needed, use a separate resource that the UI selects only when the next item is an episode.
The reason will be displayed to describe this comment to others. Learn more.
Not from this PR: these values are already on silo-translations main (from Silo-Server/silo-translations#163, which renamed the button to Play Next Up and describes it as starting the next episode). This branch only syncs them in with its own keys, and any later sync would bring them in too. A wording change belongs in the catalog.
The reason will be displayed to describe this comment to others. Learn more.
@Quick104 You’re right. This file is generated from the translation catalog, so the wording change belongs in the catalog. I won’t mark the finding as addressed.
Learnings added
Learnt from: Quick104
Repo: Silo-Server/silo-android PR: 1105
File: android-shared/src/androidMain/res/values-ja/strings_catalog.xml:3676-3676
Timestamp: 2026-11-30T17:00:29.223Z
Learning: Within repository "Silo-Server/silo-android", only for files matching one of ["android-shared/src/androidMain/res/values-ja/strings_catalog.xml"]: The file android-shared/src/androidMain/res/values-ja/strings_catalog.xml is generated by silo-translations from catalog/*.arb and is marked do not edit. Make wording changes in the source catalog; a later sync can restore the catalog value if the generated file is edited directly.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Use a label that does not name episodes for the play-next action.
The Swedish string upNext_playNow now reads "Spela nästa avsnitt" ("Play next episode"). The English source reads "Play Next Up". The same button renders for shuffled picks. A shuffle from a library scope can publish a movie as the next pick, so the button can label a movie as an episode.
Use wording that fits both episodes and movies, consistent with the English source. For example, "Spela nästa" keeps the same action without naming the item type.
The reason will be displayed to describe this comment to others. Learn more.
Not from this PR: these values are already on silo-translations main (from Silo-Server/silo-translations#163, which renamed the button to Play Next Up and describes it as starting the next episode). This branch only syncs them in with its own keys, and any later sync would bring them in too. A wording change belongs in the catalog.
The reason will be displayed to describe this comment to others. Learn more.
@Quick104 Thanks for clarifying. The wording change belongs in silo-translations, not the generated Android file. I won’t mark the finding as addressed.
Learnings added
Learnt from: Quick104
Repo: Silo-Server/silo-android PR: 1105
File: android-shared/src/androidMain/res/values-sv/strings_catalog.xml:3775-3775
Timestamp: 2026-11-30T17:00:42.756Z
Learning: Within repository "Silo-Server/silo-android", only for files matching one of ["android-shared/src/androidMain/res/values-sv/strings_catalog.xml"]: The Swedish Android resource file `android-shared/src/androidMain/res/values-sv/strings_catalog.xml` is generated from the `silo-translations` catalog. Propose wording changes in the source catalog rather than editing the generated XML, because a later sync can restore the catalog wording.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
…and profiles
- Title pages re-read a Not interested mark this session already changed, so a
change made on another client replaces the retained baseline instead of
being overridden by it. A profile switch hides the action until the page is
read again rather than offering the previous profile's.
- Settings › Not Interested reloads on a profile switch, keeps reading while a
page shows nothing new (every listed title put back, or a page the server
left empty), and the Settings entry probes the capability again for each
identity.
- Home no longer reads itself again on a confirmed mark: the server's
not_interested user-state event already refreshes it, as it does for
favorites and the watchlist.
- TV: the list asks Done for focus when its last row leaves, and the Explore
all removal check finds its row by id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
Review of 9c8f7c0, with the server contract checked against current silo-server main (endpoints, marked_at, paging, capability states, and the section types match).
The main problem is on the title pages: a Not interested mark this device made earlier outranks a fresh page read, so the menu can offer the opposite action. The rest are smaller identity, paging and focus gaps in the new Settings list, a duplicate Home read per mark, and the local translation pin. One more, not on a changed line: the TV Explore all removal check (TvSkylineSectionFeed.kt:430) still finds its row by index, which moves when a row above leaves; I'm switching it to the row id the branch now tracks.
I'm fixing everything marked as such in commits on this branch.
The reason will be displayed to describe this comment to others. Learn more.
Low, not fixed here: the phone list isn't lazy. Every loaded row, poster included, composes inside one LazyColumn item, and the footer pages automatically, so a long list composes and lays out every row on each change. Emitting each title as its own keyed item needs the grouped-card look rebuilt per row (the page spaces items by sectionGap), which wants a visual check, so I've left it for a maintainer to decide.
The reason will be displayed to describe this comment to others. Learn more.
Nit, not fixed here: the neighbouring rows match translated settings_search_terms_* keys plus English; this row matches English terms and the translated title only. A settings.search.terms.notInterested catalog key would bring it in line.
The reason will be displayed to describe this comment to others. Learn more.
Blocks merge: the strings are pinned to a local catalog build.version=local-… with sha256=- names a commit that isn't a published silo-translations release, and CI's check-translations fails on it (the Select CI work job). The catalog PR, Silo-Server/silo-translations#205, was also missing its translation pass, so translations-complete failed there.
I've pushed the translation pass to #205 and re-synced this branch against it with --local. Once #205 merges and its release publishes, this branch needs scripts/sync-translations --version <release>.
The reason will be displayed to describe this comment to others. Learn more.
Pushed the translation pass to Silo-Server/silo-translations#205 (ec136c7, 18 keys in 38 languages, validator clean) and re-synced this branch against it in 302fe77. The re-pin to a published release still has to wait for #205 to merge.
🤖 Claude Code (claude-opus-5-5)
silo-triageBot
added
size/XXXL
3000+ added + deleted lines (all files); change volume, not priority.
and removed
size/XXL
1000–2999 added + deleted lines (all files); change volume, not priority.
labels
Nov 30, 2026
The reason will be displayed to describe this comment to others. Learn more.
Profile switching permanently hides the Not interested action
The action stays hidden for the new profile on phone and TV because loadUserState() does not reload detail.userState.notInterested. Reload the detail or populate the field with an identity-scoped read.
Prompt for LLM
File androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt, lines 313-314:
Profile switching permanently hides the Not interested action
Switching profiles clears `detail.userState.notInterested`, but `loadUserState()` only refreshes membership baselines and never reloads the detail, so the action stays hidden for the new profile on both phone and TV. Reload the detail for the new profile or populate its Not interested field from an identity-scoped read.
The reason will be displayed to describe this comment to others. Learn more.
Deliberate: hiding the action is the safe failure, since the alternative offered the previous profile's mark. It lasts only while that page stays open, and the app's profile switch goes through profile selection, which normally leaves the title page anyway. Reading the mark for the new profile on the open page would add an identity-scoped read for a rare path, so I've left it for a maintainer.
The reason will be displayed to describe this comment to others. Learn more.
That tradeoff makes sense: hiding the action avoids displaying or acting on the previous profile’s state. The limitation is confined to a title page that remains open across a profile switch; reopening the page should load the new profile’s state.
I’d leave the identity-scoped refresh as a maintainer decision rather than treat this as a high-severity issue.
The reason will be displayed to describe this comment to others. Learn more.
Confirmed clears no longer refresh Home when realtime is disconnected
Previously filtered recommendation rows remain missing if the websocket is disconnected when a clear completes. Restore a confirmation-triggered Home refresh instead of relying exclusively on realtime delivery.
Prompt for LLM
File shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/HomeViewModel.kt, lines 123-126:
Confirmed clears no longer refresh Home when realtime is disconnected
A confirmed clear no longer refreshes Home unless the websocket delivers its event, so a mutation completed while the socket is disconnected leaves previously filtered recommendation rows missing until another refresh occurs. Restore a confirmation-triggered Home refresh rather than relying exclusively on realtime delivery.
The reason will be displayed to describe this comment to others. Learn more.
Not changed: this now matches Favorites and Watchlist, which rely on the same realtime user-state refresh. A confirmed mark still leaves the suggestion rows at once through the overlay. A cleared title returns on the next Home read, and the realtime Connected event triggers one when the socket comes back. The removed collector read Home a second time for every mark while realtime was up, which was the common case.
The reason will be displayed to describe this comment to others. Learn more.
That tradeoff makes sense. The clear can leave Home stale while the socket is disconnected, but the reconnect-triggered read limits the stale period and matches the existing Favorites and Watchlist behavior. Avoiding a duplicate Home read for every mark is a reasonable reason not to restore the collector.
I’d withdraw the suggestion, assuming a Connected event reliably triggers a Home read after reconnection.
Since the prior evidence report, the latest commits add or change visible behavior that the linked new-screen-only captures do not show:
TV focus behavior (TvNotInterestedList.kt, TvSkylineSectionFeed.kt): focus now moves to Done when the last Not Interested row leaves, and Home tracks the focused row by identity. Please add a recording of these focus transitions on Android TV.
Up Next copy (android-shared/src/androidMain/res/values/strings_catalog.xml and locale catalogs): the play action changes from “Play Now” to “Play Next Up” (with localized equivalents) on phone and TV. Please add before/after captures of the same Up Next screen and item on those surfaces.
Profile-switch behavior (SettingsScreen.kt, TvSettingsScreen.kt, and the detail view models): the capability entry and Not Interested action now refresh or hide when the active profile changes. Please add a recording of the profile-switch flow on phone and TV.
The PR already explains that tablet and foldable captures were unavailable; this comment does not ask for those again.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
…witch finishes
The identity generation moves before the new profile is installed, so a
list reload or capability probe keyed on it could ask as the departing
profile. The list now clears as the change starts and reads again once it
finishes, and the Settings entry probes again at the same point. A page
whose cursor doesn't move ends paging instead of reading itself forever.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The latest profile-switch fix still lacks evidence: the linked captures are described as new-screen-only and do not show Settings refreshing the capability/list after the active profile changes. Add a recording of that flow on the phone app and Android TV; the tablet and foldable capture limitation is already noted.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Reviewed head: 4f97c8e (the contributor's 9c8f7c0 plus seven review commits).
Fit: 8/10 · Readiness: 7/10 — conditional (assuming CI is green)
Fit. This brings Android phone and TV level with web and Apple on a server feature that already ships, through the existing membership outbox and a capability check, so it fits. It is new client surface during the 1.0 polish period, which keeps it below 9.
Readiness. The approach is sound, the server contract matches (endpoints, marked_at, paging, capability states, and the section types the server filters), and the review findings that would have shown the wrong action or the wrong profile's data are fixed. It stays conditional on two things: the translation pin still names a local catalog build, and the fixes were checked with builds and unit tests, not on a device.
Title pages re-read a mark this session already changed, so a change made on another client is no longer overridden by the device's earlier mark. A profile switch hides the action until the page is read again, rather than offering the previous profile's.
The Settings list keeps reading while a page shows nothing new. Before, it could strand an empty list with more pages left on TV, and on phone when a page added no rows.
The capability is probed again for each identity.
Home no longer reads itself a second time per mark: the server's not_interested user-state event already refreshes it.
On TV, Done gets focus when the last row leaves, and the Explore all removal check finds its row by id.
8d5fa96: the list and the capability probe now wait for a profile switch to finish before reading. The identity generation moves before the new profile is installed, so a reload keyed on it could ask as the departing profile. A page cursor that doesn't move now ends paging instead of looping.
56b08c2: when a profile or server switch finishes, the Settings capability check drops its earlier answer before asking again. Before, a check that started mid-switch could store the departing server's answer for the new identity, and a failed follow-up check left it in place (Kody's follow-up).
0743817: the Settings list kept reading only while a page added no titles at all. A clear confirmed while the next page was being read could hide every title that page added, and the list then stopped with more pages left (CodeRabbit). It now judges a page by the titles it added that are still shown.
4f97c8e: a Settings row could still be tapped once a profile switch had begun, before the list dropped its rows. Its Show in Recommendations then cleared that title's mark for the profile taking over (CodeRabbit). The list now acts only while its rows were read under the current identity and still list the title.
7a91997: TvHomeSectionsTest looked for private fun HomeSectionsControlButton(. This branch made the button internal, so the test quietly checked the whole file instead of the button; it now finds the button again.
NotInterestedListViewModelTest.aPageThatShowsNothingReadsTheNextOne fails on 9c8f7c0 and passes now. The Home test now checks that a confirmed mark drops the card without a second read. Phone and TV debug builds pass, as do the shared, android-shared membership, and TV membership unit tests. On 56b08c2 the shared Not interested and Home tests pass again. aPageHiddenByAClearThatLandsDuringItsReadReadsTheNextOne fails on 56b08c2 and passes on 0743817, with the other list and Home Not interested tests. restoreFromARowAProfileSwitchLeftBehindSendsNothing fails on 0743817 (it records a clear for the new profile) and passes on 4f97c8e, with the other list and Home Not interested tests.
Left for the maintainers
Main has moved. 17 commits on main change ten of this branch's files (the DI modules, the phone and TV cards, both Home screens, TV Settings, CatalogModels.kt). The branch still merges cleanly, but main should be merged in and both apps built again before it lands.
Translation pin (blocks merge)..silo-translations names local-ec136c7f8672, which exists only on the contributor's silo-translations fork. CI's check-translations clones the public catalog and can't check that commit out, so it fails on every run (the last run timed out in that clone). Rerunning won't help. Once silo-translations#205 merges and its release publishes, the branch needs scripts/sync-translations --version <release>.
Device check of the review fixes. The TV focus changes (Done after the last row leaves, Explore all by row id) and the profile-switch handling were checked with builds and unit tests, not on a phone or TV. The evidence page still shows the original flows.
Phone list composes every row in one lazy item. Splitting it into keyed items needs the grouped-card look rebuilt per row and a visual check. It matters only for long lists.
Search terms. The Settings row matches English terms and its translated title, not a translated settings_search_terms_* key like its neighbours. This is a nit.
Known edges I left alone. After a profile switch, an open title page hides the action until it is opened again. A title page whose detail load is still in flight when the profile changes shows the previous profile's data once the load lands, the mark included; that comes from main's detail load and is filed as Title page shows the previous profile's data when a profile change lands during its load #1137 to follow this merge. A title page's quiet refresh (returning from the player) doesn't re-read the mark, which matches Favorites and Watchlist. While the realtime connection is down, a cleared title returns to Home's suggestion rows only on the next Home read.
Other feedback
The Kody note about 4xx refusals going to reconciliation describes the outbox's rule for every membership kind, not something this PR adds.
Kody's follow-up on the capability check (a failed follow-up probe keeping the departing server's answer) is fixed in 56b08c2. Kody accepted the replies on the hidden action after a profile switch and on Home with realtime down.
Later Kody and CodeRabbit notes cover the known edges above: the action hidden after a profile switch, Home with realtime down, the capability probe during a switch, and the quiet refresh. I answered each in its thread.
CodeRabbit's review of 56b08c2: the list paging gap is fixed in 0743817. Its note that the TV title page keeps the action hidden after a profile switch is the known edge above. Its note about a detail load in flight across a profile switch is Title page shows the previous profile's data when a profile change lands during its load #1137. Its three summary-level notes I left as they are: an older build installed over this one with a Not interested write still queued could stop the outbox (it needs a downgrade, which app stores don't do); a 404 from the per-item read counts as no mark, the convention CodeRabbit notes Favorites and Watchlist already use, on a route the client calls only when the server advertises the feature; and a kept baseline after a failed refresh is the stale-mark edge already discussed on the TV title page, which a successful read or reopening the page corrects.
CodeRabbit's review of 0743817: binding Show in Recommendations to the row's profile is fixed in 4f97c8e. Its rollback note repeats the earlier one: an older build reads the new outbox row only after a sideloaded downgrade, since app stores don't downgrade and both apps turn off backup. I left it as it is.
Validated features: no passed case regresses. The TV Home focus change touches the same code as the curated-sections remote cases (Curated home sections — Android TV #316 C5) but keeps their behavior. Validation tasks: none stands.
User manual: siloserver.org mentions Not interested titles only in the data export page, and no page says how to mark or clear one on any client. I recommend a siloserver.org issue covering the action and the Settings list, on the Home or recommendations pages.
Other clients: Apple already has both parts (silo-apple#1214, #1327), Roku is tracked in silo-roku#95, and web already has both.
Evidence: the published captures show the menus and the Settings list as the contributor recorded them. They don't cover the review fixes' focus and profile-switch behavior (see above).
Council
Sol (gpt-6.2-sol), Opus (claude-opus-5-5), and Gemini (gemini-4-neon) each reviewed at medium effort.
Round 1 on 9c8f7c0: Sol 7/10, Opus 7/10, Gemini 6/10. They agreed on the stale title-page mark, the translation pin, and the list's identity and paging gaps, all fixed above.
Round 2 on 302fe77: Opus 8/10, Sol 6/10, Gemini 7/10. Sol's and Gemini's main point, the reload racing a profile switch, is fixed in 8d5fa96, and so is the repeated-cursor loop both raised. Gemini's weakened-test finding is fixed in 7a91997. No round ran on 8d5fa96, 7a91997, 56b08c2, 0743817, or 4f97c8e.
…behind
A probe that starts after the identity generation moves but before the new
identity is installed asks as the departing one and stores its answer under
the new generation. If the probe at the end of the change then failed, that
answer stayed. Drop it when the change finishes, before probing again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A data-preserving client rollback can break shared sync and membership recovery. The merge-base client selects unresolved rows without filtering by kind, then throws when it encounters the new enum value. Ready work can abort the sync pass before unrelated operations are drained; reconciliation and paused rows can interrupt pending-state restoration for the matching login and profile.
2
If a server stops serving the per-item route and returns 404, the client cannot distinguish that response from a cleared mark. An unacknowledged clear can then be reconciled and removed from the outbox without establishing the profile&`#39`;s actual state. This extends an existing membership read convention to the new, capability-gated route; whether a deployed server returns that response during rollback was not verified.
On phone detail, a retained Not Interested baseline can override a newer server field after a failed refresh. The next action uses that projected value, so it can repeat a mark or clear already applied by another client instead of offering its inverse. This affects titles with a retained baseline in the same identity; a successful refresh or identity reset can correct it.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 9e431d81-a7ab-4e6e-b1c1-60bf14f80cb4
Commits
Reviewing files that changed from the base of the PR and between 9c8f7c0 and 56b08c2.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Data Integrity & Integration · Quick win
A profile switch during a detail load can restore the previous profile's Not interested mark.
The generation collector clears the mark at ItemDetailViewModel.kt:313, but it does not cancel the in-flight detailLoadJob. When that load finishes, lines 552-560 publish the detail it fetched under the previous profile. That detail carries the previous profile's mark. The title page then shows the wrong action. Tapping it at lines 1778-1782 sends the inverse of the previous profile's mark for the new profile.
The window is narrow. It needs a switch while the load is pending. Reopening the title corrects the state.
Cancel or guard the in-flight load on a profile switch. Either cancel detailLoadJob in the generation collector before it calls loadUserState(), or capture the membership generation when the load starts and skip publication at lines 552-560 when it has changed. Keep the publication unchanged when the generation has not changed.
The reason will be displayed to describe this comment to others. Learn more.
Not changed in this PR. The window comes from main: loadDetail publishes a detail fetched before a profile switch without checking who owns the page, so there the page already shows the previous profile's watched state, progress and rating. The Not interested mark rides along with that data. A tap still sends what the label says and lands for the new profile, so clearing an unmarked title does nothing on the server. The guard belongs on the detail load as a whole, and that change touches the collector this PR edits, so it is filed as #1137 to follow this merge.
@Quick104 Confirmed: the base revision has the same detail-load race, and #1137 covers the Not Interested impact. I’m not marking the finding as addressed.
Learnings added
Learnt from: Quick104
Repo: Silo-Server/silo-android PR: 1105
File: androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt:313-313
Timestamp: 2026-12-04T19:35:31.565Z
Learning: Within repository "Silo-Server/silo-android", only for files matching one of ["androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt"]: In the phone ItemDetailViewModel, a detail response contains profile-specific watched state, progress and rating alongside the Not Interested mark. When reviewing profile-switch protections, check ownership of the whole detail before publication; clearing only the Not Interested mark does not protect the other profile-specific fields from an in-flight detail load.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
Learnings used
Learnt from: CR
Repo: Silo-Server/silo-android PR: 0
File: docs/watch-party-implementation-plan.md:0-0
Timestamp: 2026-10-21T00:37:11.797Z
Learning: Applicability reference:
AGENTS.md: # Repository Guidelines
## Current Product Exposure
- Watch Party (synchronized playback) is experimental on phone and TV. Its entry points (profile menu, the detail page's party action, and phone `silo://watch-party` invitations) appear only while Settings → Experimental → Watch Party is on, a device-local toggle that defaults on in debug builds and off in release builds, and it works only when the server advertises the room and playback capabilities. Keep it behind the toggle until the qualification matrix in `docs/watch-party-implementation-plan.md` passes.
Source excerpt:
# Android Watch Party implementation plan
## Design and ownership
Every asynchronous result checks the identities its effect depends on.
Replacing the account, profile, PIN authority, or server cancels old work
before the new identity can use it.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Restore the action for the new profile.
After a profile switch, this clears the mark, but loadUserState() does not restore it. refreshNotInterested() returns when there is no baseline, and the projection cannot apply a baseline to a null mark. The action remains hidden until the detail is read again or the page is reopened.
Reload the mark for the new profile and publish it only while that profile still owns the page.
The reason will be displayed to describe this comment to others. Learn more.
Not changed. This is the case in the earlier thread on the phone page (line 314): after a profile switch the open title page hides the action rather than offer the previous profile's mark, and the switch goes through profile selection, which normally leaves the page. Reading the mark again for the new profile on the open page is left for a maintainer to decide.
…e a clear hides
A clear that is confirmed while the next page is read can hide every title
that page added. The page still counted as adding titles, so the list stopped
asking for more while nothing new was on screen. Decide from the titles the
last page added that are still shown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments
2
Bind Restore to the profile that supplied the Settings row. On phone and TV, the rendered callback carries only the title ID, while the view model begins a fresh intent under the current generation. If the old callback is dispatched after the identity changes but before the row is removed, it can clear an existing mark for that title in the newly active profile. The generation checks reject an old intent, not a new intent created from an old row.
Contain unsupported outbox kinds during a rollback that retains Room data. The reviewed head persists a new operation kind. On the merge base, an eligible retained ready row reaches enum decoding and throws before it is claimed, leaving it eligible to fail subsequent drains. The exception stops the membership batch and occurs before the same drain reaches legacy sync. Retained reconcile or paused rows are also incompatible with the base’s pending-projection reader.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: c64ed286-3c27-41b4-a653-567024d0d557
Commits
Reviewing files that changed from the base of the PR and between 56b08c2 and 0743817.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
…t profile's mark
A Settings row can still be tapped once a profile switch begins, before the
list drops its rows. Its Show in Recommendations then began a clear under
the new identity and went out as the new profile. Restore now acts only while
the listed rows were read under the current identity and still list the title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restore bound to the row's profile. Confirmed and fixed in 4f97c8e. A profile switch moves the identity generation before the list's collector drops the old rows, so a Show in Recommendations tap in that gap began its clear under the new generation and was sent as the new profile. NotInterestedListViewModel.restore now acts only while the listed rows were read under the current identity generation and still list the title. The new test restoreFromARowAProfileSwitchLeftBehindSendsNothing taps during the switch and again after it finishes, before the list reloads. On 0743817 it records a clear of the title for the new profile (expected:<[]> but was:<[movie:a]>); with the fix it records nothing. The other Not interested list and Home tests still pass.
Unknown outbox kinds after a rollback. No change. This PR adds no Room schema change, only the MEMBERSHIP_NOT_INTERESTED operation string. An older build could read that row only if it were installed over this one with the app's data kept. Android allows that only through a sideloaded adb install -d on a debuggable build. App stores don't downgrade, and both apps set allowBackup="false", so a backup can't carry the row to an older install either. The review summary already covers this from your previous review.
🤖 Claude Code (claude-opus-5-5)
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
enhancementNew feature or requestpriority: P2Limited scope, workaround exists, or polishsize/XXXL3000+ added + deleted lines (all files); change volume, not priority.
2 participants
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
Closes #984
Related issue: N/A
Validation tasks: none (the Recommendations cases #319 and #320 never mark a title, and nothing changes on Home until one is marked)
Other clients: Apple Silo-Server/silo-apple#1214 (actions, merged) and Silo-Server/silo-apple#1327 (Settings list); Roku Silo-Server/silo-roku#95; Web N/A (already has both)
A profile can mark a movie or series Not interested on web and Apple, which keeps it out of that profile's recommendation and discovery rows. The Android phone and TV apps had no way to mark a title, clear a mark, or see which titles are marked. This adds all three.
Approach
user_state.not_interested, so older servers don't show it. Episodes, seasons and other items don't get it.PUT/DELETE /api/v2/not-interested/{item_id}run as a third membership kind beside favorites and the watchlist. They share the outbox, reconciliation and the notices for a change the server didn't confirm.sections.HidesNotInterested) at once; the server'snot_interesteduser-state event then refreshes Home, as it does for favorites and the watchlist. Continue Watching, Recently Added and the other rows keep it. On TV, focus moves to a neighbouring card when the focused card leaves its row.GET /api/v2/not-interested, newest first and paged, each with Show in Recommendations. The entry shows only whileGET /api/v2/capabilities/not-interestedreports the feature. The list and the capability are read again after a profile switch, and the list keeps reading while a page shows nothing new.The strings come from Silo-Server/silo-translations#205 (English plus its translation pass), synced in local mode. That pull request merges first; this one then re-syncs to the release it publishes.
Validation
NotInterestedListViewModelTest.aPageThatShowsNothingReadsTheNextOnefails on 9c8f7c0 and passes with the review fixes.aPageHiddenByAClearThatLandsDuringItsReadReadsTheNextOnefails on 56b08c2 and passes on 0743817. An earlier fulltestDebugUnitTestrun had 3 failures, all inandroidAppFormattersTest(a comma instead of a point in a decimal), which this change doesn't touch.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-1105/
Surface and build: Android phone emulator (Android 16) and Android TV emulator (Android 14), debug builds of this branch. Before this change the menu entries and the Settings entry don't exist, so the captures show the new screens only. Tablet and foldable were not captured: no tablet or foldable emulator was available. The phone screens use the standard menu and Settings list layouts.
Risks
None identified. The client sends no Not interested request unless the server advertises the feature through
user_state.not_interestedor the capability endpoint.Checklist
AI Disclosure
Note
Add Not Interested marking for movies and series on phone and TV
NOT_INTERESTEDmembership kind across the sync layer: mark/clear writes use a dedicated route, reconcile from the mark read, and coalesce separately from watchlist (MembershipOutbox.kt, MembershipPort.kt)NotInterested.canMark; the action is hidden when the mark is nullNotInterested.hidingSectionTypesdrop marked titles immediately, with section counts adjusted and emptied sections removed (HomeViewModel.kt)NotInterestedListViewModelwith cursor pagination, restore actions, and a capability probe that gates visibility (NotInterestedListViewModel.kt, SettingsNotInterestedScreen, TvNotInterestedList.kt)MediaItemUserStategains anotInterestedfield andItemDetailgainsuserState(user_state), so decoders now expect these nullable fields; profile switches clear the cached Not Interested mark and re-probe capabilityMacroscope summarized 4f97c8e.