Repository navigation
fix(ui): preserve schema-backed settings edits - #116282
Conversation
Co-authored-by: wangmiao0668000666 <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 10:59 AM ET / 14:59 UTC. ClawSweeper reviewWhat this changesThe PR revises the Control UI’s schema-backed settings form to retain invalid drafts, validate renderable schema constraints, and avoid partial saves of optional structured settings. Merge readinessKeep open for maintainer review. This is a member-authored PR carrying the Likely related people: Priority: P2 Review scores
Verification
How this fits togetherThe Control UI loads configuration values and a JSON schema from the Gateway, turns supported portions into settings controls, then sends edits through the configuration runtime. This PR changes the form’s schema analysis, draft ownership, validation, and numeric coercion before an update is submitted. flowchart LR
A[Gateway schema] --> C[Control UI settings runtime]
B[Current config values] --> C
C --> D[Schema-backed settings form]
D --> E[Draft preservation and validation]
E --> F[Raw mode or update request]
F --> G[Gateway config validation]
G --> H[Saved configuration]
Decision needed
Why: This is a product and compatibility judgment about existing settings usability, not a mechanical correctness question settled by the added form tests. Before merge
Agent review detailsSecurityNone. PR surfaceSource +2726, Tests +4330. Total +7056 across 30 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the fail-closed form behavior only where Raw mode remains a clear, available fallback for the operator, then rebase or refresh the branch and obtain required CI proof on the merged result. Do we have a high-confidence way to reproduce the issue? Unclear whether the original failures still reproduce on current Is this the best way to solve the issue? Unclear: retaining invalid drafts and preventing partial structured writes is the right direction, but the fail-closed Raw-mode contract needs explicit maintainer confirmation before this can be called the best solution for existing schemas. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ca1328dddbb6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* origin/main: (99 commits) docs(automation): rename scheduled-tasks feature wording to Automations (#114855) feat(ui): finish cron -> Automations rename in visible strings (#114853) feat(cli): add openclaw automations alias and reword cron display prose (#114854) feat(agents): rename scheduler agent tool cron -> automations (#114841) fix(tui): preserve session state across switches and reconnects (#116399) feat(agents): report CLI command outcomes in channel progress fix(cli): preserve explicit option intent (#116389) fix(release): trust update restart harness (#116301) test(reef): remove false-green live guard smoke (#116393) test(comfy): evaluate live guards after setup (#116388) fix(heartbeat): serialize wake lifecycle state (#116351) test: remove redundant extension boundary wrapper (#116385) fix(test): bound Testbox agentic and extension suites (#115696) fix(ui): show the correct Threads page size (#116349) test(discord): align progress timing expectations (#116377) feat(ui): add composable skill references (#116330) fix(qa): prevent Slack cleanup from stalling profile runs (#116361) fix(ci): validate frozen release candidates faithfully (#116357) improve(ci): fail_fast option for release validation, off by default (#116352) fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels ...
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Maintainer landing check complete for exact head
The compatibility choice and required proof are accepted. Merging. |
* fix(ui): harden schema-backed settings controls Co-authored-by: wangmiao0668000666 <[email protected]> * test(ui): match config secret label in Chromium * chore(ui): remove release-owned changelog entry * test(agents): mock incremental registry persistence --------- Co-authored-by: wangmiao0668000666 <[email protected]>
What Problem This Solves
Schema-backed Control UI Settings could discard invalid JSON drafts, expose controls that could not produce schema-valid values, partially save optional nested structures, reuse stale row/validation state, or coerce numeric input differently from the schema validator.
What Changed
The numeric grammar and regression coverage preserve the contribution from @wangmiao0668000666 in #109675.
Screenshot Proof
Both artifact URLs were rechecked successfully before reopening this PR.
Verification
tsgochecks passed.oxlint.mainbriefly regressed one subagent store mock and four unrelated Control UI E2E contracts. The repairs landed in fix(ci): restore subagent announce-loop guard coverage #116307 and fix(ui): restore Workboard routing and full-gate contracts #116342 and are included through signed merge commit0ca19dcc4b06.mainmerge result, 110/110 focused checks passed: 85 config runtime tests, 5 registry tests, 19 real-Chromium integrity/rejection tests, and 1 mocked-Gateway real-Chromium E2E. The two screenshot proofs were recaptured and visually verified.The Blacksmith changed gate failed twice before checks because Testbox sync/API calls timed out. The trusted-source local fallback completed every check through core/UI typechecking; its broad repository-wide core lint eventually timed out in unrelated shards without reporting a lint finding. PR CI remains authoritative for that broad lane.
Stack Status
The former dependency, #116029, is merged. This PR targets
maindirectly and supersedes the closed stacked PR #116030, which GitHub cannot reopen because its original base branch was deleted.