Repository navigation
fix: Home stays unavailable for read-only viewers - #196902
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e202a0c5-698c-426a-ad06-0a54e51ee50f
|
🦞👀 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. |
|
Codex review: needs changes before merge. What this changesThis PR lets viewers open an existing Home conversation without requiring permission to send messages. Example: A viewer has operator.sessions.read access to agent:main:main.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this PR fixes a current Home access bug with a minimal production change, but an existing shell test still asserts the old behavior and fails CI. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI derives Home launcher availability from the Gateway handshake; opening Home uses the existing chat pane, while the Gateway authorizes transcript reads and writes. flowchart LR
A[Gateway handshake] --> B[Home availability]
B --> C[Sidebar and shell launcher]
C --> D[Existing Home chat pane]
D --> E[Gateway session authorization]
E --> F[Authorized transcript or denial]
Technical reviewBest possible solution: Keep the single read-only presentation gate and update the shell regression to distinguish readable Home from missing read authority. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically rejects readers without chat.send access; supplied before/after browser evidence shows the same scenario, and the body reports the regression failing on the base. Is this the best way to solve the issue? The production change is the smallest complete repair: launcher presentation requires read access, while existing session and composer owners retain authorization decisions. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against af52e6160e0e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -3, Tests +262, Docs +2, Other +2. Total +263 across 5 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 Reviewed November 10, 2026, 6:19 PM ET / 23:19 UTC. |
|
Merged via squash.
|
* fix: Home stays unavailable for read-only viewers Co-authored-by: vyctorbrzezowski <[email protected]> * fix: Home stays unavailable for read-only viewers Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e202a0c5-698c-426a-ad06-0a54e51ee50f * test(ui): retain Home access for read-only viewers --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Register the Home reader proof with the existing prepared real-Gateway inventory and serial local owner. The ordinary parallel shard timed out twice while starting its unprepared Gateway. Preserve the timeout and all behavior assertions; extend the ownership guard to catch omitted real-Gateway fixtures. The missing registration came with #196902.
* fix: hide non-chat models from chat selection Require declared text/chat capabilities or a matching catalog entry for chat discovery. Retain negative inference facts so saved pins produce an actionable error without changing the saved selection. Stop compaction retries on deterministic provider request failures and avoid treating service/model mismatches as missing models. * test: construct chat discovery fixtures directly * fix(models): preserve chat capabilities through setup and run admission * fix: deliver unsupported chat errors before channel runs * fix: exclude configured non-chat models at picker publication * test: avoid shadowing the catalog model fixture * test(ui): route Home proof through the real Gateway lane Register the Home reader proof with the existing prepared real-Gateway inventory and serial local owner. The ordinary parallel shard timed out twice while starting its unprepared Gateway. Preserve the timeout and all behavior assertions; extend the ownership guard to catch omitted real-Gateway fixtures. The missing registration came with #196902.
* fix: hide non-chat models from chat selection Require declared text/chat capabilities or a matching catalog entry for chat discovery. Retain negative inference facts so saved pins produce an actionable error without changing the saved selection. Stop compaction retries on deterministic provider request failures and avoid treating service/model mismatches as missing models. * test: construct chat discovery fixtures directly * fix(models): preserve chat capabilities through setup and run admission * fix: deliver unsupported chat errors before channel runs * fix: exclude configured non-chat models at picker publication * test: avoid shadowing the catalog model fixture * test(ui): route Home proof through the real Gateway lane Register the Home reader proof with the existing prepared real-Gateway inventory and serial local owner. The ordinary parallel shard timed out twice while starting its unprepared Gateway. Preserve the timeout and all behavior assertions; extend the ownership guard to catch omitted real-Gateway fixtures. The missing registration came with openclaw#196902.
What Problem This Solves
Fixes: Home stays unavailable when a viewer can read the conversation but cannot send messages.
User Impact
User impact: Read-only viewers can open the existing Home conversation alongside their current page. Sending and session actions remain controlled by the existing session permissions; this does not share Home with anyone new or create a missing Home for a reader.
Why This Change Was Made
Home's presentation gate incorrectly required both history access and message-send access. Remove the redundant send requirement and leave target-session authorization, read-only composition, and page/dock identity with their existing owners.
This supersedes the proposed product direction in #191795, rather than importing its blanket Home privacy restriction. That proposal was not merged.
Evidence
Maintainer correction on
6529245927f8e9aef0df8082ec1450e9fb7adf44: two existing shell expectations now match the approved read-only Home behavior, including offline identity retention. The original expectation failed before correction; 18 dock/retention tests, UI-app types, lint and formatting pass. No production code changed. A fresh full-candidate P0–P2 source review found no actionable issues. The previous popover CI failure did not reproduce in one run at three Chromium widths; its cause is not claimed fixed, and new-head CI remains required.Before
After
50b29a94f2447772e76b379edbdf9a448a2932b3: no actionable findings. The runtime tests above were run separately. Reviewed source is committed asf7cff9da5013f840da2fbc7f8005ef02a87b8334.Requested by @vyctorbrzezowski.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.