Skip to content

fix: keep Person grouping available with one readable owner - #196485

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/guestfix-g09-nov10
Nov 11, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/guestfix-g09-nov10

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Person disappears from the sidebar's Group by menu when only one readable owner remains. A saved Person choice then displays as Custom groups.

User Impact

Keep Person grouping available with one owner or an empty result, and retain the selected grouping through refresh, filtering, reassignment, navigation and reload. People sorting keeps its existing multiple-owner requirement. The default grouping remains Custom groups.

Why This Change Was Made

Remove the sorting-cardinality condition from the existing grouping preference and menu. The existing readable-session projection still owns membership and owner identity; no new access rule, cache or state owner is added.

The readable-owner foundation is now on main through #196446. This branch incorporates it once, including the saved-owner regression correction and serial Gateway test inventory. The remaining diff contains only this PR's seven files. The two mechanical conflict resolutions retain main's 241-line foundation allocation and this PR's extended grouping scenario.

Evidence

CI follow-up on e7a0975c7a8d47d1245a60491d5f6f954fd5dba6: the new grouping scenario read the row count after the section settled but before its existing layout frame placed both rows. A temporary observer recorded the section with one DOM row at 16.3 ms while accepted data already contained both, then both rows at 31.7 ms. The test now waits for the exact two session IDs; production is unchanged. The full filter file passed 19/19 with the same pinned Bun revision as CI, and lint, formatting and the UI-components test typecheck passed. The exact test-line allocation is now 175. The Linux failure was not reproduced verbatim locally; the early-satisfied predicate was observed directly.

  • Maintainer integration head: 2d98b221dc007b0dbd3cb791b9f2c9ad0b3f38d6. The production lines added and removed are identical to the originally reviewed grouping change; current main's Last updated default is preserved.
  • On the integrated head, 151 focused browser/sidebar/grouping tests passed. They cover one, zero and loading owner snapshots, same-name identities, saved grouping and the unchanged People-sort contract.
  • One isolated real-Gateway + Chromium scenario passed on this head (22.299 seconds test time), using the source Control UI at 1280×800 and 390×844. It covers the one-owner menu, saved grouping after reload, distinct same-name owners, navigation, an empty owner filter and denied private-directory reads. Restoring only the two production files from integrated main makes the grouping-specific browser case fail because Person is missing; the candidate files were then restored byte-for-byte.
  • Earlier independent real-Gateway verification on published head 53d9dc9fafeb913991c6b773c94ea643b6fd3b73 exercised sharing revocation with synthetic profiles. Three readable sessions and two distinct owners became two sessions and one owner after revocation; the revoked session was no longer readable. users.list and presence.query remained forbidden. This is reused prior evidence, not a claim of a new revocation run. The session filtering, activity policy, list owner, saved-owner filter and sidebar source files are byte-identical across those two heads.
  • The original real-Gateway baseline reproduced the single-owner menu failure on desktop and phone. The original source review found no actionable issues; this integration preserves that production delta. Current-head CI is separate from those earlier results.

Visual evidence

Inspected, sanitized captures use synthetic guest data, dark theme, and matching 1280×800 desktop / 390×844 phone viewports. Before is the dependency-backed unchanged grouping; after is the G09 production change. Screenshots are embedded below. All four images were decoded and visually inspected in the actual PR body, including the fully visible equal-width phone pair without overflow. The representative Before/After pair was delivered in the originating chat and verified by the coordinator.

Desktop

Before

Guest Group by menu before at 1280 by 800

After

Guest Group by menu after at 1280 by 800

Phone

BeforeAfter
Guest Group by menu before at 390 by 844 Guest Group by menu after at 390 by 844

Work sessions

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

Worked on by

roboclaw-bot and others added 3 commits November 10, 2026 06:07
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]>
(cherry picked from commit 66f0296)
Keep the saved Person display choice independent of People sort cardinality.
Reuse the existing stable-identity sections without widening readable membership.
Allocate exactly 169 net regression-test lines for the menu, preference
transitions, existing ownership consumer, and isolated real guest flow.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: df804859-2df9-4649-b79d-0fecc17d34a0
@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 gateway Gateway runtime size: L 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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 real behavior proof before merge.

What this changes

This PR keeps Person grouping available with zero or one readable owner and includes guest filtering by owners of readable sessions.

Example: A guest's three readable conversations are all owned by Avery.

  • Before: Person is absent from Group by, and a saved Person choice displays Custom groups.
  • After: Person remains selectable and groups all three conversations under Avery.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The UI simplification has direct visual evidence, but the combined patch retains a contradictory browser consumer and lacks inspectable authority-boundary results.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Person grouping disappears as readable-owner membership shrinks, and guests cannot select owners of conversations they can already read.
Reason: The maintainer-authored direction explicitly separates grouping from sorting cardinality and restores useful filtering without new settings or state owners.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this useful maintainer-authored draft open; the grouping change is focused, but its bundled dependency leaves an existing browser regression inconsistent with the new behavior.

Priority: P2
Reviewed head: 53d9dc9fafeb913991c6b773c94ea643b6fd3b73

Before merge

  • Add real behavior proof - Authority-chain proof required: inspected desktop and phone screenshots establish the grouping-menu change in the reported isolated Gateway/source-UI setup, but the bundled guest-filter change has only reported browser assertions and test source for allowed foreign-owner reads, hidden/private-session exclusion, and users.list/presence.query denial; attach redacted real RPC results and show sharing or role revocation takes effect before a subsequent response, removing credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Update the existing guest browser regression to preserve saved owners (P2) - Removing the authenticated-hello reset retains the seeded owner:profile-josh selection, but this existing browser scenario mocks that request as FORBIDDEN and still requires the first query to contain involvingMe, the saved value to become involving-me, and reload to retain that replacement. Those assertions contradict the introduced behavior and will fail when this consumer runs. Update its fixture and assertions to exercise a readable saved foreign owner while preserving coverage of the unsaved guest default.
  • Resolve security review attention item - No concrete access bypass was found, but the bundled guest disclosure change needs final-response authority evidence.
  • Resolve merge risk - Before merge, the PR owner must establish that broadened guest person selectors and cached facets remain limited to currently readable sessions after sharing or role changes.

Findings

  • [P2] Update the existing guest browser regression to preserve saved owners — ui/src/e2e/session-owner-filter-guest-default.e2e.test.ts:104-105

Tests

  • Low-value test ui/src/components/session-owner-filter.test.ts: Remove the obsolete pending-query settlement setup and repeated facet-status variants: the changed observer no longer consumes those statuses or waits for settlement.
  • Missing end-to-end proof: The supplied screenshots show menu availability, but no inspectable RPC trace demonstrates the bundled guest disclosure boundary, including rejection after authority changes.
Agent review details

How this fits together

The Control UI stores grouping and owner preferences, sends session-list queries to the Gateway, and renders sections from access-filtered session rows and owner identities.

flowchart LR
  A[Saved sidebar preferences] --> B[Control UI sidebar]
  B --> C[Sessions list RPC]
  C --> D[Current sharing policy]
  D --> E[Readable rows and owner facets]
  E --> F[Existing person section renderer]
  F --> B
Loading

Technical review

Best possible solution:

Keep the existing grouping and visibility owners, update the contradictory browser consumer, and establish the guest disclosure boundary before landing the combined change.

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

Current-main source directly shows the single-owner grouping fallback, corroborated by the inspected Before images; no target code or tests were executed during this review.

Is this the best way to solve the issue?

Removing the grouping gate is the smallest complete UI change, and the dependency appropriately reuses readable-row visibility, but its existing browser consumer must adopt the new contract.

Full review comments:

  • [P2] Update the existing guest browser regression to preserve saved owners — ui/src/e2e/session-owner-filter-guest-default.e2e.test.ts:104-105
    Removing the authenticated-hello reset retains the seeded owner:profile-josh selection, but this existing browser scenario mocks that request as FORBIDDEN and still requires the first query to contain involvingMe, the saved value to become involving-me, and reload to retain that replacement. Those assertions contradict the introduced behavior and will fail when this consumer runs. Update its fixture and assertions to exercise a readable saved foreign owner while preserving coverage of the unsaved guest default.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Verify the narrower guest disclosure boundary (recommended)
    The PR owner should supply real-Gateway final-response diagnostics for readable foreign-owner filtering, private-session exclusion, directory denial, and changed sharing or role authority.

Provenance checked

  • Person grouping cardinality changes intended behavior with a stated reason (3ea90bd: Person grouping intentionally shared the multiple-identity gate with People sorting; the later roster repair retained single-owner dormancy.)
  • Guest person selectors and facets changes intended behavior with a stated reason (5d3e157: Restrict foreign activity timelines and facets for session-only guests while preserving shared-session access.)
  • Saved foreign-owner recovery changes intended behavior with a stated reason (5b3ff07: Repair restored foreign-owner selections before querying a Gateway that rejects them.)
  • Owner-filter query lifecycle keeps the original intent (3982daa: Separate synchronous preference ownership from asynchronous refresh and automatic facet repair; removing automatic repair explains removing its settlement bookkeeping.)
  • Roster-backed sidebar reads keeps the original intent (c289fc3: Reuse the roster query rather than issuing an unused filtered list query; this PR removes obsolete facet observation without changing that read owner.)

Testing

Proof path: shipped entry point.

Security

Needs attention: No concrete access bypass was found, but the bundled guest disclosure change needs final-response authority evidence.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3ea90bd adds ui/src/components/app-sidebar-session-navigation.ts:123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3ea90bdcdb30; files: ui/src/components/app-sidebar-session-navigation.ts)
  • Vincent Koc: Raw commit 5b3ff07 adds ui/src/components/session-owner-filter.ts:33 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5b3ff077dcbd; files: ui/src/components/session-owner-filter.ts)
  • Vyctor H. Brzezowski: Raw commit 9455286 adds ui/src/components/app-sidebar-session-navigation.ts:115 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 94552862ad84; files: ui/src/components/app-sidebar-session-navigation.ts)

PR surface

Source -115, Tests +427, Docs +2, Other +6. Total +320 across 18 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 7 36 151 -115
Tests 8 507 80 +427
Docs 1 9 7 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 2 6 0 +6
Total 18 558 238 +320

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.

Review metrics

Metric Value Why it matters
Production versus regression-test LOC Production +36/-151; regression tests +505/-80 Production shrinks by reusing existing owners; most test growth adds the real-Gateway browser flow, while obsolete settlement scaffolding remains removable.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Grouping and readable-owner selection are bounded sidebar usability improvements; conversations remain accessible through existing views.
  • merge-risk: 🚨 security-boundary: The bundled dependency removes an explicit guest person-activity restriction and broadens returned person facets.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-response proof for readable foreign-owner selection and the nearest forbidden private-session read, including rejection after sharing or role authority changes.

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, 2:01 AM ET / 07:01 UTC.

@openclaw-barnacle openclaw-barnacle Bot added size: M and removed gateway Gateway runtime size: L labels Nov 11, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 11, 2026 04:24
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 11, 2026 04:26
@vyctorbrzezowski
vyctorbrzezowski merged commit 1e32e12 into main Nov 11, 2026
91 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/guestfix-g09-nov10 branch November 11, 2026 04:59
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

steipete added a commit that referenced this pull request Nov 11, 2026
Keep the keyboard and drag-and-drop E2Es aligned with the explicit Person grouping contract from #196485. Select Custom groups before category moves and restore Person before reconnect; retain the full mutation assertions.
Patrick-Erichsen added a commit that referenced this pull request Nov 11, 2026
* test(ui): advertise settings reads in browser fixtures

* fix(gateway): retire scope observers at close intake

* feat(templates): inline native configuration in CLAW.md

* feat(templates): show dependency origins and exact installed versions

* test(templates): migrate catalog contract fixtures

* test(templates): migrate remaining manifest consumers

* docs(templates): keep paused guidance with its implementation

* refactor(templates): share catalog dependency projection

* test(templates): consolidate application planning fixtures

* test(templates): reconcile companion regression credit

* test(reply): preload CLI execution fixture before runtime imports

* test(android): control Wear handoff cleanup timing

* test(android): settle constructor history before cold-start recording

* test(ui): retire obsolete foreign Activity denial scenario

* fix(ui): confirm read-only Home access before rendering

* test(gateway): accept saved deferred plugin reload receipts

* fix(ui): retain guest setup notices when Home is unavailable

* test(templates): reuse dependency fixtures within the existing budget

* test(ui): align session E2E with persistent Person grouping (#197101)

Keep the keyboard and drag-and-drop E2Es aligned with the explicit Person grouping contract from #196485. Select Custom groups before category moves and restore Person before reconnect; retain the full mutation assertions.

* test(gateway): acquire admitted plugin runtimes for lifecycle proof

* test(ui): align Settings fixtures with retained navigation rail

Settings keeps the desktop navigation rail and Inbox while replacing the session panel. Update the missed browser assertions and preserve pending admin-request, recurrence, approval and Escape navigation checks.

Reproduced six failures on main 8830ff6. All 29 cases across the three affected files pass after the fixture migration (45.92s). Scoped lint, UI and UI E2E types, formatting and ratchets pass; net test-line growth is zero. Independent review found no actionable issues.

* test(ui): check picker stability before measuring provider geometry

Move the existing trial click before both edge measurements so the opening scale animation cannot mix coordinates from different frames. Preserve the exact no-overlap assertion and all desktop/mobile, keyboard, composition and model-selection coverage.

The ordinary local baseline passed and is not causal clearance. A controlled probe of the real CSS animation reproduces exact CI right=707.90625 at scale0.9 while the simultaneous gap is7.2px; the finished frame retains8px. Full affected suite passes3/3 in19.50s. Scoped lint/types/format and ratchets pass; no production logic, new waits, diagnostic code or test-line growth. Independent review clear.

---------

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…#196485)

* 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]>
(cherry picked from commit 66f0296)

* fix: keep Person grouping available with one readable owner

Keep the saved Person display choice independent of People sort cardinality.
Reuse the existing stable-identity sections without widening readable membership.
Allocate exactly 169 net regression-test lines for the menu, preference
transitions, existing ownership consumer, and isolated real guest flow.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: keep Person grouping available with one readable owner

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: df804859-2df9-4649-b79d-0fecc17d34a0

* test(ui): wait for grouped session row placement

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…#197101)

Keep the keyboard and drag-and-drop E2Es aligned with the explicit Person grouping contract from openclaw#196485. Select Custom groups before category moves and restore Person before reconnect; retain the full mutation assertions.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
* test(ui): advertise settings reads in browser fixtures

* fix(gateway): retire scope observers at close intake

* feat(templates): inline native configuration in CLAW.md

* feat(templates): show dependency origins and exact installed versions

* test(templates): migrate catalog contract fixtures

* test(templates): migrate remaining manifest consumers

* docs(templates): keep paused guidance with its implementation

* refactor(templates): share catalog dependency projection

* test(templates): consolidate application planning fixtures

* test(templates): reconcile companion regression credit

* test(reply): preload CLI execution fixture before runtime imports

* test(android): control Wear handoff cleanup timing

* test(android): settle constructor history before cold-start recording

* test(ui): retire obsolete foreign Activity denial scenario

* fix(ui): confirm read-only Home access before rendering

* test(gateway): accept saved deferred plugin reload receipts

* fix(ui): retain guest setup notices when Home is unavailable

* test(templates): reuse dependency fixtures within the existing budget

* test(ui): align session E2E with persistent Person grouping (openclaw#197101)

Keep the keyboard and drag-and-drop E2Es aligned with the explicit Person grouping contract from openclaw#196485. Select Custom groups before category moves and restore Person before reconnect; retain the full mutation assertions.

* test(gateway): acquire admitted plugin runtimes for lifecycle proof

* test(ui): align Settings fixtures with retained navigation rail

Settings keeps the desktop navigation rail and Inbox while replacing the session panel. Update the missed browser assertions and preserve pending admin-request, recurrence, approval and Escape navigation checks.

Reproduced six failures on main 53dfe7c. All 29 cases across the three affected files pass after the fixture migration (45.92s). Scoped lint, UI and UI E2E types, formatting and ratchets pass; net test-line growth is zero. Independent review found no actionable issues.

* test(ui): check picker stability before measuring provider geometry

Move the existing trial click before both edge measurements so the opening scale animation cannot mix coordinates from different frames. Preserve the exact no-overlap assertion and all desktop/mobile, keyboard, composition and model-selection coverage.

The ordinary local baseline passed and is not causal clearance. A controlled probe of the real CSS animation reproduces exact CI right=707.90625 at scale0.9 while the simultaneous gap is7.2px; the finished frame retains8px. Full affected suite passes3/3 in19.50s. Scoped lint/types/format and ratchets pass; no production logic, new waits, diagnostic code or test-line growth. Independent review clear.

---------

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 merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants