Repository navigation
fix(ui): recover when restricted members cannot open Home - #182941
Conversation
Co-authored-by: etzelm <[email protected]>
Worked on by: - @etzelm Co-authored-by: etzelm <[email protected]> OpenClaw-Publication: 46569efc-d819-441a-8e3b-40a3ef7e7046
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Worked on by: - @etzelm Co-authored-by: etzelm <[email protected]> OpenClaw-Publication: 3f213a31-b3ce-4f07-9580-8e376e8a59e2
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +133, Tests +160, Docs +4. Total +297 across 15 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 26, 2026, 2:46 PM ET / 18:46 UTC (Revision 5). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
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]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…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]>
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
66ed3b23bb7abyte for byte.debugpackage withoutms; it is not counted as passing./new?agent=teamand 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.07b2746aa2c89afdf4d289e531425ac49c9218f5integrates mainb33227f35cceff9294df688ef29e35c4c269585cand 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.Thanks to Mitchell Etzel (@etzelm) for reporting and working through this issue.