Skip to content

feat: push notifications when syncing stops - #210

Open
builtbyproxy wants to merge 6 commits into
openspec/serializd-show-statusfrom
feat/sync-failure-notifications
Open

builtbyproxy wants to merge 6 commits into
openspec/serializd-show-statusfrom
feat/sync-failure-notifications

Conversation

@builtbyproxy

@builtbyproxy builtbyproxy commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

No linked issue.

Release notes

When a login stops working, syncing for that account stops too, and until now the only signs were a line in Jellyfin's activity log and a badge on the dashboard. Admins can now enter an ntfy topic address under Integrations and get a push notification when a Letterboxd login is paused, when Serializd rejects a login, or when Jellyscribe gives up on a film after repeated failures. It is off until you save an address, each problem notifies once rather than on every sync, and a message never contains a password, token or Serializd email address.

What's broken

Syncing can stop for an account without anyone noticing. A changed password pauses a Letterboxd login, Serializd can start refusing a login, and a film Letterboxd has no entry for is dropped after repeated failures. Each of these is visible only to someone who opens the dashboard or the activity log.

Why it happens

  1. The plugin had no way to reach the admin outside Jellyfin.
  2. Each of the three conditions was recorded where it happened and nowhere else.

What this PR does

  • Setting: a Notifications panel on the admin Integrations tab with an ntfy topic address, an optional access token and a "Send test" button. Nothing is sent until an address is saved.
  • Three notifications, each raised at one place so no sync entry point knows about it:
    • a paused Letterboxd login, once per pause;
    • a Serializd login refused with 401 or 403, once per account per day (a changed password lifts that, but never more than one per account per hour);
    • films a run has just given up on, one message per account per run, also when the run is cancelled.
  • The access token is stored like the other secrets: encrypted, never returned to the browser, sent only to the saved address, and removed when the address changes with no new token typed. Requests follow no redirects.
  • What a message holds: fixed text, the Jellyfin user name, the Letterboxd username, a date, and film titles with years. Never a password, cookie, token, Serializd email or a service's error text.
  • Logging: a failed send is logged with the notification server's host only, because on a public ntfy server the topic name is what keeps a topic private.
  • A send that fails never throws into a sync and changes no history.
  • Not touched: the dashboard's existing badges and the activity-log entry, which still appear as before.
  • .gstack-redact-allowlist (new, repo root): lets the local pre-push secret check accept the two placeholder sample addresses used in a test and the spec (user:pw@ntfy.example.com, user:password@ntfy.example.com). Not shipped.
  • OpenSpec change add-sync-failure-notifications (new capability sync-failure-notifications). Version 2.16.0.

Accepted risks, recorded in the design: a token sent to an http address is unencrypted on the network (the README says so), and a Serializd 403 is treated as a rejected login.

How to test

dotnet test -c Release --filter "FullyQualifiedName~Notif" for the new tests; the full suite is 1,631 passed, 17 skipped, 0 failed.

Checked by hand on throwaway Jellyfin 10.11.11 (with a base URL) and 12.4.0 against an ntfy 2.38.3 server:

  • An invalid address shows an inline error and saves nothing. A valid one saves, and after a reload the token is not in the page or the configuration response.
  • "Send test" arrives. With the token removed, the page reports "refused with status 403".
  • With made-up logins on 10.11.11: one "sync paused" message on the third failed Letterboxd run and none on the next two; one "Serializd login rejected" message and none on the next two runs.

Not checked live: the films notification (it needs a working Letterboxd login; unit tests drive the real runner and playback handler). The browser check was not repeated after the review fixes, which changed the page's address check only.

Screenshots

Admin, Integrations tab (Jellyfin 10.11):

Before After
before after

Admin, Integrations tab (Jellyfin 12.4):

Before After
before after

New states (no "before"):

Invalid address Test sent Phone width
invalid sent phone

Follow-ups (not in this PR)

  • Confirm the films notification live on a test server.
  • Archive add-sync-failure-notifications once 2.16.0 ships.

@builtbyproxy
builtbyproxy added this pull request to stack #211 December 3, 2026 06:58
@builtbyproxy builtbyproxy changed the title feat/sync failure notifications feat: push notifications when syncing stops Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant