mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
95fdce7049
* fix(ui): confirm disruptive Control UI updates before dispatch Every Control UI update affordance dispatched `update.run` (or the macOS bridge `start-update` message) on the first click, so a misclick could install new code, restart the Gateway, and interrupt active work. Add one canonical confirmation gate in the Control UI owner boundary and route the sidebar/settings-sidebar/floating update card and the Settings -> Updates row through it. The gate owns the copy, the versions, the restart consequence, the action-specific confirm label, and the choice between the macOS bridge and `update.run`, so the bridge fork no longer lives in the card and no surface can drift. CLI, API, automation, agent-driven paths, automatic update campaigns, and the `update.run` contract are unchanged. Addresses the Control UI portion of #117178. * style(ui): apply oxfmt to update confirmation sources * perf(ui): load the update confirmation lazily and share its impact copy Keeps the Control UI startup bundle under its 317 KiB gzip ceiling: the confirmation dialog only loads when an operator opens it. * test(ui): drive the update confirmation in sidebar and shell wiring tests