You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mpv hand-off: in-flight MPV state (pending play, played video, last send, error badge) is lost when the event page unloads #158
CLAUDE.md's own rule is "A new field that has to survive a wake goes into PersistedTabFields", and these four do not. In shortcut MPV mode the user presses play on a player that fetches its manifest only afterwards; if the background is stopped inside the 15 s window (no extension page is open on such a tab to keep it alive), the pending play is forgotten and the stream is only tracked, nothing goes to mpv; the user presses play again. A lost mpvError means the "!" badge disappears after a restart with the failure unresolved.
Suggested fix
Persist mpvPlayPendingUntil, mpvPlayedVideo, mpvLastPlaySend and mpvError (plain JSON values), saving where they change.
Confidence: high on the code; low on how often the unload lands inside the window.
From a line-by-line code review of the tree at 41363fd (2026-10-02). Each claim above was checked against the source before filing; the reproduction steps and line references are as of that commit.
Activity