A console tab left open across a deploy keeps running the old build, and nothing says so #181

Closed
opened 2026-10-16 18:55:05 -04:00 by cmoriarty · 1 comment
Owner

Seen with run 67 on 2026-10-16. Production deployed 74e261c at 21:30Z. At 22:45Z the user's console still drew a skip as step.skipped: agent.judge.r2. That is the wording #175 replaced, and 74e261c's bundle has the new wording. The tab had loaded the old build before the deploy, and it kept running it.

The tab is a single-page app with live streams. Nothing reloads it, and nothing tells the operator a new build is live. So after every deploy, the fixes it carries are invisible until a reload, and a bug report from that tab describes code that is no longer there (#179's third point was one).

Wanted

  • The console notices that the server it talks to runs a different build from the one it loaded. /api/status already carries commit, and a new /healthz boot_id marks a restart.
  • It says so, quietly and once: for example, "Braid was updated — Reload". The operator decides when to reload, since a reload drops the live stream B text on screen.
  • A reload after a deploy lands on the same run and step.
Seen with run 67 on 2026-10-16. Production deployed 74e261c at 21:30Z. At 22:45Z the user's console still drew a skip as `step.skipped: agent.judge.r2`. That is the wording #175 replaced, and 74e261c's bundle has the new wording. The tab had loaded the old build before the deploy, and it kept running it. The tab is a single-page app with live streams. Nothing reloads it, and nothing tells the operator a new build is live. So after every deploy, the fixes it carries are invisible until a reload, and a bug report from that tab describes code that is no longer there (#179's third point was one). ## Wanted - The console notices that the server it talks to runs a different build from the one it loaded. `/api/status` already carries `commit`, and a new `/healthz` `boot_id` marks a restart. - It says so, quietly and once: for example, "Braid was updated — Reload". The operator decides when to reload, since a reload drops the live stream B text on screen. - A reload after a deploy lands on the same run and step.
Author
Owner

Shipped in bb5d87a (change console-notices-a-deploy, commit bbb8686), live since 00:07Z on 2026-10-17, and archived in 24bd393.

  • The console remembers the build it loaded with, the first commit that /api/status names. When osfd later names another, a quiet notice says "Braid was updated", with Reload and Not now.
  • Not now hides it until a newer build. Reload keeps the route, so it lands on the same run and step. The console never reloads by itself.
  • Checked on production. A console tab opened at 00:31Z on bb5d87a stayed open across the deploy of 35c556b at 00:34Z, and the notice appeared in its bottom right.
  • Tests: vitest for the comparison, and a browser spec that answers /api/status itself and changes its commit under the page.

Tabs opened before bb5d87a don't have the notice yet. Reload those once by hand. Closing.

Shipped in bb5d87a (change `console-notices-a-deploy`, commit bbb8686), live since 00:07Z on 2026-10-17, and archived in 24bd393. - The console remembers the build it loaded with, the first `commit` that `/api/status` names. When osfd later names another, a quiet notice says "Braid was updated", with **Reload** and **Not now**. - Not now hides it until a newer build. Reload keeps the route, so it lands on the same run and step. The console never reloads by itself. - Checked on production. A console tab opened at 00:31Z on bb5d87a stayed open across the deploy of 35c556b at 00:34Z, and the notice appeared in its bottom right. - Tests: vitest for the comparison, and a browser spec that answers `/api/status` itself and changes its commit under the page. Tabs opened before bb5d87a don't have the notice yet. Reload those once by hand. Closing.
Sign in to join this conversation.
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/braid#181
No description provided.