Skip to content

team-setup: hand over to the gate's starting page on restart - #19

Merged
trotterdylan merged 1 commit into
mainfrom
bb/the-bb-restart-message-that-pops-up-with-the-res-thr_rjif6en6q5
Oct 7, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/the-bb-restart-message-that-pops-up-with-the-res-thr_rjif6en6q5

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Pressing Restart now reloads the page as soon as the server has gone down, so the gate's own starting page takes over instead of a dead bb UI. It polls /_bb-gate/update twice a second after the POST, reloads on the first not-ready answer, and reloads anyway after 15 seconds if the Deployment never reports going down. A POST that applied nothing drops the banner without a reload.

Lands with bitcomplete/bb-gate's pre-pull DaemonSet and zone preference on the same branch, which take the image pull off the restart; this PR goes first.

🤖 Generated with Claude Code

Pressing Restart used to keep the bb page up through the whole restart,
polling until the server came back and only then reloading. A bb whose
server has just left is a dead UI: every request and socket fails, and
there is nothing it can show. Now the banner polls twice a second and
reloads the page as soon as the Deployment reports the old pod gone; the
router answers that load with its starting page, which reloads itself
until the new pod is up. Waiting for not-ready rather than reloading at
once keeps the reload from landing on the old pod in its last moments.

A POST that applied nothing, because the server was already current or
the quiet window got there first, drops the banner instead of waiting
for a restart that never comes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@trotterdylan
trotterdylan merged commit 785d02c into main Oct 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant