Skip to content

improve(ui): clarify model access and saved account copy - #192208

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

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-m3-b

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Models and Profile use inconsistent account, session, and access terminology, and some failures show technical detail without a useful summary.

User Impact

Provider access controls and personal saved accounts use the approved Control UI vocabulary. Read-only and disconnected states explain the next step without exposing permission scope names. Failure summaries keep the underlying redacted detail available. Saved accounts and existing session choices are preserved when a personal default is cleared.

Why This Change Was Made

This is the scoped M3 copy pass: Models defaults, provider access/status/usage, and Profile personal provider accounts. It does not change sign-in authority, stored accounts, provider protocol fields, or account selection behavior. Personal sign-in remains available with write access; it does not newly require admin access.

Before After
Connected accounts Saved accounts
New chat default New session default
Use for new chats Use for new sessions
Use gateway default Use shared default
Test connection Test access
Connection testing requires a newer gateway. Update OpenClaw to test provider access.
Secret saved. API key saved.
Browsing only. Model changes require operator.admin access. You can view Models, but only admins can change them.
Models from {providers} could not be discovered. Couldn’t load models from {providers}. Try again.

Models request failures now render a loading summary separately from supplied detail. Mutation and Profile failures retain redacted detail after their recovery summary. Missing admin access, unsupported configuration editing, disconnection, missing identity, and an unloaded profile stay distinct.

How This Was Tested

  • Targeted UI unit tests: 156 passed across 12 files.
  • Provider usage browser E2E: 5 passed.
  • pnpm ui:i18n:baseline and pnpm ui:i18n:verify: passed; no generated baseline change.
  • Oxfmt and oxlint on touched files: passed; git diff --check: passed.
  • Independent local copy/behavior review: no must-fix findings; final mutation-summary adjustment checked with regression coverage.
  • Tests cover preserved error detail, probe status behavior, admin versus unavailable configuration support, all four personal-account restriction states, write access without admin, and clearing a default without deleting saved accounts or changing existing session choices.

Visual proof

Identical synthetic read-only Models fixture, light theme, cropped to the settings surface. The expanded provider shows the shorter Test access label. No real keys, accounts, or model identifiers are used.

Before: origin/main at 72e8e42210d1bf5f69d0384c84baec0188743337.

Before After
Before: expanded synthetic provider with Test connection After: expanded synthetic provider with Test access

Gaps and unchanged scope

  • Model request/catalog/probe detail and Profile account action/status detail intentionally remain visible; no competing local details component was introduced.
  • defaults.utility already says “Utility model”; the sampled retired defaults.noModels string is not present in this implementation.
  • No live provider sign-ins or paid calls. Native apps, other copy areas, CI, and landing are outside this PR’s local execution scope.

Worked on by

Landing integration preserves personal sign-in with write access, account/default isolation, and M1’s quiet sign-out behavior. The shared action-warning caller now uses the current toast severity API. All 137 affected unit cases and the configured-provider recovery browser case passed; i18n baseline/verification, scoped lint, formatting, and whitespace checks passed. Browser copy consumers were aligned while the existing capture and native-tour proof was reused under the waiver. A 74-line allocation covers the actual test growth; the inherited 184-line overage is unchanged. The final merge with current main is clean.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 22a01ec3-4e3d-4509-87bb-e06a570bc366
@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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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 standardizes Models and Profile terminology and adds recovery summaries while retaining redacted error details.

Example: Expand OpenAI under Models provider access.

  • Before: The action reads “Test connection”.
  • After: The action reads “Test access”.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, owner-directed scope, but visual proof covers one label and the patch introduces misleading recovery copy plus deterministic validation failures.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Models and Profile use inconsistent account/session terms and sometimes show technical failures without a clear recovery summary.
Reason: Maintainer authorship supplies direction for this narrow vocabulary pass, which can improve clarity without changing account or authorization contracts.

Merge readiness

⛔ Needs changes before merge - 6 items remain

Keep this maintainer-authored PR open: the copy improvements are useful, but two misleading recovery messages and reproducible CI failures need repair.

Priority: P2
Reviewed head: 8f4e1ef3b39d7fd3e83961245e0afaff979f79ef

Before merge

  • Keep installed-agent recovery instructions tied to the Gateway (P2) - When Control UI runs in a browser on a laptop or phone connected to another machine, these instructions now tell users to install or sign into apps on “this computer.” Inventory and discovery still run on the connected Gateway, so following that advice cannot repair the reported state. Restore “the Gateway computer” across the description and recovery hints; fix: show installed agent discovery failures and recovery #153693 explicitly established this distinction.
  • Preserve successful writes when formatting refresh warnings (P2) - A successful models.authOrderSet response can contain “Profile priority saved, but live authentication status could not refresh.” flushOrder sends that warning through showProfileActionError and this formatter, producing “Couldn’t complete the request. Try again. Profile priority saved…” after the write already succeeded. Hosted CI reproduces this in model-providers-page.order.test.ts:97. Keep committed-success warnings on a redacted warning path instead of prepending a failed-operation retry instruction.
  • Update the remaining consumers of the changed copy (P2) - Shared English changes leave existing tests expecting retired strings. Hosted checks fail in model-providers-page.installed-agents.test.ts, model-providers/load.test.ts, usage/view.test.ts, and optional-english-loading.test.ts. The Profile E2E also still locates the “Connected accounts” heading at profile-page.e2e.test.ts:184, which this PR renames. Update those assertions and selectors for the final corrected copy while preserving their behavioral checks; retain the committed-success warning regression rather than changing it to accept the new misleading prefix.
  • Account for the added regression tests in the test-line budget (P2) - The introduced diff adds 80 net test lines without a corresponding allocation or consolidation. The required baseline-ratchets check explicitly reports test-lines failure. Consolidate the added coverage or add a narrowly justified config/test-lines-allocations record for the retained growth, following docs/ci/local-proof.md; do not raise the shared scalar.
  • Explain or restore the original intent of Installed-agent recovery location - fix: show installed agent discovery failures and recovery #153693: Tell users to repair app installation, sign-in, and discovery on the Gateway computer.
  • Explain or restore the original intent of Provider mutation outcomes - fix(ui): preserve provider mutation ownership and visible outcomes #116829: Preserve acknowledged writes and distinguish success with refresh warnings from failed mutations.

Findings

  • [P2] Keep installed-agent recovery instructions tied to the Gateway — ui/src/i18n/locales/en-settings.ts:1277-1282
  • [P2] Preserve successful writes when formatting refresh warnings — ui/src/pages/model-providers/config-mutation.ts:235-237
  • [P2] Update the remaining consumers of the changed copy — ui/src/i18n/locales/en-model-accounts.ts:9

Provenance

  • Installed-agent recovery location changes intended behavior without addressing why it exists (fix: show installed agent discovery failures and recovery #153693: Tell users to repair app installation, sign-in, and discovery on the Gateway computer.)
  • Provider mutation outcomes changes intended behavior without addressing why it exists (fix(ui): preserve provider mutation ownership and visible outcomes #116829: Preserve acknowledged writes and distinguish success with refresh warnings from failed mutations.)
  • Exact introduction of the profile warning presenter: original intent not found (unknown: Scoped git log -G and blame could not read an older profiles-view.tsx blob in the partial clone; the current caller and hosted regression independently establish its warning use.)

Tests

  • Missing end-to-end proof: Show the changed Models failure/detail presentation and Profile restriction states through the routed UI; supplied screenshots cover only the action label, and no red-on-base behavioral run is shown.
Agent review details

How this fits together

Control UI presents Gateway-owned provider status and personal accounts, translating request outcomes and permission facts into settings controls and recovery guidance.

flowchart LR
  A[Gateway provider status] --> C[Models owners]
  B[Gateway personal accounts] --> D[Profile account owner]
  C --> E[English copy and error formatting]
  D --> E
  E --> F[Control UI settings]
Loading

Technical review

Best possible solution:

Keep the focused copy pass while preserving Gateway-host guidance and committed-success warnings, updating affected tests, and satisfying the test budget.

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

Current-main strings establish the terminology inconsistency; source tracing and hosted failure annotations establish the introduced regressions without running target code.

Is this the best way to solve the issue?

Existing catalogs, formatters, and account owners are the appropriate boundary, but generic failure summaries must not overwrite the meaning of successful-operation warnings.

Full review comments:

  • [P2] Keep installed-agent recovery instructions tied to the Gateway — ui/src/i18n/locales/en-settings.ts:1277-1282
    When Control UI runs in a browser on a laptop or phone connected to another machine, these instructions now tell users to install or sign into apps on “this computer.” Inventory and discovery still run on the connected Gateway, so following that advice cannot repair the reported state. Restore “the Gateway computer” across the description and recovery hints; fix: show installed agent discovery failures and recovery #153693 explicitly established this distinction.
    Confidence: 0.99
  • [P2] Preserve successful writes when formatting refresh warnings — ui/src/pages/model-providers/config-mutation.ts:235-237
    A successful models.authOrderSet response can contain “Profile priority saved, but live authentication status could not refresh.” flushOrder sends that warning through showProfileActionError and this formatter, producing “Couldn’t complete the request. Try again. Profile priority saved…” after the write already succeeded. Hosted CI reproduces this in model-providers-page.order.test.ts:97. Keep committed-success warnings on a redacted warning path instead of prepending a failed-operation retry instruction.
    Confidence: 1
  • [P2] Update the remaining consumers of the changed copy — ui/src/i18n/locales/en-model-accounts.ts:9
    Shared English changes leave existing tests expecting retired strings. Hosted checks fail in model-providers-page.installed-agents.test.ts, model-providers/load.test.ts, usage/view.test.ts, and optional-english-loading.test.ts. The Profile E2E also still locates the “Connected accounts” heading at profile-page.e2e.test.ts:184, which this PR renames. Update those assertions and selectors for the final corrected copy while preserving their behavioral checks; retain the committed-success warning regression rather than changing it to accept the new misleading prefix.
    Confidence: 1
  • [P2] Account for the added regression tests in the test-line budget — ui/src/pages/profile/model-accounts.test.tsx:236-239
    The introduced diff adds 80 net test lines without a corresponding allocation or consolidation. The required baseline-ratchets check explicitly reports test-lines failure. Consolidate the added coverage or add a narrowly justified config/test-lines-allocations record for the retained growth, following docs/ci/local-proof.md; do not raise the shared scalar.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/model-providers/model-providers-page.installed-agents.test.ts src/pages/model-providers/model-providers-page.order.test.ts src/pages/model-providers/load.test.ts src/pages/usage/view.test.ts src/i18n/optional-english-loading.test.ts src/pages/model-providers/config-mutation.test.ts src/pages/profile/model-accounts.test.tsx
  • pnpm test:ui:e2e ui/src/e2e/profile-page.e2e.test.ts ui/src/e2e/model-provider-usage-outcomes.e2e.test.ts
  • pnpm check:test-lines-ratchet
  • pnpm ui:i18n:verify
  • git diff --check

What I checked:

PR surface

Source +25, Tests +80, Docs +5. Total +110 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 98 73 +25
Tests 10 110 30 +80
Docs 3 12 7 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 220 110 +110

Review metrics

Metric Value Why it matters
Production versus test changes Production +98/−73; tests +110/−30; documentation excluded Production growth stays within existing owners; the 80 net test lines need consolidation or a justified allocation.

Labels

Label changes:

  • add P2: The copy pass introduces misleading remote recovery and saved-operation feedback, with limited blast radius and focused repairs.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The copy pass introduces misleading remote recovery and saved-operation feedback, with limited blast radius and focused repairs.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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, 2:48 PM ET / 19:48 UTC.

Keep successful-save warnings distinct from errors and locate installed-agent recovery on the computer running OpenClaw.

Co-authored-by: vyctorbrzezowski <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 4, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…2208)

improve(ui): clarify model access and saved account copy

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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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