openclaw/src/gateway/protocol/schema
Glucksberg 60661441b1
feat(gateway-tool): add config.patch action for safe partial config updates (#1624)
* fix(ui): enable save button only when config has changes

The save button in the Control UI config editor was not properly gating
on whether actual changes were made. This adds:
- `configRawOriginal` state to track the original raw config for comparison
- Change detection for both form mode (via computeDiff) and raw mode
- `hasChanges` check in canSave/canApply logic
- Set `configFormDirty` when raw mode edits occur
- Handle raw mode UI correctly (badge shows "Unsaved changes", no diff panel)

Fixes #1609

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(gateway-tool): add config.patch action for safe partial config updates

Exposes the existing config.patch server method to agents, allowing safe
partial config updates that merge with existing config instead of replacing it.

- Add config.patch to GATEWAY_ACTIONS in gateway tool
- Add restart + sentinel logic to config.patch server method
- Extend ConfigPatchParamsSchema with sessionKey, note, restartDelayMs
- Add unit test for config.patch gateway tool action

Closes #1617

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 23:30:32 +00:00
..
agent.ts fix: enforce group tool policy inheritance for subagents (#1557) (thanks @adam91holt) 2026-01-24 05:49:39 +00:00
agents-models-skills.ts feat: add agent identity avatars (#1329) (thanks @dlauer) 2026-01-22 05:37:15 +00:00
channels.ts refactor: centralize channel ui metadata 2026-01-20 13:11:49 +00:00
config.ts feat(gateway-tool): add config.patch action for safe partial config updates (#1624) 2026-01-24 23:30:32 +00:00
cron.ts fix: refactor cron edit payload patches 2026-01-21 01:14:24 +00:00
devices.ts feat: add device token auth and devices cli 2026-01-20 10:30:53 +00:00
error-codes.ts feat: unify device auth + pairing 2026-01-19 10:07:56 +00:00
exec-approvals.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
frames.ts feat: show node PATH and bootstrap node host env 2026-01-21 11:06:56 +00:00
logs-chat.ts feat: refine subagents + add chat.inject 2026-01-15 23:44:31 +00:00
nodes.ts refactor: remove bridge protocol 2026-01-19 10:08:29 +00:00
primitives.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
protocol-schemas.ts feat: add sessions preview rpc and menu prewarm 2026-01-22 10:21:50 +00:00
sessions.ts fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
snapshot.ts feat: enrich presence with roles 2026-01-20 13:04:20 +00:00
types.ts feat: add sessions preview rpc and menu prewarm 2026-01-22 10:21:50 +00:00
wizard.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00