Skip to content

[bug] Removing a server doesn't sign out on the server; the login session stays active (Android phone, tablet) #784

Open

Description

@zZebrahz

Problem

Removing a server in the Android phone app (server list › long-press › Remove Server › Remove) forgets the sign-in on the phone but never signs out on the server. The login session stays active on the server, and still shows in the account's signed-in sessions, until it expires.

Seen on an Android phone, Silo Android 1.0.0 (28) · 3cecc7a66, against a server at build 1804 · cc851494, during Notifications validation on 2026-11-02. Reproduced twice: each removal left that phone's session unrevoked, while signing out from Settings on the same phone revoked its session and removed its push registration as expected. The second removal did remove the push registration (retirePushDevice); the first did not, and the server kept sending pushes to the phone until Google answered UNREGISTERED.

Source evidence

origin/main at 51d4f9013:

  • ServerListViewModel.onRemove (androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/servers/ServerListViewModel.kt:124) unregisters push, then calls serverRegistry.remove(serverId). It makes no sign-out call.
  • AndroidServerRegistry.remove (shared/src/androidMain/kotlin/org/siloserver/silo/network/AndroidServerRegistry.kt:146) wipes the server's stored keys on the phone; nothing tells the server.
  • The confirmation text says "Sign-in credentials for will be forgotten on this device."
  • Signing out uses SignOutTeardown.signOut (androidApp/.../auth/SignOutTeardown.kt:70), which does end the session on the server. Android TV offers "Sign out & remove" for the active server (androidTvApp/.../tv/auth/TvSignOut.kt:93).

Expected behavior

Removing a server the phone is signed in to ends that login session on the server (the same call sign-out makes) and removes the phone's push registration, before the credentials are wiped. If the server can't be reached, the removal still goes ahead, and the session revoke is retried later as the push retirement already is.

Validation

  1. Sign in to a server on an Android phone with notifications on.
  2. On the web, as the same account, open the signed-in sessions page and note the phone's session.
  3. On the phone, remove the server from the server list without signing out.
  4. The phone's session should disappear from the web sessions page (revoked), and the server should have no active push registration for the phone; the next new episode should not be sent through the relay to it.

Non-blocking; found during Notifications validation (Android task #346 C2). Related: #783 (removing the last server doesn't return to sign-in).

AI-assisted: drafted with Claude Code (claude-opus-5-5) and GitHub CLI at the maintainer's direction. Behavior observed by the maintainer on a phone; session and push state read by the agent from the server's database and logs; source traced on origin/main.

Activity

  1. added theissue type on Nov 2, 2026
  2. added
    bug
    impact: security
    priority: P2
    on Nov 2, 2026
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

    bugimpact: securitypriority: P2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions