Skip to content

[bug] Admin stop drops the watch time after the player's last progress report #4615

Open

Description

@Quick104

What happened

When an administrator stops a session, history loses the watch time between the player's last progress report and the stop. Players report progress every 10 seconds, so up to about 10 seconds of each admin-stopped play goes missing. In a sandbox check for #4552, a 16.7 second play recorded played_seconds of 10. end_position_seconds also stays at the last report's position.

Steps to reproduce

Seen on a Silo dev deployment during verification of #4552 (evidence). Not yet reproduced for this issue.

  1. Start playback in a native client and let it play for about 15 seconds, so one progress report lands.
  2. As an admin, stop the session with the v2 admin stop command.
  3. Read the play in admin playback history.

Expected behavior

played_seconds covers the play up to the stop, and end_position_seconds is where the player stopped.

Silo version / commit

Main 35b0ed7f0.

Deployment

Local dev build.

Area

Playback and transcoding.

Clients affected

Web UI, Android, iOS/tvOS/macOS.

Relevant logs

No logs available.

Technical notes

Watch time is credited only from position changes between progress reports (WatchTime.Observe). The player's reply to the stop command carries no position (ResultEnvelope). realtimeStopHistory builds a final sample only when the attempt has no sample at all (playback_realtime.go), so the stop ends the row at the last report. The player's own HTTP stop, which does carry a position, then finds the row stopped and replays the stored receipt (playback_service.go).

Options:

  • Add optional position_seconds and is_paused to the stop result and build the final sample from them. Exact, but only new clients send it.
  • For clients that don't, credit the time from the last report to when the command was sent, while the last state was playing, capped by the report interval plus slack and by the remaining duration, and advance the end position by the same amount.

Apple and Android would need to send the new fields.

AI disclosure

  • Harness and tools — Claude Code in T3 Code, GitHub CLI, source reading
  • Model — claude-opus-5-5
  • Involvement — AI-assisted
  • Independent review — Three read-only review agents traced the server and client code separately; the lead agent re-read the cited lines on main.

Confirmations

  • Searched open and recently closed reports and pull requests.
  • Reproduced on a real deployment.
  • Recorded that server logs are unavailable.

Source: found in review of #4552

Activity

  1. added
    bug
    on Nov 19, 2026
  2. added
    priority: P2
    on Nov 19, 2026
  3. self-assigned this
    on Nov 19, 2026
  4. Quick104 commented on Nov 19, 2026

    @Quick104
    ContributorAuthor

    🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.

    A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.

    Planning to work on this, or have context to add? Reply here and mention @Quick104.

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

Metadata

Metadata

Assignees

Labels

bugpriority: P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions