Repository navigation
Description
Problem
Silo-Server/silo-server#1430 adds a per-profile requests switch. A household manager can turn requests off for one profile, for example a child's, while the account and its other profiles keep them. A blocked profile is kept out of request discovery as well as requests. Discovery browses TMDB, and the library's parental controls reach it only as a US certification filter. The advisory-age limit doesn't apply there at all.
The server reports the switch as requests_allowed on /api/v2 profiles, and reports support for it as requests_allowed_supported on the listProfiles response. The profile operations reject unknown members, so a client must send requests_allowed only to a server that reports support.
The Android phone and TV apps can't set or show the switch. A manager who creates or edits a kids profile in the app leaves it able to browse TMDB discovery and submit requests. The only way to block it is from the web app.
A blocked profile already gets allowed: false from GET /api/v2/requests/status, so RequestsFeatureStore hides the Requests entry points on phone and TV. A profile blocked while it is in use is not caught until the next profile, server or sign-in change. Until then its request screens stay open. A 403 from a request operation shows as a plain error, because RequestDetailViewModel refreshes the capability only on capability_* codes.
Device
Phone, Tablet, Android TV / Google TV
Current workaround
Block the profile from the web app's profile editor.
Proposed behavior
- The create and edit profile screens, on phone and TV, have an "Allow requests" switch. It shows the profile's current value and appears only when the server reports
requests_allowed_supported. A save sendsrequests_allowedonly in that case. - Turning on "Child Profile" turns requests off, unless the manager already changed the switch. Turning it off turns requests back on. This matches the web Kids preset.
- A 403 from a request operation refreshes the requests capability, so a profile blocked mid-session loses the Requests entry points.
Technical notes
ProfileV2,ProfileUpdate,CreateProfileRequestandUpdateProfileRequestneed the field.ProfileCollectionV2andProfilesResponseneed the support flag.- A
requests_allowedchange bumps the account's access policy revision.HouseholdManagementSessionalready re-verifies and retries for the other access fields.
AI disclosure
- Harness: Claude Code (T3 Code)
- Model: Claude Opus 5.5 (
claude-opus-5-5) - Involvement: Fully AI-generated, human verified
- Review: written from a code read of this repository and the server change
Activity