Skip to content

fix: Home stays unavailable for read-only viewers - #196902

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/home-readonly-panel-nov10
Nov 11, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/home-readonly-panel-nov10

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

Before: Home is disabled for a read-only session viewer

After

After: Home shows the existing conversation while sending remains disabled

  • Isolated real Gateway + Chromium: the read-only Home button assertion fails on the base and passes with this change; the existing transcript renders with a disabled composer, and a direct send is rejected. The same transcript opens full-page, and changing the target to a foreign draft keeps its content inaccessible after reconnect and in the dock.
  • Focused Home/dock/routing/presentation tests: 63 passed. Existing session-visibility policy controls: 10 passed.
  • UI production and E2E test typechecks, focused lint/format, test-line allocation, docs MDX, and diff whitespace checks passed.
  • Independent local autoreview (Codex, P0–P2) of the complete staged change against 50b29a94f2447772e76b379edbdf9a448a2932b3: no actionable findings. The runtime tests above were run separately. Reviewed source is committed as f7cff9da5013f840da2fbc7f8005ef02a87b8334.
  • Simplification: one redundant write requirement removed; no new access policy, state, config, or protocol. The regression growth covers the reported failure plus real read/denied-target behavior.

Requested by @vyctorbrzezowski.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 10, 2026 23:01
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e202a0c5-698c-426a-ad06-0a54e51ee50f
@clawsweeper

clawsweeper Bot commented Nov 10, 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 Nov 10, 2026
@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. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. 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 Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: The Home button is disabled despite permission to read the conversation.
  • After: Home displays the existing transcript while its composer remains disabled.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The user-visible repair is demonstrated and the production change is minimal, but a directly affected shell regression remains broken and another required browser failure is unattributed.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the real Gateway/Chromium reader scenario changing from unavailable Home to a visible existing transcript with a disabled composer; the accompanying scenario records direct-send rejection and denied-draft exclusion after reconnect.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Viewers who can read Home cannot open its dock because the launcher also requires permission to send.
Reason: The maintainer-authored direction restores consistency with existing session read permissions without introducing a sharing policy, config option, or alternate owner.

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
Reviewed head: 6740b4097c68f10d9e052978690b24926b78f328

Before merge

  • Update the shell regression for readable Home sessions (P2) - The existing shell test sets scopes to ["operator.read"] and then expects homeAvailable to remain false in both connected and offline states. Removing the send requirement makes those expectations false, and checks-ui (2/3) already fails at app-host.dock-suppression.test.ts:256. Update these expectations to allow read-only Home, and retain a separate no-read-scope denial control so the shell consumer tests match the corrected contract.

Findings

  • [P2] Update the shell regression for readable Home sessions — ui/src/app/panel-availability.ts:64
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P2] Update the shell regression for readable Home sessions — ui/src/app/panel-availability.ts:64
    The existing shell test sets scopes to ["operator.read"] and then expects homeAvailable to remain false in both connected and offline states. Removing the send requirement makes those expectations false, and checks-ui (2/3) already fails at app-host.dock-suppression.test.ts:256. Update these expectations to allow read-only Home, and retain a separate no-read-scope denial control so the shell consumer tests match the corrected contract.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Home presentation availability changes intended behavior with a stated reason (98d893a: The reconnect repair retained handshake presentation facts while leaving live dispatch authorization with existing owners; its write requirement was carried forward from the original Home feature.)
  • Home page and dock documentation keeps the original intent (fix(ui): remove duplicate Ask OpenClaw toolbar button #147189: The earlier toolbar repair consolidated Home entry points and preserved their access rules; this addition documents the deliberately corrected read-only access behavior.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/app/app-host.dock-suppression.test.ts src/app/gateway-store.retention.test.ts
  • pnpm --dir ui test src/pages/chat/components/chat-pull-requests.browser.test.tsx
  • git diff --check

What I checked:

PR surface

Source -3, Tests +262, Docs +2, Other +2. Total +263 across 5 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 1 4 -3
Tests 2 262 0 +262
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 5 267 4 +263

Preflight source

Source 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 cluster

Relationship: canonical
Canonical: #196902
Summary: This PR explicitly replaces the earlier, unmerged Home privacy proposal with the requester's narrower read-only access repair.

Members:

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

Labels

Label changes:

  • add P2: Read-only viewers cannot use the Home dock despite having transcript access; the existing full-page presentation limits the blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Read-only viewers cannot use the Home dock despite having transcript access; the existing full-page presentation limits the blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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.

Reviewed November 10, 2026, 6:19 PM ET / 23:19 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 61e2088 into main Nov 11, 2026
91 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/home-readonly-panel-nov10 branch November 11, 2026 05:02
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
* 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]>
steipete added a commit that referenced this pull request Nov 13, 2026
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.
steipete added a commit that referenced this pull request Nov 13, 2026
* 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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
* 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.
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants