Repository navigation
fix(watch-party): share suggestion broadcasts across API nodes - #1286
Conversation
|
Warning Review limit reachedNext included review available in 22 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
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. Comment |
There was a problem hiding this comment.
Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Related issue: #1284 (S1)
Companion correction: #1287 handles connection replacement. Both PRs target
mainand can merge independently.Suggestion socket frames report different
voted_by_mevalues depending on which API node receives the mutation. Remote delivery also reads the same suggestions once per viewer.Approach
Read the common suggestion list once per receiving node with local viewers, outside the room mutex, and send it through the existing broadcast helper. Recheck the room and current connections after the query. Both socket protocols retain their payload shape and common
voted_by_me=false; authenticated HTTP reads remain personalized.Validation
make test-gopassed 156 packages; onlyTestAdminResourceCapabilitiesAndScopefailed on macOS. The unchanged base fails identically because resource reporting is Linux-only.Risks
Clients must retain or refresh their own vote membership from HTTP. The socket field remains non-authoritative, as documented. Native adoption is coordinated through Silo-Server/silo-apple#344 and Silo-Server/silo-android#355. Jellyfin compatibility does not use these sockets.
Checklist
AI Disclosure
gh), Go toolchain,golangci-lint, pnpm/Vitest, Playwright with Chrome, SSH and Docker; repository unslop skill for PR prose.gpt-6-astrafor implementation and independent review agents.