A link's session is kept alive, and a channel rides out a session's end (#136) #166
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/friendly-herschel-74e265"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #136.
Why
A channel playing the embedsports player's stream stopped about ten minutes after its link was read, every time. On 2026-11-14 Penn vs. Harvard's channel failed 19 times and closed 11 times in under three hours, each time with "upstream error: 401".
The measurements are in two comments on the ticket: the cause and the two-hour probe.
What changes
The session is kept alive
backend/app/resolver/seckey.py).backend/app/keepalive.py).When nothing keeps it alive
The channel
To watch it
/api/channelsshows each link'sends_at,renew_atandsession: its end, its next renewal, the renewals so far, and whether one was refused.Specs: OpenSpec change
sessions-kept-alive, with deltas forstream-supervisionandstream-resolution.Things to know
LINK_KEEPALIVE_ENABLED=0turns it off, and the app then reads the page again before each end instead. The owner has not ruled on this.Testing
Lanes run locally on the commit itself (
9a8b5e1), since CI runs by hand only:make test: 1367 passed, 1 skipped.make e2e: passed.openspec validate sessions-kept-alive --strict: valid.Checked against live streams, from a second address:
Not yet run on the live app. The check after deploy is to open
/api/channelswhile a game on this player is playing:link.session.renewalsshould grow every five minutes, and the channel should play past ten minutes.🤖 Generated with Claude Code