mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-22 08:03:52 +08:00
patch_gateway_origins() read a full config snapshot and wrote it back via write_openclaw_config. Because gateway fields are shallow-merged, a stale snapshot could revert concurrent edits to gateway.auth, gateway.port, etc. while auto_pair_device runs on startup or WS reconnect. Write only a partial delta for controlUi.allowedOrigins and add a regression test documenting the merge behavior. Co-authored-by: 晴天 <1186258278@users.noreply.github.com>