Skip to content

fix(ui): recover when restricted members cannot open Home - #182941

Merged
steipete merged 5 commits into
mainfrom
openclaw/control-ui-member-home-20261024
Oct 26, 2026
Merged

steipete merged 5 commits into
mainfrom
openclaw/control-ui-member-home-20261024

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #157182
Related: #183018

What Problem This Solves

Fixes restricted members opening an inaccessible Home, getting only Retry, and repeatedly requesting a conversation they cannot use.

User Impact

An unavailable Home offers New conversation for an allowed agent. Accessible Home sessions still open normally. This fixes Home routing and its dock; the broader report's admin-upgrade guidance belongs to #183018.

Why This Change Was Made

The UI asks the Gateway to resolve Home before mounting its route or dock for members with sessions.others: "none". A warm Home can still render from cached routing defaults before hello; the existing reconnect verifier now revalidates it when restricted authentication arrives. A shared recovery view provides the escape action, and the shell/sidebar preserve an explicitly empty route selection instead of rediscovering the ambient Home. The Gateway continues to own visibility and authorization. No denial cache, timer, automatic session creation, or configuration is added.

Evidence

  • Fresh current-main regression: both default-agent and other-agent Home routes incorrectly return a chat session after a denied lookup. The tested route owners and fixtures match current main 66ed3b23bb7a byte for byte.
  • The original Home regressions pass with the candidate: 43 tests across four suites. A fresh P2 review found a warm-start gap; a real application-router regression failed on the published base because Home remained mounted after restricted hello. The repair passes that regression while preserving pre-hello rendering. After integrating main, 51 tests pass across route resolution, reconnect behavior, warm routes and bootstrap. The selected snapshot suite could not collect because the shared installation resolves a debug package without ms; it is not counted as passing.
  • Fresh full-candidate P2 review is scoped-clean with no findings after repairing the warm-start gap. Targeted typed lint and formatting pass. Earlier keyless i18n and UI types passed on the original feature; the integrated typecheck refuses the linked installation because declaration dependencies escape its checkout. Exact-head PR CI supplies broad validation.
  • Surface: production +163/−30 (net +133), tests +161/−1 (net +160), docs +4. The added resolver and shared recovery view cover the route and dock; removing the ambient sidebar fallback prevents repeated ancestry reads.
  • Prior live evidence on this feature: a real disposable Gateway and production UI reduced denied descriptor reads from five to zero for the selected inaccessible Home, with no growth during a settled 12-second window. The recovery button reached /new?agent=team and its composer. Initial default-main probes and unrelated role-denied background methods remain outside this claim. No new live Gateway run has been performed in this lane; the existing focused live evidence is retained.
  • Published head 07b2746aa2c89afdf4d289e531425ac49c9218f5 integrates main b33227f35cceff9294df688ef29e35c4c269585c and preserves contributor history. Exact-head CI run 40379557007 and the final PR gate passed. ClawSweeper re-reviewed this head with zero findings. The earlier head passed CI 40136865728; that result is not claimed for this head.
  • New warm-start regression: 4.16 s red invocation, then 34 focused route/warm/bootstrap cases green in 6.69 s. Post-integration selection: 51 passing tests in 24.75 s including the snapshot collection failure above. Original changed-test per-file times were 1.59–3.48 s; per-file CI timing has not been extracted.

Thanks to Mitchell Etzel (@etzelm) for reporting and working through this issue.

Before After
Before: inaccessible Home offers only Retry After: unavailable Home offers New conversation

roboclaw-bot and others added 2 commits October 24, 2026 18:19
Worked on by:
- @etzelm

Co-authored-by: etzelm <[email protected]>
OpenClaw-Publication: 46569efc-d819-441a-8e3b-40a3ef7e7046
@clawsweeper

clawsweeper Bot commented Oct 24, 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 Oct 24, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 24, 2026 21:51
Worked on by:
- @etzelm

Co-authored-by: etzelm <[email protected]>
OpenClaw-Publication: 3f213a31-b3ce-4f07-9580-8e376e8a59e2
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR checks restricted members’ Home access and offers New conversation when Home is unavailable.

Example: A member restricted to agent team with sessions.others set to none opens /chat/team.

  • Before: The inaccessible agent:team:main conversation shows Retry and continues receiving failed requests.
  • After: Home shows an unavailable state with New conversation leading to /new?agent=team.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused repair with inspected visual evidence, production-flow verification reported in the body, and meaningful regression coverage; broad exact-head validation is still running.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after production-UI screenshots show inaccessible Home changing from Retry to actionable recovery; the retained disposable-Gateway account records navigation to /new?agent=team and reduced denied descriptor reads, while the subsequent warm-start repair has a reported red/green application-router regression.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Restricted members open an inaccessible Home and receive Retry instead of a useful recovery action.
Reason: The maintainer-authored direction repairs an observed workflow without widening permissions; Related links correctly retain the broader report's remaining scope.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs a confirmed Home recovery failure still present on main, with no actionable code findings; exact-head CI remains pending.

Priority: P1
Reviewed head: 07b2746aa2c89afdf4d289e531425ac49c9218f5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI translates Home URLs and dock targets into Gateway session lookups, then renders either an accessible conversation or a recovery action.

flowchart TD
  A[Home route or dock] --> B[Shared Home resolver]
  B --> C[Gateway session visibility]
  C --> D[Accessible conversation]
  C --> E[Unavailable Home]
  E --> F[New conversation page]
Loading

Technical review

Best possible solution:

Land the focused Home recovery repair while retaining Gateway visibility rules and the separate admin-guidance follow-up.

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

Current-main source and production reports establish the failure: open an ambient Home not owned by a member whose sessions.others cap is none; this review did not execute a reproduction.

Is this the best way to solve the issue?

The patch fixes admission to the failing consumers using the existing Gateway resolver, shares recovery presentation, preserves explicit empty selection, and reuses the existing reconnect verifier.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit cca5b14 adds ui/src/pages/chat/route-loader.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cca5b147857d; files: ui/src/pages/chat/route-loader.ts)

PR surface

Source +133, Tests +160, Docs +4. Total +297 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 163 30 +133
Tests 4 161 1 +160
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 328 31 +297

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +163/-30; tests +161/-1 Growth covers two distinct consumers, shared recovery presentation, and warm-start revalidation without introducing persistent state or a competing authorization owner.

Root-cause cluster

Relationship: partial_overlap
Canonical: #157182
Summary: This PR owns Home recovery within the broader restricted-member report; administrator-upgrade guidance is separate.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: Restricted members encounter a broken Home workflow and recurring denied requests on real shared Gateways.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-24T22:18:55.767Z sha a4c26c0 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-25T04:13:04.726Z sha a4c26c0 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-25T18:23:44.971Z sha a4c26c0 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-26T08:26:51.064Z sha a4c26c0 :: needs maintainer review before merge. :: none

Reviewed October 26, 2026, 2:46 PM ET / 18:46 UTC (Revision 5).

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
steipete and others added 2 commits October 26, 2026 11:33
Keep cached Home rendering before hello, then use the existing route verifier to resolve access when restricted authentication arrives.

Co-authored-by: etzelm <[email protected]>
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete
steipete merged commit 77c12a4 into main Oct 26, 2026
117 checks passed
@steipete
steipete deleted the openclaw/control-ui-member-home-20261024 branch October 26, 2026 20:20
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…82941)

Recover restricted members from inaccessible Home without repeatedly mounting or rediscovering the denied conversation. Share Gateway-backed Home resolution, preserve an explicit empty sidebar selection, and revalidate cached Home when restricted authentication arrives.

Validated with red/green route and warm-start regressions, 51 post-integration passing tests, retained disposable-Gateway UI proof, fresh P2 review, and exact-head CI 40379557007. The local snapshot collection dependency failure is documented in the PR.

Co-authored-by: Mitchell Etzel <[email protected]>
Co-authored-by: etzelm <[email protected]>
Co-authored-by: Peter Steinberger <[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 P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

2 participants