Skip to content

[feature] Hide request options when the server turns requests off while the app is open #854

Closed

Description

@blurbery

Problem

When an admin turns requests off on the server, the Android phone and TV apps keep showing request options until something makes them read GET /api/v2/requests/status again. Today that only happens when the server, account or profile changes. An app that is already open, or one brought back from the background, keeps the Requests entry in the profile menu, the "Available to request" search row and any request screen that is open.

The server refuses every requests call once the switch is off (409 capability_disabled), so nothing gets submitted. The user just sees options that no longer work: a Requests page whose next load fails, or a "Request" button on a request detail page that answers "Requests are turned off" when tapped.

The Apple apps already handle this. They read the status again on return from the background and after any requests call the server refuses, and they close open Requests screens once the server says requests are off (Silo-Server/silo-apple#748).

Device

Phone, Tablet, Android TV / Google TV

Current workaround

Relaunch the app or switch profile.

Proposed behavior

Once the server says requests are off, the request options go away without a relaunch or profile switch, on phone and TV:

  • The app reads the request status again when it returns to the foreground, and after any requests call the server refuses as capability_disabled.
  • An open Requests page, My Requests or request detail closes once the server has answered that requests are off. A status read that fails shouldn't close anything, same as the Apple apps.

Alternatives considered

Polling the status on a timer. It costs a request every interval for a setting that rarely changes, and the two triggers above cover the cases that matter.

Technical notes

I found this by reading the code, not on a device. Checked against main at 93de7e0.

  • RequestsFeatureStore.refresh() (shared/.../model/feature/RequestsFeatureStore.kt) is only called from the LaunchedEffect in MainScreen.kt (phone) and TvMainShell.kt (TV). Both are keyed on server, account and profile. Nothing calls it on resume or after a refused call.
  • The request screens under ui/screens/requests/ on phone and TV don't read isEnabled, so they stay open after it turns false.
  • RequestDetailViewModel draws its first frame from cached detail and only shows a failed refetch when no detail is loaded, so a cached "Request" button stays up until it is tapped.

AI harness

Claude Code (Claude desktop app)

AI tool(s)

Claude Code

AI model(s)

claude-opus-5-5

AI involvement

AI-assisted

Independent or adversarial review

n/a. This is a code-reading finding. A separate agent read the Android client, and I checked its findings against main at 93de7e0 before filing.

Confirmations

  • I searched open and closed issues, including ones closed as not planned, and this is not already requested
  • This is not one of Silo's non-goals

Activity

  1. added
    enhancement
    impact: polish
    priority: P2
    on Nov 8, 2026
  2. blurbery commented on Nov 8, 2026

    @blurbery
    ContributorAuthor

    #560 already covers part of this:

    • It re-checks the requests status when the app returns from the background, on phone and TV.
    • It closes the phone Requests hub, My Requests and request detail once the server answers that requests are off.

    Against current main, these parts aren't covered by #560, so I'm keeping this issue open for them:

    • Re-checking after a requests call the server refuses as off (capability_disabled, capability_not_configured, capability_unsupported, permission_denied), so an app that stays in the foreground catches it too. The Apple apps do this in reprobingWhenRequestsAreOff.
    • Closing the phone "See all" Discover row page (Route.RequestDiscoverRow), which landed after fix(requests): re-check the requests capability when the app returns to the foreground #560 was opened. While it's on top, nothing under it closes either.
    • Closing a TV request detail (TvMainRoute.RequestDetail). main already closes the TV Requests page itself.
    • Ignoring an older status answer that arrives after a newer one. Apple guards this with probe ordinals in RequestsFeatureStore.

    #560 is also behind main and still carries the two moderation-removal commits that landed in #558. If one change covering all of the above is easier to review, a PR for this issue can supersede #560.

  3. added a commit that references this issue on Nov 16, 2026
    98d0771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementimpact: polishpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions