Repository navigation
fix(ui): move limited access into Inbox - #128941
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 10:46 PM ET / August 25, 2026, 02:46 UTC. ClawSweeper reviewWhat this changesMoves 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 readinessNo 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 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherControl 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -205, Tests -472. Total -677 across 31 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
9f9947f to
fd1c428
Compare
a0c3364 to
b854fb4
Compare
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]>
b854fb4 to
0199682
Compare
|
Land-ready proof for 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:
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 Known proof gaps: none. |
|
Merged via squash.
|
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]>
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.
After: mobile Inbox sheet
Pending request preserved in Settings
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.profile-page.e2e.test.ts,session-progress-live-placement.e2e.test.ts, anddevice-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.