Game day fixes: Wrong game with a way back, a kickoff countdown, the gated page's player frame, both nav labels #81

Merged
cmoriarty merged 2 commits from feature/game-day-fixes into develop 2026-11-02 12:28:44 -05:00
Owner

The Game day fixes batch (milestone 35). OpenSpec change: game-day-fixes.

#55: both nav labels

The Games page now names both pages, with Games marked as current. The Admin page already did.

#79: Wrong game, with a way back

  • Rename: "Not this game" is "Wrong game" on the admin card and the player page.
  • The list: a playing game's card lists the links Swap or Wrong game moved away from, newest first, up to five. It is kept on the game's ladder and in the readiness snapshot, so it survives a closed channel and a restart.
  • Go back (POST /api/channels/{id}/back) reads the link fresh and verifies it before anything changes. On success it splices the link in like a swap, stops a running recovery, and puts the replaced link on the list.
  • Undoing a rejection also clears the link's rejection, cooldown and empty count, and takes the rejection off its site's record.
  • A link that doesn't read changes nothing, and the answer says why.

#80: Starts in X min

A game not yet started gets guide programmes up to kickoff: one per hour from 6 h out, then one per 5 min through the last hour. The title reads "Dolphins vs. Patriots · Starts in 15 min". It needs no time zone, and Emby moves on by the clock with no guide refresh. The game's own programme still starts at kickoff.

#78: the player frame of a gated page

When the solver's copy of a gated page has no stream, the app opens up to two of its player frames (http(s), not hidden, not chat) in its own browser, with the page as the Referer.

#71: not changed

Earlier findings say this same player (embedsports.me) refuses the app's browser as "Sandbox detected", so #78 may not produce a stream until #71 is tested. Both need a live game that lists dudestream1, and both stay open until then.

The e2e channel leg's stall

Added on request. A refresh dropped any segment whose file name was already on the timeline. With a source that reuses a ring of names (the fixture has ten), once every name was on the timeline nothing was appended: the place in the source never moved, each poll counted a skip (2092 s "skipped" in task 3081), and filler played while the source looked healthy. The leg passed only when it caught the channel healthy just after landing. A plain refresh now goes by the media sequence number, and a segment passed over moves the place on. This also affects any real source that reuses its names.

Checks

  • Backend: 866 passed, 1 skipped. Frontend: 189 passed. openspec validate game-day-fixes --strict passes.
  • In a browser against production's data: the Games page nav, and the card's list using a stubbed channel. Go back was not pressed there.
  • Not checked: Emby's real display of the countdown, Go back on a real channel, and #78 against a live player.

🤖 Generated with Claude Code

The Game day fixes batch (milestone 35). OpenSpec change: `game-day-fixes`. ## #55: both nav labels The Games page now names both pages, with Games marked as current. The Admin page already did. ## #79: Wrong game, with a way back - **Rename:** "Not this game" is "Wrong game" on the admin card and the player page. - **The list:** a playing game's card lists the links Swap or Wrong game moved away from, newest first, up to five. It is kept on the game's ladder and in the readiness snapshot, so it survives a closed channel and a restart. - **Go back** (`POST /api/channels/{id}/back`) reads the link fresh and verifies it before anything changes. On success it splices the link in like a swap, stops a running recovery, and puts the replaced link on the list. - **Undoing a rejection** also clears the link's rejection, cooldown and empty count, and takes the rejection off its site's record. - **A link that doesn't read** changes nothing, and the answer says why. ## #80: Starts in X min A game not yet started gets guide programmes up to kickoff: one per hour from 6 h out, then one per 5 min through the last hour. The title reads "Dolphins vs. Patriots · Starts in 15 min". It needs no time zone, and Emby moves on by the clock with no guide refresh. The game's own programme still starts at kickoff. ## #78: the player frame of a gated page When the solver's copy of a gated page has no stream, the app opens up to two of its player frames (http(s), not hidden, not chat) in its own browser, with the page as the Referer. ## #71: not changed Earlier findings say this same player (embedsports.me) refuses the app's browser as "Sandbox detected", so #78 may not produce a stream until #71 is tested. Both need a live game that lists dudestream1, and both stay open until then. ## The e2e channel leg's stall Added on request. A refresh dropped any segment whose file name was already on the timeline. With a source that reuses a ring of names (the fixture has ten), once every name was on the timeline nothing was appended: the place in the source never moved, each poll counted a skip (2092 s "skipped" in task 3081), and filler played while the source looked healthy. The leg passed only when it caught the channel healthy just after landing. A plain refresh now goes by the media sequence number, and a segment passed over moves the place on. This also affects any real source that reuses its names. ## Checks - Backend: 866 passed, 1 skipped. Frontend: 189 passed. `openspec validate game-day-fixes --strict` passes. - In a browser against production's data: the Games page nav, and the card's list using a stubbed channel. Go back was not pressed there. - **Not checked:** Emby's real display of the countdown, Go back on a real channel, and #78 against a live player. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Game day fixes: Wrong game with a way back, a kickoff countdown, the gated page's player frame, both nav labels
All checks were successful
ci / Unit tests, type check, bundle (pull_request) Successful in 1m11s
ci / One container, e2e click-to-play inside the image (pull_request) Successful in 1m18s
a28b765b2c
#55: the Games page names both pages in the nav.
#79: "Not this game" is now "Wrong game". A card lists the links Swap or Wrong game moved away from; Go back reads one fresh and plays it, taking back a rejection. The list survives a restart.
#80: a game not yet started gets guide programmes counting down to kickoff, with no time zone and no guide refresh.
#78: a gated page whose solver copy has no stream has its player frame opened in the app's browser, with the page as the Referer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A source that reuses its segment names no longer starves the channel
All checks were successful
ci / Unit tests, type check, bundle (pull_request) Successful in 1m43s
ci / One container, e2e click-to-play inside the image (pull_request) Successful in 2m42s
47cabfbe4c
A refresh dropped any segment whose file name was already on the timeline. A source with a ring of names (the e2e's fixture has ten) then appended nothing once every name was on it: the place in the source never moved, each poll counted a skip, and filler played while the source looked healthy. That is the channel leg's intermittent failure on PR #77 and PR #81.

A plain refresh now goes by the media sequence number, dropping only a renumbered repeat of the newest segment. The names still guard a first read and a jump, and a segment passed over moves the place on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty merged commit a53fbfa10d into develop 2026-11-02 12:28:44 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker!81
No description provided.