Skip to content

fix: respect the owner filter in pinned sessions - #203746

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/sharp-lobster-6
Nov 29, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/sharp-lobster-6

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

When you choose a person in the Control UI Sessions sidebar, Pinned can still show sessions owned by someone else. The list appears to contradict the name in its header.

User Impact

A named owner or My sessions now shows only matching pins. When none match, Pinned disappears. All owners brings the hidden pins back in their saved order. Rail shortcuts, the open conversation, and its draft stay put. No user action or migration is required.

Why This Change Was Made

Pinned rows now use the same named-owner match as the session list, without treating absence from the current page as a mismatch. The same visibility rule serves rendering and selection; saved pins and rail shortcuts are unchanged. The existing warm sidebar projection retains the same compact owner fields used by the boot roster.

Evidence

The browser reproduction showed two out-of-scope pins on f066f9cba3135 and only the matching pin on cefcc59cc4065. The focused browser suite passed all three scenarios, including the empty section, restored pin order, and preserved rail shortcut, chat, and draft. Captured in the real Control UI with synthetic Gateway data and a 1280 × 800 Chromium viewport.

Clean comparison

Before After
Before: Daniel selected, with two Riley sessions still pinned After: only Daniel’s session is pinned

Annotated comparison

Before After
Two out-of-scope pins highlighted The matching pin highlighted

The 101 focused projection and snapshot unit tests passed, as did the UI typecheck and formatting checks. Targeted lint reported no errors and one existing Solid warning outside the changed lines. The browser suite took 27 seconds including its production UI build; the unit suite took 2 seconds. No live Team or full-suite CI run was used. Local autoreview stopped before launching because the configured temporary directory is inside the checkout; no review verdict was produced.

Contributor: @vyctorbrzezowski

Work sessions

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

Worked on by

roboclaw-bot and others added 2 commits November 22, 2026 21:38
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: f38fb9a3-fb7b-45a9-bbb4-314a04aa6039
@clawsweeper

clawsweeper Bot commented Nov 22, 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: S labels Nov 22, 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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 22, 2026
@clawsweeper

clawsweeper Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR applies the selected session owner filter to pinned sidebar sessions while preserving saved pins and global rail shortcuts.

Example: Daniel is selected while Story notes, Release planning, and Model picker review are pinned.

  • Before: Pinned shows Riley’s two sessions alongside Daniel’s Model picker review.
  • After: Pinned shows only Model picker review; All owners restores all three pins in their saved order.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful visual proof supports the live filtering change, but persisted-state validation is incomplete and the cached-reload defect needs repair.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Pinned conversations can contradict the person selected in the Sessions header.
Reason: The maintainer-authored direction aligns pins with the existing owner control while preserving saved membership, ordering, and independent rail shortcuts.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this maintainer-authored PR fixes a real sidebar inconsistency, but an introduced cached-reload regression blocks merge.

Priority: P2
Reviewed head: 9f768048bfa7f24f0c872043d020f2099f63ba79

Before merge

  • [P2] Retire owner-less snapshots before filtering cached pins (P2) - An existing version-7 sidebar snapshot with ownerId set, such as profile-daniel, contains pinnedSessions without owner because the pre-PR snapshotSessions writer omitted it. The new optional field still admits that snapshot, and restoreSnapshotNavigation restores its pins unchanged. This predicate consequently rejects every cached pin, including Daniel’s own pins, so Pinned disappears during cached startup and returns only when live data replaces the snapshot. Adding owner to future captures does not repair existing records. Handle incompatible projections at the existing snapshot admission/version owner, or normalize their ownership from available authoritative cached facts, and cover the old-snapshot-to-live reload.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] [P2] Retire owner-less snapshots before filtering cached pins — ui/src/components/app-sidebar-personal-navigation.ts:431

Tests

  • Missing end-to-end proof: Supply redacted browser or terminal evidence for upgrading from the latest stable release with saved pins and filters intact, plus an existing version-7 owner-filtered snapshot reloading through live handoff.
Agent review details

How this fits together

The Control UI sidebar combines Gateway session rows, personal pin references, owner selection, and persisted display snapshots into rendered sections and selection order.

flowchart TD
  A[Gateway session rows] --> D[Sidebar projection]
  B[Personal pin references] --> D
  C[Selected owner] --> E[Shared owner matcher]
  D --> E
  F[Persisted sidebar snapshot] --> D
  E --> G[Pinned rows and selection]
Loading

Technical review

Best possible solution:

Keep shared owner matching and retire incompatible owner-less sidebar projections through the existing snapshot owner before rendering them.

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

Current-main source omits owner filtering for pins, matching the supplied before screenshot; source also establishes the introduced owner-less snapshot failure without executing target code.

Is this the best way to solve the issue?

Sharing the existing owner predicate and pin visibility owner is appropriately small, but snapshot admission must account for previously serialized pins before the new predicate consumes them.

Full review comments:

  • [P2] [P2] Retire owner-less snapshots before filtering cached pins — ui/src/components/app-sidebar-personal-navigation.ts:431
    An existing version-7 sidebar snapshot with ownerId set, such as profile-daniel, contains pinnedSessions without owner because the pre-PR snapshotSessions writer omitted it. The new optional field still admits that snapshot, and restoreSnapshotNavigation restores its pins unchanged. This predicate consequently rejects every cached pin, including Daniel’s own pins, so Pinned disappears during cached startup and returns only when live data replaces the snapshot. Adding owner to future captures does not repair existing records. Handle incompatible projections at the existing snapshot admission/version owner, or normalize their ownership from available authoritative cached facts, and cover the old-snapshot-to-live reload.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Pinned session visibility changes intended behavior with a stated reason (054ac7a: Separate full sidebar pins from explicit rail shortcuts while sharing rendering and selection visibility.)
  • Session owner matching keeps the original intent (fd01817: My sessions represents the current human’s ownership; named-owner filtering retains the existing actor/profile distinction.)
  • Persisted sidebar presentation keeps the original intent (561d92d: Restore a settled sidebar before live data arrives to prevent rows from disappearing or moving during reload.)
  • Dependency-free snapshot owner reader keeps the original intent (9ff9472: Keep general-purpose validation libraries off the chat boot graph while retaining narrow persisted-data readers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 8f04042 adds ui/src/components/app-sidebar-session-ownership.ts:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8f04042ae588; files: ui/src/components/app-sidebar-session-ownership.ts)

PR surface

Source +27, Tests +94, Docs +5. Total +126 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 46 19 +27
Tests 2 94 0 +94
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 145 19 +126

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.

Labels

Label changes:

  • add P2: Owner-filtered pins are a bounded sidebar correctness improvement, with a recoverable cached-reload regression to repair.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Owner-filtered pins are a bounded sidebar correctness improvement, with a recoverable cached-reload regression to repair.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 22, 2026, 4:57 PM ET / 21:57 UTC.

Keep saved pin order and rail shortcuts independent of the selected owner. Use the tested main sidebar and retire only owner-scoped cached pins that lack the filtered projection.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
* fix: respect the owner filter in pinned sessions

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

* fix: respect the owner filter in pinned sessions

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: f38fb9a3-fb7b-45a9-bbb4-314a04aa6039

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[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 P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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