Repository navigation
fix(ui): repair settings titles, scope form-unsafe banner, consolidate advanced settings - #113160
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 22:19
…te advanced tier - Advanced/Notifications settings headers rendered raw i18n keys (tabs.advanced/tabs.notifications); configPageTitle now resolves through the nav registry titleForRoute, deleting the drifting key map. - Form-unsafe banner is value-aware (only when the user's config has a value at a form-unsupported path in the active scope), names the paths, offers an Open Raw editor action, and sits in the content column instead of full-bleed. - Advanced tier collapses to one synced toggle: hidden advanced fields render a ghost row that enables the toggle; the Advanced page always reveals and hides the toggle; per-section details state and the controlled-open dance are deleted; toggle visibility mirrors the renderer's tier split. - schema.tags no longer tags facet-less paths as "advanced" (common fields like update.channel wore a lying chip); the chip is no longer rendered in form rows while tag:advanced search keeps working.
…ale agents.list sweep - openclaw gateway run --dev failed on a fresh state dir: the bootstrap wrote the retired agents.list array and validation rejected its own config (Unrecognized key: list). It now writes the keyed agents.entries record; new dev.test.ts validates the written shape against the zod schema. - Revive the dead gateway hot-reload rule: prefix agents.list never matched canonical config diffs, so per-agent heartbeat edits fell through to the agents:none tail rule; the rule now matches agents.entries. - config set replacement protection moves from the dead agents.list array to the agents.entries map (joins plugins.entries/auth.profiles family). - Sweep remaining stale agents.list config-path strings in hints, fix-it messages, elevated gates, doctor hints, audit text, and type docs to agents.entries.*; RPC ids, the internal list projection, and doctor legacy-migration references intentionally keep the old name.
…rap hint assertion - Knip flagged navigationCopyEntries (test-only export); the audit now walks ALL_ROUTES through prod titleForRoute/subtitleForRoute and rejects raw dotted-key output, so no export exists solely for the test. - commands-context-report expected the retired agents.list[] hint wording.
steipete
force-pushed
the
claude/config-warning-advanced-toggle-3fdd44
branch
from
July 25, 2026 07:27
d9b7baf to
55aad8d
Compare
- tool-policy-diagnostic: keep main's test expectations (dotted agents.entries.<id> paths from the roster-aware implementation); our pre-rebase bracket-style assertions no longer match any code. - Reapply the placeholder sweep the conflict resolution dropped: generic agents.list[] fallbacks in tool-policy-diagnostic and the audit sandbox-mode hint now say agents.entries.*.
Contributor
Author
|
Merged via squash.
|
steipete
added a commit
that referenced
this pull request
Jul 25, 2026
…gnostics (#113603) Audit findings, dangerous-flag labels, exec-approval provenance, filesystem policy drift, and the skill-workshop tool diagnostic printed agents.list.* paths users cannot paste into openclaw.json: dotted agents.list.<id> is valid in no shape, and index-keyed agents.list.<n> only names the internal validation projection. All display surfaces now emit agents.entries.<id>; the summary agent-id extractor regex follows the new labels. Roster-aware builders keep an indexed fallback only for id-less malformed legacy rows, and validation/doctor/legacy-migration paths intentionally keep the legacy form because they point into the user's actual file. Follow-up deferred from #113160.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 26, 2026
…e advanced settings (openclaw#113160) * feat(ui): repair settings titles, scope form-unsafe banner, consolidate advanced tier - Advanced/Notifications settings headers rendered raw i18n keys (tabs.advanced/tabs.notifications); configPageTitle now resolves through the nav registry titleForRoute, deleting the drifting key map. - Form-unsafe banner is value-aware (only when the user's config has a value at a form-unsupported path in the active scope), names the paths, offers an Open Raw editor action, and sits in the content column instead of full-bleed. - Advanced tier collapses to one synced toggle: hidden advanced fields render a ghost row that enables the toggle; the Advanced page always reveals and hides the toggle; per-section details state and the controlled-open dance are deleted; toggle visibility mirrors the renderer's tier split. - schema.tags no longer tags facet-less paths as "advanced" (common fields like update.channel wore a lying chip); the chip is no longer rendered in form rows while tag:advanced search keeps working. * fix(config): dev bootstrap writes canonical agents.entries; finish stale agents.list sweep - openclaw gateway run --dev failed on a fresh state dir: the bootstrap wrote the retired agents.list array and validation rejected its own config (Unrecognized key: list). It now writes the keyed agents.entries record; new dev.test.ts validates the written shape against the zod schema. - Revive the dead gateway hot-reload rule: prefix agents.list never matched canonical config diffs, so per-agent heartbeat edits fell through to the agents:none tail rule; the rule now matches agents.entries. - config set replacement protection moves from the dead agents.list array to the agents.entries map (joins plugins.entries/auth.profiles family). - Sweep remaining stale agents.list config-path strings in hints, fix-it messages, elevated gates, doctor hints, audit text, and type docs to agents.entries.*; RPC ids, the internal list projection, and doctor legacy-migration references intentionally keep the old name. * test(ui): derive nav i18n audit from route registry; fix stale bootstrap hint assertion - Knip flagged navigationCopyEntries (test-only export); the audit now walks ALL_ROUTES through prod titleForRoute/subtitleForRoute and rejects raw dotted-key output, so no export exists solely for the test. - commands-context-report expected the retired agents.list[] hint wording. * fix(config): align rebase resolution with main's roster-aware diagnostic - tool-policy-diagnostic: keep main's test expectations (dotted agents.entries.<id> paths from the roster-aware implementation); our pre-rebase bracket-style assertions no longer match any code. - Reapply the placeholder sweep the conflict resolution dropped: generic agents.list[] fallbacks in tool-policy-diagnostic and the audit sandbox-mode hint now say agents.entries.*.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 26, 2026
…gnostics (openclaw#113603) Audit findings, dangerous-flag labels, exec-approval provenance, filesystem policy drift, and the skill-workshop tool diagnostic printed agents.list.* paths users cannot paste into openclaw.json: dotted agents.list.<id> is valid in no shape, and index-keyed agents.list.<n> only names the internal validation projection. All display surfaces now emit agents.entries.<id>; the summary agent-id extractor regex follows the new labels. Roster-aware builders keep an indexed fallback only for id-less malformed legacy rows, and validation/doctor/legacy-migration paths intentionally keep the legacy form because they point into the user's actual file. Follow-up deferred from openclaw#113160.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The Control UI settings surface had four related problems, all visible on the Advanced settings page:
tabs.advanced/tabs.notificationsas their headers:configPageTitle()hand-builtt("tabs.<id>")keys while the sidebar resolves titles fromNAVIGATION_COPY(routeTitles.*for these two routes), so the two sources drifted.analysis.unsupportedPaths) — showing "Your config contains fields…" to every user even when their config had no value at any affected path. It also duplicated the inline per-field errors without naming paths or offering an action.<details>under a global synced toggle, plus per-section ephemeral expansion state, plus search/deep-link forcing. Sections that are 100% advanced (e.g. Diagnostics) rendered as husks — header + collapsed "Advanced (18)" and nothing else. Separately,deriveTagsForPathtagged any path with zero matched facets as "advanced", so common fields likeupdate.channelwore an "advanced" chip.openclaw gateway run --devon a freshOPENCLAW_STATE_DIRwroteagents.list(an internal projection) instead of the canonicalagents.entries, and the validator immediately rejected the config it had just written:Config validation failed: agents: Unrecognized key: "list".Why This Change Was Made
titleForRoute()registry the sidebar uses (single source of truth;CONFIG_PAGE_I18N_KEYSdeleted). A new test asserts everyNAVIGATION_COPYtitle/subtitle key resolves, guarding the whole class.?advanced=1deep-link) → advanced fields render inline under a plain divider. The per-sectionexpandedAdvancedSectionsstate and the controlled-<details>dance are deleted. The Advanced page — definitionally the advanced surface — always reveals and hides the toggle; the toggle also hides on pages whose scope has no advanced leaves. The zero-facet→"advanced" tag fallback is removed and the "advanced" chip is no longer rendered in form rows (tier is expressed structurally;tag:advancedsearch still works).agents.entriesrecord; the staleagents.list.*.heartbeat.targethint path inschema.tsis corrected.User Impact
openclaw gateway run --devworks again on a fresh state dir.Evidence
Before / after
Screenshots come from a throwaway dev gateway (isolated
OPENCLAW_STATE_DIR,--auth noneon loopback, no credentials in state).Sweep byproducts worth calling out
prefix: "agents.list"never matched canonical configs (diffConfigPathsemitsagents.entries.*), so per-agent heartbeat edits fell through to theagents: nonetail rule and never restarted the heartbeat. The rule now matchesagents.entries;src/gateway/config-reload.test.tscovers the canonical shape.openclaw config set agents.list …replacement protection was equally dead;agents.entriesnow joins the protected-map family (plugins.entries,auth.profiles, …) insrc/cli/config-cli.ts.agents.listoccurrence was either converted (display/config-path strings, fix-it hints, elevated-gate messages, doc comments acrossbash-tools.exec,elevated-unavailable,doctor-core-checks,acp-spawn,tools-effective-inventory,commands-context-report,audit, and config type docs) or intentionally kept: RPC method ids (agents.listgateway method), the internal validated-configlistprojection, and doctor legacy-migration/deprecation code that genuinely refers to the retired shape.Validation
Blacksmith Testbox was unreachable (
backend.blacksmith.shtimeout), so gate lanes ran locally per the documented fallback; source is trusted maintainer work.ui/src/pages/config92, config-form component tests 22,ui/src/app-navigation.test.ts65,ui/src/components/settings-sidebar.test.ts8,src/config/schema.test.ts56,src/cli/gateway-cli145 (+ newdev.test.ts),src/gateway/config-reload.test.ts156,src/config/issue-format.test.ts5, sandbox/tool-policy/workshop 23+, auto-reply/model/cron touched tests 26+, config-form-guidance E2E 1 (Chromium).tsgocore + core-test + ui lanes clean; oxlint on changed files clean;oxfmt --checkclean (34 files);git diff --checkclean;pnpm ui:i18n:verifygreen;pnpm config:docs:checkgreen (baseline regenerated viapnpm config:docs:gen).openclaw gateway run --devnow boots (HTTP 200,Dev config ready, canonicalagents.entries.devwritten) — it failed withUnrecognized key: "list"before.tabs.advanced,tabs.notifications) are fixed; no new console errors introduced.gpt-5.6-sol, high): clean at final run.