Skip to content

fix(ui): show the real default for unset options in the Config form - #167743

Merged
vyctorbrzezowski merged 5 commits into
openclaw:mainfrom
Marvinthebored:fix/config-form-unset-defaults
Nov 12, 2026
Merged

vyctorbrzezowski merged 5 commits into
openclaw:mainfrom
Marvinthebored:fix/config-form-unset-defaults

Conversation

@Marvinthebored

@Marvinthebored Marvinthebored commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #167741

What Problem This Solves

Fixes: unset UI preferences in the Config form appear off or unselected even when their effective defaults are enabled or selected.

User Impact

User impact: unset preferences show their defaults with muted controls; explicit settings render normally. Controls remain editable, including selecting a displayed default as an explicit override. No migration is required.

Why This Change Was Made

The schema publishes the constant defaults owned by the browser preference loader without adding values to authored configuration. The shared form renderer distinguishes inherited values from explicit overrides. Dynamic defaults name browser-language or server-queue inheritance instead of guessing a literal value. Example placeholders and sensitive defaults retain their existing treatment.

Evidence

  • Current maintainer proof and before/after screenshots: separate matching runtime/UI builds and real isolated Gateways for main 81720a0 and candidate 652da9e. No mocked Gateway responses.
  • Main displays omitted preferences off or unselected; the candidate displays the correct defaults while preserving explicit false.
  • Real edit/save/reload/reset operations preserved authored omissions. The shortcut and theme overrides could be added and removed; the sibling automation trigger also returned to inheritance without adding untouched preference keys.
  • The three retained new regressions fail on main and pass with the PR. After cleanup, 72 form/schema tests and 36 settings/upgrade tests passed.
  • Removed opacity locks and duplicate cases already covered by existing scalar/secret tests. Net new test lines are 95, with a matching scoped allocation. Production code is unchanged by the test-only correction in adadef485571.
  • Normal builds, focused checks and independent review passed. Current-head CI is tracked in the checks below.

Author's earlier captures:

Before After
Before: unset preferences appear off or unselected After: inherited defaults are visible and muted beside an explicit setting

1600×900: before, after.

AI-assisted (Claude and Codex).

@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: M labels Oct 9, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 9, 2026
@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Shows inherited preference defaults distinctly from explicit settings while keeping controls editable and omitted configuration keys omitted.

Example: chatShowThinking is explicitly false; chatShowToolCalls and chatPersistCommentary are unset.

  • Before: All three switches appear off.
  • After: Thinking remains off; tool calls and commentary appear on with muted inherited controls.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused repair with inspected product screenshots, meaningful regression coverage, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected contributor screenshots show the changed Config form through a scratch Gateway at two desktop widths, preserving explicit false while displaying inherited defaults; the body additionally records edit/save/reload preservation and explicit enum-default selection.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Unset preferences look disabled or unselected despite enabled or selected browser defaults.
Reason: The change restores the established inherited-versus-authored settings contract without changing runtime defaults or adding user-facing configuration.

Merge readiness

✅ Ready for maintainer review

This PR fixes a remaining Config form display bug using existing schema and rendering owners; no actionable correctness or security findings remain.

Priority: P2
Reviewed head: 652da9e7244286f651cadb18cc500308fd860a5b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway publishes configuration schema and display hints; the Control UI combines them with authored values to render controls and sends deliberate edits through the existing configuration mutation path.

flowchart LR
  A[Shared preference defaults] --> B[Gateway schema and hints]
  B --> D[Config form renderer]
  C[Authored configuration] --> D
  D --> E[Inherited or explicit controls]
  E --> F[Existing configuration mutation owner]
Loading

Technical review

Best possible solution:

Land the focused display repair through the existing schema, hint, and control owners while preserving explicit overrides and omitted keys.

Do we have a high-confidence way to reproduce the issue?

Current-main schema, browser defaults, and renderer fallbacks establish the mismatch; contributor before/after screenshots corroborate it without a reviewer-run reproduction.

Is this the best way to solve the issue?

The patch is a focused repair: existing owners publish unchanged defaults and render inheritance without introducing another state store, mutation path, or configuration option.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against dbcbc913f134.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 5a9b04b adds ui/src/components/config-form.node.tsx:308 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5a9b04b2f072; files: ui/src/components/config-form.node.tsx)

PR surface

Source +68, Tests +165, Generated 0, Other +3. Total +236 across 16 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 12 93 25 +68
Tests 2 165 0 +165
Docs 0 0 0 0
Config 0 0 0 0
Generated 1 2 2 0
Other 1 3 0 +3
Total 16 263 27 +236

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Root-cause cluster

Relationship: same_root_cause
Canonical: #167741
Summary: This PR repairs the canonical preference-default display report; earlier defaults work addresses related but incomplete surfaces.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Inherited preferences are misleadingly displayed, but settings remain editable and runtime defaults continue working.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-09T09:20:55.467Z sha 29da0719d3acde8463e60fa33adb2dfb3c60ad8c :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T16:40:01.783Z sha 6ba41e73c832df6f5d39180b326fcf532376f352 :: needs changes before merge. :: [P2] Include the new schema dependencies in the PR wrapper inventory
  • reviewed 2026-10-11T17:06:37.252Z sha 4f56e8facdb3221d8773c322c5304c75a36fc9df :: needs maintainer review before merge. :: none
  • reviewed 2026-10-14T01:56:30.210Z sha 4934bce751ef25b981332141fa33832ff9910302 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-14T02:15:18.309Z sha 4934bce751ef25b981332141fa33832ff9910302 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-08T09:50:47.270Z sha 6cf62fc184c936a1e0e59db7bfa3af78904da542 :: needs maintainer review before merge. :: none

Reviewed November 11, 2026, 3:39 AM ET / 08:39 UTC (Revision 7).

@Marvinthebored
Marvinthebored force-pushed the fix/config-form-unset-defaults branch from 29da071 to 6ba41e7 Compare October 11, 2026 16:32
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@Marvinthebored
Marvinthebored force-pushed the fix/config-form-unset-defaults branch from 4f56e8f to 4934bce Compare October 14, 2026 01:48
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Oct 14, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Oct 14, 2026
@Marvinthebored
Marvinthebored force-pushed the fix/config-form-unset-defaults branch from 4934bce to 069bdcb Compare October 21, 2026 03:37
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@Marvinthebored Marvinthebored changed the title fix(ui): unset preferences in the Config form look switched off when their default is on fix(ui): the Config form shows an unset option's real default instead of "off" Nov 9, 2026
@Marvinthebored Marvinthebored changed the title fix(ui): the Config form shows an unset option's real default instead of "off" fix(ui): stops unset options in the Config form looking switched off when their default is on Nov 9, 2026
@Marvinthebored Marvinthebored changed the title fix(ui): stops unset options in the Config form looking switched off when their default is on fix(ui): show the real default for unset options in the Config form Nov 9, 2026
@Marvinthebored
Marvinthebored force-pushed the fix/config-form-unset-defaults branch from 6cf62fc to 652da9e Compare November 11, 2026 07:56
@Marvinthebored

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@vyctorbrzezowski

vyctorbrzezowski commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Merged as 5117315. Thanks @Marvinthebored for the fix and the original reproduction. We also verified preservation of explicit settings and authored omissions through the real Gateway.

Verified Settings → Appearance → UI with separate, matching runtime/UI builds and isolated real Gateways on the Tempbook.

  • Main 81720a0: omitted tool-call visibility appears off; Theme and Chat send shortcut show “Select…”.
  • PR 652da9e: the same omitted settings show their defaults. The existing explicit chatShowThinking: false remains off.
  • Selecting the displayed shortcut default, saving, reloading, and clearing it worked. Theme overrides and the inherited automation-trigger setting also round-tripped. Reading the actual config file confirmed that untouched preference keys stayed absent.

Both runs began with only ui.prefs.chatShowThinking: false. After the candidate's edit/reset sequence, that was still the entire authored ui.prefs object. These are real Gateway/config-file results, not mocked responses.

The three retained new regressions fail on main and pass with the PR. After removing opacity locks and duplicate cases, 72 form/schema tests and 36 settings/upgrade tests passed. Product code is unchanged by that test cleanup.

Main PR
Main: omitted preferences appear off or unselected PR: inherited defaults are visible and explicit false is preserved

These crops show the affected preference card from the actual browser captures. No model completion was needed for this configuration test.

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 12, 2026 07:57
@vyctorbrzezowski
vyctorbrzezowski merged commit 5117315 into openclaw:main Nov 12, 2026
126 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…penclaw#167743)

Show the effective inherited value for omitted Config form options while preserving explicit overrides and authored omissions. Share constant UI preference defaults with the schema; keep dynamic defaults descriptive.

Validated with matching real-Gateway/UI before and after, edit/save/reset/reload disk checks, and108 focused tests on the integrated head.

Co-authored-by: Marvinthebored <[email protected]>
Co-authored-by: Marvinthebored <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawtributors PR from a clawtributor docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Unset preferences in the Config form look switched off when their default is on

4 participants