Skip to content

Alerts from: a PC turned off by its name in another PC's roster still alerts directly #2876

Closed

Description

@devswha

Follow-up from #2870 (Settings → Alerts → Alerts from).

What happens: a device's list of PCs it hears nothing of (pcs_off) holds PC names as the roster it was set in names them. Each PC's own server knows itself only by hostname() (server/push.ts pcName). When a PC is labelled otherwise in another PC's roster (a relay PC named at pairing, an SSH PC shown by its address or a custom name), turning it off there silences only the alerts that roster's server forwards. A phone that also subscribes to that PC directly (the phone app does, one subscription per PC) keeps getting its alerts.

Reproduced in review (#2870): a subscription with pcs_off: ["Work PC"] on a server whose hostname is devswha-ThinkStation-P620, created as server/core/status.ts creates it (no localName), still sent the blocked alert.

Fix direction: key a PC by an identity both its roster entry and its own server know (the relay server_id where there is one, or a per-install PC id served in the roster and known to the server itself), and keep the name only for display. Until then, a PC turned off is reliably silent only for the alerts that reach the device through the server whose roster it was turned off in.

Activity

  1. added a commit that references this issue on Nov 5, 2026
    e781d05
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions