Repository navigation
fix(ui): show the real default for unset options in the Config form - #167743
vyctorbrzezowski merged 5 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesShows 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +68, Tests +165, Generated 0, Other +3. Total +236 across 16 files. Added test files: 2. View PR surface stats
Preflight sourceSource 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 clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 11, 2026, 3:39 AM ET / 08:39 UTC (Revision 7). |
29da071 to
6ba41e7
Compare
4f56e8f to
4934bce
Compare
4934bce to
069bdcb
Compare
6cf62fc to
652da9e
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
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.
Both runs began with only 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.
These crops show the affected preference card from the actual browser captures. No model completion was needed for this configuration test. |
…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]>


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
81720a0and candidate652da9e. No mocked Gateway responses.false.adadef485571.Author's earlier captures:
1600×900: before, after.
AI-assisted (Claude and Codex).