Skip to content

improve(ui): collapse limited access notice - #123735

Merged
clawsweeper merged 4 commits into
mainfrom
fix/ui-limited-access-hybrid
Aug 14, 2026
Merged

clawsweeper merged 4 commits into
mainfrom
fix/ui-limited-access-hybrid

Conversation

@clawsweeper

@clawsweeper clawsweeper commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #123734

What Problem This Solves

Fixes an issue where users with a limited Control UI browser profile would see a full-width access banner on every route with no way to reclaim the occupied workspace after understanding the restriction.

Why This Change Was Made

The access notice now uses a hybrid presentation: it appears as the existing full banner on first encounter, can be collapsed into a compact Limited access chip, and restores the explanation and Request admin action when the chip is clicked. The collapsed preference is browser-local, while active request, pending, rejection, and error states remain fully visible. Existing contextual guidance on blocked actions is unchanged.

The same interaction also applies when the Gateway only supports manual upgrade guidance. The startup fallback remains available if the lazy banner module cannot load. This is an AI-assisted change that was manually inspected and autoreviewed.

Maintainer direction: the requesting maintainer reviewed four UX alternatives and explicitly selected the hybrid banner-to-chip design implemented here.

User Impact

Limited browser profiles can dismiss the persistent full-width notice without losing access-state visibility or the administrator-upgrade path. The compact chip survives reloads in that browser profile and expands on demand.

No Gateway methods, scope enforcement, pairing approval, token rotation, or protocol behavior change.

Evidence

Local deterministic checks:

  • pnpm ui:i18n:baseline — PASS (baseline entries=94, source keys=5023); no baseline drift.
  • pnpm ui:i18n:verify — PASS.
  • pnpm docs:check-mdx — PASS (773 files).
  • Targeted oxlint on the changed TypeScript files — PASS.
  • Targeted stylelint on ui/src/styles/components.css and ui/src/styles/layout.css — PASS.
  • git diff --check — PASS.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean, no accepted/actionable findings.

Browser regression added in ui/src/e2e/device-scope-upgrade.e2e.test.ts:

  • dismisses the initial banner;
  • verifies the compact status chip;
  • reloads and verifies the chip persists;
  • expands the chip and verifies Request admin returns;
  • verifies manual-guidance mode can also collapse to the chip.

Exact-head browser E2E and broader UI gates are pending GitHub CI. Hosted Testbox was unavailable on the source host because its CLI was absent, and the documented AWS Crabbox fallback was unavailable because no broker login was configured; no remote-proof claim is made.

Review remediation on head a3ddd30f20da3b2cb8383458692f922fb4c9f273:

  • ClawSweeper identified that the existing native-chrome geometry regression still targeted the generic startup fallback after manual guidance moved to the steady-state scope-upgrade component.
  • The test now waits for and measures openclaw-device-scope-upgrade-banner .callout.
  • Exact-head CI then exposed the same fallback-to-steady-state race in the table-driven guidance geometry case. That assertion now scopes to the final component and waits for stable layout before measuring. The same shard also contained an unrelated Skills duplicate-request failure; this PR does not widen into that owner.
  • Targeted formatting/lint, i18n verification, diff check, and fresh autoreview passes are clean after each repair.

Red-main repair:

  • While the PR was in flight, merged PR fix(codex): refresh session meters after /codex compact #123640 grew src/auto-reply/reply/commands-compact.test.ts past the repository max-lines guard, causing the exact-head core-lint shard to fail independently of this UI change.
  • Under the repository's landing-onto-red policy, this branch rebases onto that main state and moves the existing context-budget cases into commands-compact-context-budget.test.ts without changing production code or assertions.
  • Targeted max-lines lint passes for both files; the focused compaction suite passes 38/38; a fresh autoreview is clean.

Final exact-head proof:

  • GitHub CI run 31822635920 — PASS on a3ddd30f20da3b2cb8383458692f922fb4c9f273, including UI, all eight browser E2E shards, real-Gateway E2E, docs, i18n, prod/test types, all core-lint stripes, the max-lines ratchet, QA profiles, and openclaw/ci-gate.
  • A sanitized after screenshot was not produced because neither configured remote visual backend was available from the source host. The deterministic browser flow and all hosted browser shards are green; no visual-proof claim is made.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper
clawsweeper marked this pull request as ready for review August 14, 2026 16:22
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:15 PM ET / 17:15 UTC.

ClawSweeper review

What this changes

This PR lets a limited Control UI browser collapse its access banner into a persistent local status chip that restores the explanation and administrator-request action when selected.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open. Current main still renders the limited-access guidance without a collapse control; this maintainer-authored PR supplies the requested browser-local chip while retaining the fallback and active upgrade states. No blocking code defect was found, but product direction, visual confirmation, and exact-head CI remain for maintainers.

Priority: P2
Reviewed head: a3ddd30f20da3b2cb8383458692f922fb4c9f273
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a coherent, tested presentation-layer change with no supported correctness finding, pending final UI confirmation and exact-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its mocked browser E2E is useful supplemental coverage, while a sanitized visual run would still improve merge confidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its mocked browser E2E is useful supplemental coverage, while a sanitized visual run would still improve merge confidence.
Evidence reviewed 6 items Current main still lacks the requested UI: Current main returns the generic warning banner immediately for manual-guidance state, so it has no collapsible status-chip path.
Owner-boundary implementation: The branch stores only the collapsed presentation locally, limits collapse to available or guidance states, and continues to show requesting, pending, rejected, and error states in full.
Fallback preserved: The shell still renders the existing warning banner if the optional scope-upgrade module is not loaded.
Findings None None.
Security None None.

How this fits together

The Control UI reads a browser’s scope-upgrade capability from the Gateway snapshot and displays guidance before page content. This change alters that presentation while leaving Gateway authorization, device pairing, and upgrade requests unchanged.

flowchart LR
A[Gateway scope snapshot] --> B[Control UI availability state]
B --> C{Limited browser state}
C --> D[Full access notice]
D --> E[Browser-local collapse preference]
E --> F[Limited access chip]
F --> G[Restore guidance and request action]
D --> H[Pending or error upgrade state]
Loading

Decision needed

Question Recommendation
Should limited Control UI profiles gain a browser-local collapsed notice while retaining the full notice on first encounter and all active upgrade states? Approve the hybrid notice: Keep the full first-run explanation and provide the persistent chip afterward so limited profiles can reclaim workspace without losing the recovery path.

Why: The implementation is coherent, but the discoverability-versus-workspace tradeoff is a product UX choice already marked for maintainer direction on the linked issue.

Before merge

  • Resolve merge risk (P1) - Exact-head required checks are still queued, and the PR body does not attach sanitized visual proof from a running Control UI; verify both before merging.
  • Complete next step (P2) - This protected maintainer PR is paired with an open product-direction issue; a human should confirm the UX choice and exact-head validation rather than dispatch a repair.
Agent review details

Security

None.

PR surface

Source +93, Tests +113, Docs +1. Total +207 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 6 105 12 +93
Tests 3 249 136 +113
Docs 2 3 2 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 357 150 +207

Review metrics

Metric Value Why it matters
Production versus test delta production +105/-12 (net +93); tests +249/-136 (net +113); docs +3/-2 The production growth implements a new Control UI presentation state; the unrelated compaction changes are test-only extraction to satisfy the line-limit guard.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/src/app/device-scope-upgrade.runtime.ts, migration/backfill/repair: ui/src/e2e/device-scope-upgrade.e2e.test.ts, migration/backfill/repair: ui/src/styles/components.css, migration/backfill/repair: ui/src/styles/layout.css, serialized state: ui/src/app/device-scope-upgrade.ts, vector/embedding metadata: src/auto-reply/reply/commands-compact.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Adopt the hybrid notice only if maintainers want browser-local workspace recovery, keeping all scope-upgrade lifecycle states and the lazy-module fallback under the existing scope-upgrade owner.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Adopt the hybrid notice only if maintainers want browser-local workspace recovery, keeping all scope-upgrade lifecycle states and the lazy-module fallback under the existing scope-upgrade owner.

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

Not applicable as a feature request; the branch contains a deterministic mocked-Control-UI E2E path for collapse, reload persistence, and restoration, but it was not executed in this read-only review.

Is this the best way to solve the issue?

Yes. The presentation state stays with the existing scope-upgrade owner, preserves the generic lazy-load fallback, and does not duplicate Gateway authorization or pairing policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e44dde218f16.

Labels

Label justifications:

  • P2: This is a bounded Control UI usability improvement with persistent but non-blocking impact on limited browser profiles.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its mocked browser E2E is useful supplemental coverage, while a sanitized visual run would still improve merge confidence.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame identifies Peter Steinberger as the author of the scope-upgrade banner implementation that this PR extends. (role: current feature owner; confidence: high; commits: f39f48f7b962; files: ui/src/app/app-shell-view.ts, ui/src/app/device-scope-upgrade.runtime.ts, ui/src/app/device-scope-upgrade.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the exact-head required checks complete successfully.
  • Attach a sanitized before/after Control UI screenshot or short recording if practical.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-14T16:28:39.470Z sha 5740d4c9b6adbae9d646bee7f1710bdf240f5216 :: needs changes before merge. :: [P1] Update the native-guidance layout assertion for the new banner host
  • reviewed 2026-08-14T16:37:33.916Z sha afbbe3648e42993d6d5176a5be9584329ae96440 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 14, 2026
@clawsweeper
clawsweeper force-pushed the fix/ui-limited-access-hybrid branch from 561f4f3 to a3ddd30 Compare August 14, 2026 17:08
@clawsweeper

Copy link
Copy Markdown
Contributor Author

Land-ready verification

Exact head: a3ddd30f20da3b2cb8383458692f922fb4c9f273

The requested hybrid UX is implemented: the full limited-access notice appears initially, dismisses into a browser-local persistent chip, and expands back to the explanation and Request admin action. Active request/error states remain full-size and blocked actions retain contextual guidance.

Review work completed:

  • ClawSweeper's stale fallback-host selector finding was repaired in both affected geometry paths.
  • The requesting maintainer explicitly selected the hybrid banner-to-chip UX, resolving the product-direction item.
  • Latest ClawSweeper review has no actionable code findings.
  • Current-main's inherited compaction max-lines failure was repaired by moving existing context-budget tests into a dedicated test file; no production compaction behavior changed.

Local proof:

  • pnpm ui:i18n:baseline and pnpm ui:i18n:verify — PASS.
  • pnpm docs:check-mdx — PASS (773 files).
  • Targeted TypeScript/CSS lint and git diff --check — PASS.
  • Focused compaction tests — PASS (38/38).
  • Required autoreview reruns — clean after the UI patch, both selector repairs, and the red-main test split.

Hosted proof:

Known proof gap: no sanitized after screenshot was produced because neither configured remote visual backend was available from the source host. The browser behavior is covered by deterministic E2E and green hosted shards; no visual-proof claim is made.

@clawsweeper
clawsweeper merged commit e03d1a4 into main Aug 14, 2026
193 of 194 checks passed
@clawsweeper

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
* improve(ui): collapse limited access notice

* test(ui): follow limited access banner host

* test(ui): await limited access guidance host

* test(compaction): split context budget coverage

---------

Co-authored-by: RoboClaw <[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 gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Control UI limited-access notice dismissal

3 participants