Repository navigation
fix(panel): keep open forms in sync with changes made outside the panel - #352
Merged
Merged
Conversation
…anel The widgets event already carries the saved widget settings, but the panel only stored the widget data and never refreshed config.widgets, so an open form kept stale values after an MCP or other-window change. Editing such a stale field and saving wrote the old value back. config.widgets is now refreshed from the event when it differs; draft protection keeps unsaved local edits on top. Refs #351
Custom widgets only use the data antena already offers; the published sentence implied any new widget could ship without a release. The fix from the release verification was lost when the commit was amended before the edit landed.
Global alert settings (overlay.css, volume), commands, timers, filters, TTS, Meld, YouTube/Twitch, panel and sessions only reached the panel on reload, so an open form could save a stale value over a change made by MCP, another window, the generic config API or an import. Once one of these sections changes it now travels in every later panel config event (the bus keeps only the latest snapshot), using the same public projection as the initial load, so secrets stay masked. Timers also refresh their list, and interactive, teleprompter and viewers settings written through the generic config publish their snapshots. Program/OBS keep publishing after the OBS password is stored. Refs #351
…anges Every manual editor captured its Discard baseline at the first edit, so after a change saved elsewhere (MCP, another window) Discard put back the older values, and editing that stale form could save them again. Open drafts now move their baseline to the values the server sends (config, widgets, theme, interactive and custom overlay events): the general config and program drafts, widgets, interactive settings, the alert/variation/command/timer editor, Apariencia, chat variants and custom overlays. Not during a save, and never for a draft of another theme. Shortcuts, teleprompter scripts and interviews have no server event carrying the entity and keep the previous behaviour. Refs #351
…sync Adds the independent verifier's probes: OBS password writes publish the right passwordSet without leaking the password to any client, Meld connect/disconnect reach the panel, and viewers written through the generic config send only the public projection to widgets. Refs #351
This was referenced Nov 25, 2026
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
Changes made outside the panel (MCP, another window, the generic config API, imports) now reach every open panel form, and «Descartar» restores the latest saved values. Before, a form could keep a stale value; editing it and saving wrote the old value back, which is how the «Últimos» styles were lost.
config.widgetsfrom thewidgetsevent it already received.overlay.css, volume), commands, timers, filters, TTS, Meld, YouTube/Twitch, panel and sessions publish to the panel when they change, and keep travelling in later events because the bus keeps only the latest snapshot. They use the same public projection as the initial load, so credentials stay masked. Timers also refresh their list; interactive, teleprompter and viewers settings written through the generic config publish their snapshots. Program/OBS keep publishing after the OBS password is stored; Meld connect/disconnect now reach the panel.docs/releases/v0.21.0.md(the published release body was corrected with the owner's approval).Validation
panel-config-sync(7),widgets-remote-sync-browser(5: remote change reaches the form, unsaved edit survives, global alert CSS, Discard for widgets and for the alert editor), updatedconfig-snapshot-coalescingandconfig-versioning. RED observed for the widgets sync, the server sections, the global alert CSS and both Discard cases. Two regressions found during the work were fixed (program alias publication order, OBS passwordSet).pnpm typecheckpasses.Not covered by a dedicated test: the Apariencia, chat variant and custom overlay rebases (same mechanism; typecheck and existing suites).
Linked issue
Closes #351