Skip to content

improve(ui): stop printing Default in hand-built settings rows - #191409

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/settings-no-default-rows
Nov 3, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/settings-no-default-rows

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Hand-built settings rows add "Default: Enabled" under any value that was set explicitly, including a value that already equals the default. It reads like a second description and says nothing about what the row does.

User Impact

Privacy & Security, Labs, the Memory engine and the Dreaming settings no longer print "Default:" in their rows. The Dreaming model picker and text inputs still show their default as the first option and the placeholder.

Why This Change Was Made

Generated forms are handled by #191375, which moves their default into the "?", and the Appearance page drops it in #191303. Devices exec approvals stay with the Devices work, and the Dreams header stays with #191362. SettingsDefaultDescription stays until those land.

Evidence

Real clicks against an isolated local Gateway with browser.enabled set, so the row printed its default. oxfmt, oxlint, tsgo:ui, ui:i18n:verify and the Security, Memory, Curated settings and Labs tests pass. ui:check-performance:base fails on chat boot JS gzip; current main already fails it at 1280046 B against a 1280000 B cap.

Before, Absolutely light

Before Privacy and Security Absolutely light

After, Absolutely light

After Privacy and Security Absolutely light

After, CRT

After Privacy and Security CRT

After, 390px

After Privacy and Security 390

curated-settings-defaults.e2e now expects no default narration and passes, with settings-layout.e2e.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 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.

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Removes repeated default-value descriptions from Security, Labs, Memory engine, and curated Dreaming settings rows.

Example: Open Privacy & Security with browser.enabled explicitly set to true.

  • Before: The enabled Browser toggle also displays “Default: Enabled.”
  • After: The toggle remains enabled without the repeated default description.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Clear visual evidence supports a small, useful presentation change, but affected E2E consumers still enforce the removed behavior.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots from the reported isolated local Gateway show Security's explicitly enabled browser toggle retaining its state while the default description disappears, with desktop light, CRT, and mobile after views.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Repeated default descriptions add visual noise beneath settings controls, including explicit values equal to their defaults.
Reason: The maintainer-authored direction explicitly accepts quieter rows, and the implementation preserves effective values and editing behavior.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the maintainer-approved presentation change is focused and visually demonstrated, but unchanged E2E assertions cause failures that need a narrow test repair.

Priority: P3
Reviewed head: 590239e2e2f24b983f167c7f5e31001ba4344c5a

Before merge

  • Update the E2E consumers of the removed default descriptions (P2) - Removing this markup leaves persistence scenarios waiting for text that can no longer appear. Exact-head checks-ui-e2e fails at curated-settings-defaults.e2e.test.ts:123 and config-safe-write.e2e.test.ts:473 because both require “Default: Disabled”; the former also requires the browser description at line 142. memory-settings-defaults.e2e.test.ts:141–142 and 161 likewise require the removed engine and frequency descriptions. Update these expectations to the intended quiet rows or retained control values/placeholders, preserving the save, reset, and reload assertions so these scenarios can finish.

Findings

  • [P2] Update the E2E consumers of the removed default descriptions — ui/src/pages/labs/labs-page.tsx:319-320
Agent review details

How this fits together

Control UI settings components turn configuration projections and plugin presentation metadata into editable rows; existing configuration owners continue handling writes.

flowchart LR
  A[Gateway configuration] --> B[Configuration owners]
  C[Plugin presentation metadata] --> D[Settings components]
  B --> D
  D --> E[Visible controls]
  E --> B
Loading

Technical review

Best possible solution:

Keep the presentation deletions and update affected E2E assertions while preserving configuration persistence and inheritance checks.

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

Current-main source and supplied before screenshots establish the repeated descriptions; exact-head CI annotations independently demonstrate the stale E2E expectations.

Is this the best way to solve the issue?

Directly removing the scoped descriptions is the smallest complete implementation; existing configuration owners, controls, and remaining shared-description consumers are appropriately retained.

Full review comments:

  • [P2] Update the E2E consumers of the removed default descriptions — ui/src/pages/labs/labs-page.tsx:319-320
    Removing this markup leaves persistence scenarios waiting for text that can no longer appear. Exact-head checks-ui-e2e fails at curated-settings-defaults.e2e.test.ts:123 and config-safe-write.e2e.test.ts:473 because both require “Default: Disabled”; the former also requires the browser description at line 142. memory-settings-defaults.e2e.test.ts:141–142 and 161 likewise require the removed engine and frequency descriptions. Update these expectations to the intended quiet rows or retained control values/placeholders, preserving the save, reset, and reload assertions so these scenarios can finish.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/curated-settings-defaults.e2e.test.ts ui/src/e2e/config-safe-write.e2e.test.ts ui/src/e2e/memory-settings-defaults.e2e.test.ts
  • pnpm exec oxfmt --check ui/src/e2e/curated-settings-defaults.e2e.test.ts ui/src/e2e/config-safe-write.e2e.test.ts ui/src/e2e/memory-settings-defaults.e2e.test.ts
  • git diff --check

What I checked:

PR surface

Source -35, Tests -6. Total -41 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 2 37 -35
Tests 5 6 12 -6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 8 49 -41

Labels

Label changes:

  • add P3: This is settings presentation polish; the remaining repair updates tests without changing runtime behavior.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is settings presentation polish; the remaining repair updates tests without changing runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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.

Reviewed November 2, 2026, 2:50 PM ET / 19:50 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 05a73c2 into main Nov 3, 2026
15 of 16 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/settings-no-default-rows branch November 3, 2026 19:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…law#191409)

improve(ui): stop printing Default in hand-built settings rows
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant