Repository navigation
fix: guests cannot select owners of readable sessions - #196446
Conversation
Scope owner and people facets and existing person selectors to readable session rows. Preserve saved and empty owner selections without broadening access. Allocate exactly 256 net regression-test lines for the RPC, saved-filter, and real guest-browser contracts. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 86ad86a0-8b23-4e06-8159-1e93a7154eb6
|
🦞👀 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 real behavior proof before merge. What this changesThis PR lets guests filter readable sessions by owner and preserves saved owner selections across reconnects. Example: A guest can read Avery's shared planning session.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this useful maintainer-authored draft open; the production change is focused, but an existing browser regression still requires the behavior it removes. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI sends owner selections to the Gateway session-list owner, which applies current session visibility before returning rows and person facets. flowchart LR
A[Guest browser] --> B[Saved owner selection]
B --> C[Sessions list RPC]
C --> D[Current session visibility]
D --> E[Owner and person filters]
E --> F[Readable rows and facets]
F --> A
Technical reviewBest possible solution: Keep visibility and facet selection in the existing Gateway list owner, retain saved choices, and update the browser regression to the new contract. Do we have a high-confidence way to reproduce the issue? Current main rejects foreign owner selectors and limits guest owner facets; the inspected before screenshot independently shows the missing choices, while the PR reports matching base failures. Is this the best way to solve the issue? The shared list owner is the appropriate repair boundary, and removing its obsolete UI recovery paths is a coherent cutover; the remaining browser regression needs the same contract update. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 21f17afce911. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: No concrete access bypass was found in source, but the changed guest disclosure boundary lacks inspectable RPC diagnostics. EvidenceWhat I checked:
PR surfaceSource -109, Tests +258, Docs +2, Other +3. Total +154 across 13 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. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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, 12:24 AM ET / 05:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: guests cannot select owners of readable sessions Scope owner and people facets and existing person selectors to readable session rows. Preserve saved and empty owner selections without broadening access. Allocate exactly 256 net regression-test lines for the RPC, saved-filter, and real guest-browser contracts. Co-authored-by: vyctorbrzezowski <[email protected]> * fix: guests cannot select owners of readable sessions Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 86ad86a0-8b23-4e06-8159-1e93a7154eb6 * test(ui): preserve saved guest owner selections * test(ui): include guest owner proof in serial inventory --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Merge official main to include openclaw#197058 after openclaw#196446 replaced blanket foreign Activity denial with readable-session filtering. Retain JSON scalar protection and the existing clipboard/person-reference fixtures. The old Skills CI failure remains unclassified; bounded current cases pass without claiming an unsupported product fix.
What Problem This Solves
Guests could not select the owners of sessions they were already allowed to read in the sidebar owner picker.
User Impact
Guests can narrow their readable sessions by owner without gaining access to hidden conversations or private profiles. Valid saved owner choices survive reconnects and reloads. A selected owner with no remaining matches produces an empty result, rather than silently switching to everyone. Existing All owners, Involving me and My sessions meanings and defaults are preserved.
Why This Change Was Made
Owner and people facets derive from the same access-filtered session rows as the list. Person filters narrow those rows without requiring private-directory authority. Presence does not populate the picker, and private-directory RPC authorization is unchanged. The obsolete automatic owner-reset paths are removed; no new protocol fields, configuration or persistence store are introduced.
Evidence
3c84c5d7ece872fcb92281817c827547388c1dcf. Full-candidate P0–P2 source review found no actionable issues; scoped types, lint and formatting passed.Owner picker
Synthetic guest fixture, dark theme, matching 1280×800 captures. These matching menu crops retain native text size. Avery and Riley own readable shared sessions; hidden and sessionless owners are excluded.
Contributor: @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by