Skip to content

fix(overlay): reload overlay pages once after an Antena update - #356

Merged
egdev6 merged 1 commit into
mainfrom
fix/overlay-shell-reload-on-update
Nov 25, 2026
Merged

egdev6 merged 1 commit into
mainfrom
fix/overlay-shell-reload-on-update

Conversation

@egdev6

@egdev6 egdev6 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

Overlay pages opened in OBS/Meld kept running the code of the version they were loaded from. After updating to 0.21.0, the custom overlay shell did not know the new socials widget, so its footer slot stayed empty until the browser source was refreshed by hand.

  • /api/stream?build=1 appends build: { version } (app version) after the existing initial frames; clients without the parameter keep their exact stream.
  • reloadOnNewBuild() in public/stream-client.js: the page reloads once when it reconnects to a different version than the first one it received. A restart with the same version reloads nothing.
  • Used by the built-in widgets (widget.js connect, which the custom overlay shell also uses) and the alert overlay. The panel is not affected.
  • Docs: docs/themes.md (stream parameters).

Note: pages already open on 0.21.x do not have this code yet; they need one manual refresh after installing the release that ships it. From then on updates reload them automatically.

Validation

  • RED first: test/build-reload.test.mjs failed (no build event, no reload after an update), then 3/3 pass. Real Chrome: /widget/latest, /overlay and /custom/<id> keep their state across a same-version restart, reload once after a version change, and do not reload again.
  • Typecheck 0. Full suite 3399 tests: 3395 pass, 2 skipped, 2 failed only under full-suite load (redesign-regressions MCP thanks queue, panel-preview-races-browser); both pass in isolation twice (13/13). An earlier full run had a different load-only failure (server-held-shutdown), also green in isolation.
  • overlay-theme-deferral test extraction adjusted for the new import; test registered in test/groups.json.

Risk: none (opt-in stream parameter; reload only on a version change).

Linked issue

Closes #355

Pages opened in OBS/Meld kept the code of the version they were loaded
from: after updating to 0.21.0 the custom overlay shell did not know the
new socials widget and left its slot empty until the browser source was
refreshed by hand.

The stream now announces the app version to clients that pass build=1.
The alert overlay, the built-in widgets and the custom overlay shell ask
for it and reload once when they reconnect to a different version. A
restart with the same version reloads nothing; clients without the
parameter keep their exact stream.

Closes #355
@egdev6 egdev6 added the type:bug Bug fix or reliability correction label Nov 25, 2026
@egdev6
egdev6 merged commit f6ffb13 into main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug fix or reliability correction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom overlay shell keeps the old version after an Antena update until the browser source is refreshed

1 participant