Skip to content

fix(web): tell followers a followed title arrived, not their request - #2379

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/web-follower-notification-copy
Oct 12, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/web-follower-notification-copy

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #1201
Validation tasks: unblocks #1204 C2

When a title someone followed with Notify me when available arrives, the web notification inbox tells the follower "Your requested movie is now available", although they never requested it. The server marks those deliveries with follower: true, but the web's v2 notification adapter copies only the episode reason flags and drops follower, so the inbox falls back to the requester's wording.

This change keeps the flag, so followers see "A movie you followed is now available" (or the series wording).

Approach

follower joins the boolean reason flags the adapter copies. The inbox already had the follower copy; it just never received the flag. Requesters' notifications are unchanged.

Validation

  • New adapter test: a request.fulfilled row with follower: true keeps the flag.
  • Local server: a follower's and a requester's inbox for the same fulfilled request, desktop and phone width, before and after.
  • vitest for the notification adapter and Notifications page: pass.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-2379/

Risks

None identified.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code
  • Tool(s): Claude Code (Bash, file edits, subagents), GitHub CLI (gh), Playwright, Xcode xcodebuild/simctl, Maestro, Android emulator/adb
  • Model(s): Claude Opus 5.5 (claude-opus-5-5)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code review pass (medium) covered every branch of the Requests validation fixes across silo-server, silo-apple and silo-android. Its findings (a commit message that misdescribed the unfollow response, a tablet layout that hid the title) were fixed. This was an AI self-review; no independent human review is claimed.

The v2 notification adapter copied only the episode reason flags and
dropped follower, so the inbox told a profile that followed someone
else's request "Your requested movie is now available".
@silo-kody

silo-kody Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a2db791-d9bd-479e-9e32-c451b9ec6e7f

📥 Commits

Reviewing files that changed from the base of the PR and between fe1f540 and d1f9418.


📒 Files selected for processing (2)
  • web/src/api/v2/notifications.test.ts
  • web/src/api/v2/notifications.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.



📝 Walkthrough

Walkthrough

The notification parser now recognizes follower as a boolean reason flag. A test checks that listNotifications preserves the flag in a followed-title notification.

Changes

Notification reason flags

Layer / File(s) Summary
Accept and verify follower reason flags
web/src/api/v2/notifications.ts, web/src/api/v2/notifications.test.ts
The parser allowlist adds follower. A test checks that listNotifications preserves the flag.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix


Merge Risk: ⚪ Minimal · up to d1f94

Followers of fulfilled titles can now see that a title they followed is available, rather than wording that implies they requested it. No actionable merge-blocking risk remains.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: correcting web notification wording for followers of fulfilled requests.
Description check Passed The description directly explains the notification bug, implementation, validation, and expected user-visible behavior.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Oct 12, 2026
@Quick104

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: d1f9418c3cf0a3f08a4ad2f8c0c4585090baca2d

Fit: 9/10 · Readiness: 8/10 — conditional

No defects in the diff, so there is no line review and no commits from me. The fix is correct and complete for the web client:

  • The server sets follower: true on follower copies of request.fulfilled (internal/notifications/request_notifier.go), and /api/v2/notifications passes reason_flags through unchanged (internal/apiv2/notification_inbox.go). The web adapter's allowlist was the only place the flag was lost. The allowlist dates from the v2 migration (a0ab8f0).
  • Every web consumer now gets the flag. The inbox copy in Notifications.tsx already branched on it. The realtime toast reads the socket payload directly, so it never lost the flag. Cache insertion and mark-read keep reason_flags, and reconnect snapshots refetch through the fixed adapter.
  • The new adapter test fails on the old adapter and passes on this head. The focused suites (adapter, Notifications page, notification query hooks, RealtimeEventsProvider) pass 41/41 locally.

Remaining before merge

  • Evidence. The body says Evidence: pending upload and the Evidence check is failing. The inbox wording is a visible change, so the before/after captures need publishing.
  • Validation tasks: line. Requests — Web #1204 C2 has not been run, and the line is meant to name passed cases the change reaches. No passed case reaches this code. Suggest Validation tasks: none and mentioning Requests — Web #1204 C2 (not yet run) in prose instead.

Not blocking (pre-existing, outside this diff)

  • The v2 OpenAPI gives NotificationItem.reason_flags the settings JSONValue description and no key list, so clients can't learn about follower from the contract. Filed as [bug] v2 OpenAPI describes notification reason_flags as a settings value #2381.
  • The adapter still drops poster_path, webhook_id, webhook_name and last_failure_status. No web page reads them today, so nothing renders wrong. A later change could keep every primitive key instead of an allowlist, so a new server flag can't be lost the same way again.

Validated features

Only Calendar, Person browsing and Server branding cases are recorded as passed, and none of them share code with this change. Every Requests case (#1201, including #1204 C1–C3) is still not run.

Apple and Android

  • Apple: push text comes from the server's display copy, which already handles followers. No native inbox renderer has the same problem.
  • Android: push and inbox renderers don't read follower. Push falls back to "Your requested title is ready." when both titles are blank, and the phone and TV inboxes label every row "Request fulfilled". This predates this PR. silo-android#401 tracks adopting following and notes that follower notifications carry follower: true.

User manual

Unaffected. The manual's Requests pages describe following a request but not the notification wording; this change makes the web match the intended behavior.

Scores

  • Fit 9: a bounded correctness fix in a 1.0 feature (Requests AC5, "everyone who requested or followed the title is notified"), at the right boundary, with no new surface.
  • Readiness 8: the code is sound, CI is green and the test covers the regression. The missing evidence and the Validation tasks: wording are what keep it from ready.

Review method

Multi-agent code review (three finders and a validation check), plus one cross-provider round with Codex (gpt-6.1-sol). Neither found a defect in the diff; both surfaced the pre-existing items above.


AI disclosure: this review was written by Claude Code (Claude Opus 5.5, claude-opus-5-5), with a cross-provider review round by OpenAI Codex (gpt-6.1-sol). No human has reviewed it.

@Quick104
Quick104 merged commit 96d1dea into Silo-Server:main Oct 12, 2026
20 checks passed
This was referenced Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants