Skip to content

improve(ui): clarify settings access and save feedback - #192247

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/copy-st1-b
Nov 4, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/copy-st1-b

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Settings failures were terse, the shared access denial exposed an internal permission scope, and terminology varied across navigation, forms, profile access, secrets, and Labs. Trigger-word errors also needed clearer summaries while preserving existing display redaction.

User Impact

Clearer failure summaries and next steps, neutral admin requirements, sentence-case labels, and consistent plugin/device terminology. Unsaved drafts, retries, reconnect behavior, permission checks, config keys, and routes are unchanged. Trigger-word tests now guard the existing sensitive-value redaction.

Why This Change Was Made

Keep copy in the existing English catalogs and retain the existing UserFacingError/display-redactor path. Tests exercise that path with a synthetic credential rather than introducing a second redactor.

The shared config capability does not identify whether the browser or the member lacks access, so it now says “You need admin access to change settings.” It does not guess a reconnect or team-admin remedy. The internal nodeHost section remains the same service, labeled “Device service.”

Before After
Save failed Couldn’t save settings. Try again.
Settings not applied Couldn’t apply settings. Review your changes.
Configuration changes require operator.admin access. You need admin access to change settings.
No items yet. Click “Add” to create one. No items yet.
No settings match “{query}” No settings match your search.
Plugin management and extensions Manage plugins and their settings.
Node Host Device service
Host Desktop / Cloud Worker Desktop This computer’s desktop / Cloud device desktop
Administrator access is required to manage secrets. You need admin access to manage secrets.
Could not save trigger words: {error} Couldn’t save trigger words. Try again. + existing redacted detail

Evidence

  • 184 focused unit tests passed across settings save/status/sidebar, config writes/search, Talk, Profile/reconnect, and Labs.
  • 31 mocked browser tests passed: 10 guarded-config save/reconnect tests and 21 agent/config/secrets consumer tests.
  • Matched light-theme save-failure captures passed with the original and updated summary; the crop waits for a fully visible card.
  • pnpm ui:i18n:baseline completed with no generated changes; pnpm ui:i18n:verify passed.
  • Touched-file oxfmt and oxlint passed (0 warnings/errors); git diff --check passed.
  • Startup delays and worker-start failures were resolved through the supported Node entrypoint; they were setup failures, not product results.

Before (origin/main save-failure copy, mocked Gateway, light theme):

Before: terse settings save failure

After (same mocked failure and retained draft):

After: actionable settings save failure

Boundaries and follow-up

Existing secondary details remain in place: the settings save indicator, config-form rejection reasons, secrets partial failures, and trigger-word errors. Trigger-word details remain redacted; no competing details component was introduced. Deep technical/raw-schema text and unrelated channel/provider/plugin copy are not part of this pass.

The local real-Gateway profile E2E could not start: the preparation guard could not verify separation from managed Gateway artifacts. No managed artifacts were rebuilt. The updated assertion is included; this lane still needs the approved isolated runner or CI.

CI and landing are left to the parent maintainer workflow.

Worked on by

Landing integration retains the Labs warning that experiments can change, break, or disappear and applies the infrastructure subtitle separately. It preserves the newer actionable settings-load errors and Device service casing. All 59 focused Labs/Profile cases passed, with i18n baseline/verification, scoped lint, formatting, and whitespace checks. Existing broader settings and browser proof is reused. A 26-line allocation covers the actual test growth; the inherited 183-line overage is unchanged. The final merge with current main is clean.

roboclaw-bot and others added 2 commits November 3, 2026 20:30
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c7fa6cd9-86ca-4f79-ac67-a08eb6efd9e3
@clawsweeper

clawsweeper Bot commented Nov 3, 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 size: M labels Nov 3, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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: 🦐 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:feature Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR clarifies English settings labels, access requirements, and save-error feedback while updating documentation and existing tests.

Example: A settings save fails because the config file is read-only.

  • Before: The failure card says “Save failed” above “Synthetic config file is read-only”.
  • After: The card says “Couldn’t save settings. Try again.” with the same reason and actions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, narrowly implemented copy improvements with direct visual evidence, but two introduced guidance errors require correction.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots show SettingsSaveIndicator rendering the revised ordinary save-error summary against a mocked Gateway failure; they establish the visible copy change without claiming real-Gateway recovery coverage.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Settings terminology and terse failure summaries make access requirements and recovery harder to understand.
Reason: Maintainer authorship establishes direction, and the focused copy pass improves clarity without adding runtime machinery.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this maintainer-authored PR open: the copy improvements are useful, but two messages misdescribe their behavior and GitHub reports a merge conflict.

Priority: P2
Reviewed head: b177ceae7636be2e18def94be356d9da8998d548

Before merge

  • Keep the Gateway host explicit in desktop-control copy (P2) - When this browser connects to a Gateway on another computer, this switch still writes desktop.host.enabled and controls that Gateway's desktop. Both the new title and description identify the target as “this computer”, so an operator can enable remote desktop access while believing the switch concerns the computer running the browser. Retain “Gateway computer” or equivalent target-specific wording.
  • Avoid retry instructions in the non-retryable recovery state (P2) - If configuration publication fails and rollback is not restored, settings-sidebar-shell selects recovery. SettingsSaveIndicator uses this shared summary but intentionally hides Retry, leaving only Discard changes; the updated recovery test explicitly asserts that combination. Adding “Try again” therefore directs the user toward an unavailable action during recovery. Keep the shared summary neutral or select recovery-specific wording through the existing failure-kind branch.
  • Complete next step - The PR author should resolve GitHub's reported merge conflicts and rerun the checks affected by that resolution.
  • Explain or restore the original intent of Host desktop target description - df707a9: The original desktop feature targets the Gateway host; removing that qualifier is unexplained for browsers connected remotely.

Findings

  • [P2] Keep the Gateway host explicit in desktop-control copy — ui/src/i18n/locales/en-labs.ts:73-75
  • [P2] Avoid retry instructions in the non-retryable recovery state — ui/src/i18n/locales/en-settings-sidebar.ts:13

Provenance

  • Host desktop target description changes intended behavior without addressing why it exists (df707a9: The original desktop feature targets the Gateway host; removing that qualifier is unexplained for browsers connected remotely.)

Tests

  • Missing end-to-end proof: The screenshots cover the ordinary save-error card; remote-Gateway desktop wording and the non-retryable recovery summary are not shown.
Agent review details

How this fits together

English catalogs supply Control UI navigation, settings forms, and status components, which display outcomes from the existing config and Gateway owners.

flowchart LR
  A[English catalogs] --> B[Settings UI]
  B --> C[Config write owner]
  C --> D[Gateway RPC]
  D --> E[Save outcome]
  E --> B
Loading

Technical review

Best possible solution:

Keep the existing catalog and renderer owners, preserve the Gateway desktop target in the wording, and give non-retryable recovery an accurate summary.

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

The remote-Gateway target mismatch and recovery-without-Retry path are directly traceable in source and existing tests; no target code was executed.

Is this the best way to solve the issue?

Editing the existing English catalogs is appropriately small, but the revised guidance must preserve the target and available actions of each consuming state.

Full review comments:

  • [P2] Keep the Gateway host explicit in desktop-control copy — ui/src/i18n/locales/en-labs.ts:73-75
    When this browser connects to a Gateway on another computer, this switch still writes desktop.host.enabled and controls that Gateway's desktop. Both the new title and description identify the target as “this computer”, so an operator can enable remote desktop access while believing the switch concerns the computer running the browser. Retain “Gateway computer” or equivalent target-specific wording.
    Confidence: 0.98
  • [P2] Avoid retry instructions in the non-retryable recovery state — ui/src/i18n/locales/en-settings-sidebar.ts:13
    If configuration publication fails and rollback is not restored, settings-sidebar-shell selects recovery. SettingsSaveIndicator uses this shared summary but intentionally hides Retry, leaving only Discard changes; the updated recovery test explicitly asserts that combination. Adding “Try again” therefore directs the user toward an unavailable action during recovery. Keep the shared summary neutral or select recovery-specific wording through the existing failure-kind branch.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • English catalog placement and navigation terminology changes intended behavior with a stated reason (353db54: Earlier performance changes moved cold copy into existing lazy catalogs while preserving registration and namespace ownership.)
  • Settings failure-card summaries changes intended behavior with a stated reason (e01e177: The card redesign kept reasons visible and deliberately offered only Discard changes when configuration restoration failed.)
  • Trigger-word errors and display redaction keeps the original intent (4be1a4b: Gateway reasons remain visible through UserFacingError and the shared display formatter, while programming-error details stay out of user messages.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/components/settings-save-indicator.test.ts ui/src/pages/labs/labs-page.test.tsx --maxWorkers=1
  • pnpm ui:i18n:verify
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit e01e177 adds ui/src/components/settings-save-indicator.tsx:206 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e01e17776788; files: ui/src/components/settings-save-indicator.tsx)
  • Peter Steinberger: Raw commit 3948a0f adds ui/src/i18n/locales/en-labs.ts:37 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3948a0fd1831; files: ui/src/i18n/locales/en-labs.ts)

PR surface

Source -2, Tests +26, Docs 0. Total +24 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 49 51 -2
Tests 14 71 45 +26
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 121 97 +24

Labels

Label changes:

  • add P2: The remaining defects misidentify a desktop-control target and give unavailable recovery guidance, with limited scope.
  • 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 🐚 platinum hermit 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:

  • P2: The remaining defects misidentify a desktop-control target and give unavailable recovery guidance, with limited scope.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit 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 3, 2026, 3:49 PM ET / 20:49 UTC.

@openclaw-barnacle openclaw-barnacle Bot closed this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 3, 2026
roboclaw-bot and others added 2 commits November 4, 2026 12:32
Preserve the approved copy pattern and behavior while correcting the referenced action or computer.

Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski merged commit 421fc07 into main Nov 4, 2026
23 of 25 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-st1-b branch November 4, 2026 14:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
improve(ui): clarify settings access and save feedback

Co-authored-by: vyctorbrzezowski <[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 docs Improvements or additions to documentation 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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.

2 participants