You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A quick second change in Extended Options saves the wrong value #552
If an administrator changes an Extended Option twice quickly, OpenStation can show the final choice while WordPress saves the first one. Everything looks fine until the page reloads and the setting jumps back.
How to reproduce
Open Preferences → Features as an administrator.
Change Enable drag-and-drop in the Media Library.
Change it back before the first save finishes.
The checkbox ends where you left it.
Reload OpenStation. The first value returns because the second change was never saved.
I reproduced this by briefly delaying the first Extended Options request. The UI ended enabled, while the only request sent to WordPress contained media_library_enhanced: false.
What should happen
The last choice should win. If OpenStation cannot accept another change while saving, the control should be temporarily disabled instead of pretending the second click was saved.
What is happening
The control changes immediately, but the save function exits when another request is already running. Nothing queues the newer value for a follow-up save.
Where to look
src/settings/sections/extended.ts
includes/extended-options.php
A good fix would either queue one trailing save with the latest state or lock the control until the current save settles. This still reproduces on current origin/trunk at c670170.
changed the title [-]Extended option toggles can save the opposite of the final visible state[/-][+]A quick second change in Extended Options saves the wrong value[/+]on Aug 11, 2026
The full 137-setting clarity pass reproduced this again with Games: the switch ended On, but WordPress had saved Off and the app disappeared after reload. The existing report and screenshot confirm the same lost-final-change path applies beyond Media Library. PR #581 improves the site-wide wording, but does not claim to fix this save race.\n\n
Activity
[-]Extended option toggles can save the opposite of the final visible state[/-][+]A quick second change in Extended Options saves the wrong value[/+]nickhamze commentedon Aug 11, 2026
Screenshots
The checkbox shows the administrator's final choice, but the server still has the earlier one:
After reload, the server's earlier value returns to the UI:
nickhamze commentedon Aug 12, 2026
The full 137-setting clarity pass reproduced this again with Games: the switch ended On, but WordPress had saved Off and the app disappeared after reload. The existing report and screenshot confirm the same lost-final-change path applies beyond Media Library. PR #581 improves the site-wide wording, but does not claim to fix this save race.\n\n