Repository navigation
fix(web): show an administrator's stop reason and keep notices visible - #4554
Conversation
A terminate of a session the server already ended for an administrator answered 404, although the receipt schema promises already_revoked. The end claim read the stopped attempt row and discarded it. It now reports the earlier stop, and a terminate that finds an earlier administrator stop answers 200 with already_revoked, delivery none, and dispatches nothing, locally and through the cross-replica relay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The server sends an administrator's reason in the command frame's top-level reason, and the web player read only the payload, so the reason never showed. A stop or terminate now shows it in a page toast that stays on the screen the viewer lands on. A server message that arrives while the player is minimized shows as a toast too, and an untitled message no longer carries an empty title. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 31 minutes. View limit details
|
Codex Review Summary: ✅ CompletedThis 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. |
|
Resolved: the requested phone-width before-and-after captures for stop/terminate reasons and minimized-player messages have been added and checked. Original requestPlease add phone-width before-and-after captures for stop/terminate reasons and messages to the minimized player, or show why those changes do not affect mobile web. The Validation section says the captures are desktop-only; CONTRIBUTING.md treats desktop and mobile web as separate surfaces for visible changes. |
The minimized player sits along the bottom edge, where page toasts appear, so the notice covered its time labels and its Pause, Watch and Close buttons for eight seconds at desktop and phone width. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Phone-width captures are on the evidence page now: before and after at 390x844 for a stop with a reason, a terminate with a reason, and a message to a minimized player. They showed a layout problem in the first version: the minimized-player toast sat in the usual bottom corner and covered that player's controls, at desktop width too. 643370c moves that one toast to the top centre. The recaptures on that commit, with measurements, show it clear of the minimized player at both widths. At phone width it covers the page header for its 8 seconds. |
…attempt row records A player that confirms an administrator's stop over the control socket can win the attempt row under the administrator stop id, so a later terminate converges instead of answering 404. Describe the answer by which stop the row records, and cover the converged repeat in client_notified. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104
left a comment
There was a problem hiding this comment.
🤖 Claude Code (claude-opus-5-5)
Four findings: one player regression, one double toast, and two docs corrections. The server change is safe for the other apps. Apple reads the message title as optional and falls back to its own default, Android ignores it, and the new Go check fails on the base with "title":"".
The command marked the session's end as handled, so a stop that arrived while Minimize was flushing (when handleExit returns early) also skipped the exit the later 410 would have made, leaving the mini player open. Track the shown notice in its own ref so only the toast is deduplicated, and give both notices one toast id so a command after a 410 replaces the generic notice with the reason. Docs: a stop or terminate frame carries an empty payload, an administrator's restart reason defaults to a machine code, and the reason is shown by players that support it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 Claude Code (claude-opus-5-5) Review summaryReviewed head: The web player now shows an administrator's stop or terminate reason as a page toast that outlasts the player, shows server messages while it's minimized, and the server drops an empty Addressed (33fa3a2)
Left for the maintainers
Validation
User manual: unaffected. The active-playback page doesn't say where the viewer sees a reason or a message. Fit: 9/10 · Readiness: 8/10 — conditional (assuming CI is green) Fit: it closes a gap in a core 1.0 feature using text and fields that already exist, without adding a setting. Readiness: the main behaviour is shown live and by a test that fails on the base. The condition is the minimize-race fix, which has been checked against the source and the existing tests but not in a browser. |
Problem
Related issue: N/A
Validation tasks: changes #1207 C1 (what the viewer sees after an administrator stop, terminate or message); reaches #1206 C1 (message payload without an empty title)
Other clients: Apple Silo-Server/silo-apple#1225; Android Silo-Server/silo-android#1001; Roku N/A (the Roku app has no playback control socket and receives no administrator commands)
When an administrator stops or terminates someone's playback with a reason, the viewer never sees the reason. The web player closes to the title page with no notice at all. A message sent while the web player is minimized is accepted by the server and never shown. A developer integrating a third-party monitor reported all three after a first live test.
The web player now shows the reason, keeps the notice on screen after the player closes, and shows messages while minimized. Stacked on #4553, which shares its documentation.
Approach
The server sends an administrator's reason in the command frame's top-level
reason. The web player read only the frame's payload, which a stop or terminate does not have, so the reason was dropped."title":""for a message with no title. It now omits the key, so a client's own default title applies.The playback protocol doc now describes the command frame in one place, including where
reasontravels. No new interface text: the toast reuses the existing "An administrator ended this playback session." string.Not changed: when the player misses the command and learns of the end from a refused progress write, no reason is shown, because that answer carries none. And a message sent to a player whose connection died without closing is still answered
202for up to 30 seconds, until the server's ping times out. The API documents202as "written to the socket".jellycompat clients do not use this command channel. The user manual does not describe these notices.
Validation
admin:monitor:readandadmin:sessions:control: stop with a reason, terminate with a reason, and a message to a minimized player, each captured before and after at desktop width (1280x720) and phone width (390x844). The "before" captures use the base branch's web app against the same server.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-4554/
Risks
None identified.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Fix admin stop reasons and notice visibility in
VideoPlayer, converge repeat terminatesSESSION_ENDED_TOAST_IDso it can replace or suppress the generic session-ended toast. Detached players now route server notices to page-level toasts at top-center.terminateLocalrecognizesErrSessionEndedByAdmin(a new sentinel wrappingplayback.ErrSessionNotFound), returns the already-revoked receipt, drops the command ledger, and does not notify the player again. Player-ended attempts stay not-found.claimNativeEndnow distinguishes an earlier winning stop from one established by the current call, so the admin-end handler can detect prior administrator stops. Untitled display-message commands emit a payload without atitlefield.terminateLocalin admin_playback_terminate.go andendSessionAsAdminin playback_end_claim.go if consumers relied on the old not-found outcome.Macroscope summarized 33fa3a2.