Repository navigation
fix(overlay): reload overlay pages once after an Antena update - #356
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
socialswidget, so its footer slot stayed empty until the browser source was refreshed by hand./api/stream?build=1appendsbuild: { version }(app version) after the existing initial frames; clients without the parameter keep their exact stream.reloadOnNewBuild()inpublic/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.widget.jsconnect, which the custom overlay shell also uses) and the alert overlay. The panel is not affected.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
test/build-reload.test.mjsfailed (nobuildevent, no reload after an update), then 3/3 pass. Real Chrome:/widget/latest,/overlayand/custom/<id>keep their state across a same-version restart, reload once after a version change, and do not reload again.redesign-regressionsMCP 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-deferraltest extraction adjusted for the new import; test registered intest/groups.json.Risk: none (opt-in stream parameter; reload only on a version change).
Linked issue
Closes #355