Skip to content

fix(ui): move limited access into Inbox - #128941

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/grounded-inbox-access-options
Aug 25, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/grounded-inbox-access-options

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes an issue where operators with limited browser access saw a prominent warning control in the global header even though the existing Inbox is the product surface for operational attention items.

Why This Change Was Made

Moves limited-access status into the Inbox's System tab across desktop, mobile, onboarding, and Settings. The request lifecycle is owned once by the application context, so pending state survives normal/floating Inbox presenters while the heavy request controller remains behind the lazy panel boundary.

User Impact

The header stays focused on global navigation. Operators see an Inbox badge for limited access, can open a grounded System item, and can request administrator access from the same attention surface used for other operational conditions.

Evidence

Visual proof

The captures below come from the deterministic mocked Control UI flow and were inspected before upload.

Before: header warning After: desktop Inbox System item
Limited-access warning in the mobile header Limited access in the desktop Inbox System tab

After: mobile Inbox sheet

Limited access in the mobile Inbox System tab

Pending request preserved in Settings

Pending limited-access request in the Settings Inbox

Automated proof

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts ui/src/e2e/chat-side-panel-clearance.e2e.test.ts ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts ui/src/e2e/new-session-page.operator-scopes.e2e.test.ts — 38/38 affected E2E checks passed.
  • OPENCLAW_UI_E2E_ARTIFACT_DIR=.artifacts/control-ui-e2e/limited-access-inbox node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts — 8/8 current-head screenshot checks passed.
  • The deferred-request scenario collapses navigation, opens the floating Inbox, enters Settings, and proves the same single request/wait remains pending before approval reconnects.
  • profile-page.e2e.test.ts, session-progress-live-placement.e2e.test.ts, and device-scope-upgrade.e2e.test.ts — 18/18 passed after exact-head CI repair.
  • node scripts/check-changed.mjs — passed.
  • pnpm build — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean; no accepted/actionable findings (0.98).

Control UI startup after the lazy-boundary repair: 331.8 KiB JS gzip and 44.4 KiB CSS gzip, both within budget.

Production LOC: +409/-628 (net -219) | Tests/test support: +193/-651 (net -458)

Best-fix verdict: the Inbox is the presentation owner for operational attention, while the application context is the correct lifetime owner for one access-request operation shared by every presenter.

Alternatives considered: keeping the header icon would preserve the duplicated warning surface; moving the warning into Activity would incorrectly scope a gateway-wide access condition to one page.

Code read: ui/src/app/bootstrap.ts, ui/src/app/context.ts, ui/src/app/device-scope-upgrade.ts, ui/src/app/device-scope-upgrade-controller.runtime.ts, the Inbox/header/navigation callers, the Gateway client cancellation contract, and focused browser/E2E coverage.

Remaining uncertainty: none for the deterministic UI/request lifecycle covered here; hosted exact-head CI remains the landing gate.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Aug 25, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 25, 2026 00:53
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. 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 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 10:46 PM ET / August 25, 2026, 02:46 UTC.

ClawSweeper review

What this changes

Moves limited-browser-access status and administrator-access requests from header controls into the Control UI Inbox System tab while preserving one request lifecycle across desktop, mobile, Settings, and onboarding presenters.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding remains on the current head. The revised implementation keeps the request lifecycle above replaceable Inbox presenters and restores a focusable disclosure for the recovery explanation; this member-authored PR should remain open for normal current-main merge refresh and exact-head CI completion.

Priority: P2
Reviewed head: 0199682f482a8a8609cedcb6231733318c538217

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A solid owner-boundary refactor with focused coverage; only normal exact-head merge and CI completion remain.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this repository-member PR; its body nevertheless supplies mocked Control UI captures and focused browser E2E results for the changed flow.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this repository-member PR; its body nevertheless supplies mocked Control UI captures and focused browser E2E results for the changed flow.
Evidence reviewed 6 items Current-main comparison: Current main still mounts the limited-access surface from the shell/header path, so the central UI change is not already implemented there.
App-lifetime owner: The new capability subscribes once to gateway state and retains a single controller after Inbox presenters close or change.
Lazy Inbox caller: Opening any Inbox presenter activates the retained controller before rendering the panel, preserving the intended lazy boundary.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts: terminal command did not produce output within 20 seconds: "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts"

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128941-aGhwny/target$ node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoad
er runner ui/src/e2e/device-scope-upgrade.e2e.test.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-128941-aGhwny/target

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts












































Assertions:

  • FAIL expect_output: device-scope-upgrade.e2e.test.ts

How this fits together

Control UI receives gateway access state and turns operator attention into Inbox items. A limited-access browser can request administrator access through that Inbox item, while the application context retains the request state as UI presenters change.

flowchart LR
  A[Gateway access state] --> B[Application context]
  B --> C[Shared access-request lifecycle]
  C --> D[Inbox System item]
  D --> E[Administrator request]
  C --> F[Settings and onboarding]
  E --> G[Gateway reconnect]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main and exact-head checks are still in progress; complete the normal three-way merge refresh and CI gate before landing.
  • Complete next step (P2) - No concrete repair remains after the latest head addressed the prior interaction concern; this PR needs normal merge refresh and validation rather than an automated fix lane.
Agent review details

Security

None.

PR surface

Source -205, Tests -472. Total -677 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 23 423 628 -205
Tests 8 178 650 -472
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 31 601 1278 -677

Review metrics

Metric Value Why it matters
Production vs test LOC production +409/-628 (net -219); tests and test support +193/-651 (net -458) The refactor removes the old header-specific surface while adding the shared application capability and focused presenter coverage.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/src/app/app-shell-view.ts, migration/backfill/repair: ui/src/app/bootstrap.ts, migration/backfill/repair: ui/src/app/context.ts, migration/backfill/repair: ui/src/app/device-scope-upgrade-controller.runtime.ts, migration/backfill/repair: ui/src/app/device-scope-upgrade-registration.ts, migration/backfill/repair: ui/src/app/device-scope-upgrade-retry.runtime.ts, and 15 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the application-owned request lifecycle and the Inbox-owned presentation, then land the refreshed head once its merge result and required checks are green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the application-owned request lifecycle and the Inbox-owned presentation, then land the refreshed head once its merge result and required checks are green.

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

Not applicable: this PR changes the placement of an existing limited-access status rather than reporting a separately reproducible product failure.

Is this the best way to solve the issue?

Yes. The Inbox is already the attention presenter, while application context is the correct lifecycle owner for a request that must survive presenter replacement; the prior header-specific surface duplicated that responsibility.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this repository-member PR; its body nevertheless supplies mocked Control UI captures and focused browser E2E results for the changed flow.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded Control UI attention-flow change with no current blocking defect found.
  • 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: Not applicable to this repository-member PR; its body nevertheless supplies mocked Control UI captures and focused browser E2E results for the changed flow.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Current-main blame and history attribute the Inbox lazy-panel flow and the former scope-upgrade surface to this recent feature commit. (role: recent Control UI feature owner; confidence: high; commits: b0e8a985ee11; files: ui/src/components/sidebar-attention.ts, ui/src/app/device-scope-upgrade-registration.ts)

Rank-up moves

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

  • Refresh against current main and complete the exact-head CI gate before landing.

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 (3 earlier review cycles)
  • reviewed 2026-08-25T01:00:01.052Z sha 9f9947f3f8747c1fbd250ff9f69ad734c183367a :: found issues before merge. :: [P1] Keep the scope-upgrade controller above changing Inbox presenters
  • reviewed 2026-08-25T01:50:41.945Z sha fd1c428 :: needs changes before merge. :: [P1] Keep the upgrade request above replaceable Inbox presenters
  • reviewed 2026-08-25T02:31:34.466Z sha b854fb4c8df342672d56ec499a2613f5ce08edee :: needs changes before merge. :: [P2] Preserve the read-only update explanation

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/grounded-inbox-access-options branch from 9f9947f to fd1c428 Compare August 25, 2026 01:44
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 25, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/grounded-inbox-access-options branch 2 times, most recently from a0c3364 to b854fb4 Compare August 25, 2026 02:25
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 25, 2026
Make the existing Inbox the canonical limited-access surface across desktop, mobile, and onboarding while preserving the scope-upgrade request lifecycle.

Co-authored-by: Tak Hoffman <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/grounded-inbox-access-options branch from b854fb4 to 0199682 Compare August 25, 2026 02:40
@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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 25, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready proof for 0199682f482a8a8609cedcb6231733318c538217.

The existing Inbox now owns limited-access presentation while one ApplicationContext capability owns the request lifecycle across normal/floating Inbox, onboarding, collapse, and Settings. The duplicate header popover/modal path is removed. Production LOC is +409/-628 (net -219); tests/test support are +193/-651.

Validation:

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/device-scope-upgrade.e2e.test.ts ui/src/e2e/chat-side-panel-clearance.e2e.test.ts ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts ui/src/e2e/new-session-page.operator-scopes.e2e.test.ts — 38/38 passed.
  • Current-head screenshot/lifecycle lane — 8/8 passed; desktop, mobile, onboarding, and Settings captures are in the PR body.
  • profile-page.e2e.test.ts, session-progress-live-placement.e2e.test.ts, and device-scope-upgrade.e2e.test.ts — 18/18 passed after CI repair.
  • Full Control UI browser suite — 10,710 passed, 1 skipped.
  • node scripts/check-changed.mjs — passed.
  • pnpm build — passed; startup 331.8 KiB JS gzip / 44.4 KiB CSS gzip.
  • Fresh autoreview — clean, no accepted/actionable findings (0.99).
  • Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/32802285940 — green.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 128941 — passed; prep/head SHA match.

ClawSweeper moves: the shared lifecycle + transition proof were applied. The current-main update-tooltip finding is skipped with live merge-ref proof: the PR has zero merge-result diff for sidebar-update-card.ts, and the merged tree retains aria-disabled, open-on-click, the administrator-required explanation, component coverage, and mobile E2E.

Known proof gaps: none.

@roboclaw-bot
roboclaw-bot merged commit fd6576a into main Aug 25, 2026
164 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/grounded-inbox-access-options branch August 25, 2026 02:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
Make the existing Inbox the canonical limited-access surface across desktop, mobile, and onboarding while preserving the scope-upgrade request lifecycle.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: Tak Hoffman <[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 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: XL 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.

1 participant