Skip to content

fix(ui): make reassigned session owners visible - #156743

Open
roboclaw-bot wants to merge 4 commits into
mainfrom
openclaw/session-ownership-visibility-discussion
Open

roboclaw-bot wants to merge 4 commits into
mainfrom
openclaw/session-ownership-visibility-discussion

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: after a session is reassigned, its current owner is easy to miss because the hovercard emphasizes the creator and participants while the header provides no explicit owner label.

User Impact

Users can see who is responsible for a session in both its hovercard and chat header. The header owner chip opens the existing assignment picker when permitted; read-only users still see the owner. Ownership does not change access or sharing authority.

Why This Change Was Made

Show the canonical session owner separately from participants, keep sidebar attribution consistent, and preserve the owner name ahead of participant avatars on narrow screens. Missing ownership stays absent rather than borrowing the creator or a participant.

Evidence

  • Actual Control UI with deterministic, synthetic Gateway fixtures: owner distinct from creator/participants; assignment updates the header; read-only, missing-owner, agent-owner, long-name, dark-theme, and narrow-screen states inspected. This is browser boundary proof, not a live production Gateway test.
  • Focused unit tests: 140 passed across 7 files (10.02 seconds including runner). Browser tests: 121 passed across 2 files (45.62 seconds).
  • UI and all 25 core-test typecheck shards, changed-file lint/stylelint/formatting, i18n, coercion and unused-export checks passed. The aggregate check was interrupted by a host restart; remaining gates completed individually.
  • Independent autoreview: no actionable P0–P2 findings. Subsequent fixes only correct a test element type, type-only import, unused export, and stale sidebar owner-label assertions.
  • CI run 35914330763 exposed two stale sidebar assertions (Created by / Owned by instead of Owner:). Both failures reproduced locally; the assertion-only correction preserves assignment, presence, and archive behavior. All 253 tests in the two affected sidebar suites pass (20.45 seconds runner wall, one worker). The original failing CI test cases took 1.32 seconds and 0.11 seconds; no tests or runtime cost were added.
  • CI run 35915495586 attempt 2 completed and exposed three stale E2E expectations: a single owner was expected to have no header chip, the owner was still treated as an activity link, and a compact dashboard was expected to show participant faces. The assertion-only follow-up preserves single-owner sidebar suppression, participant/message-author navigation, and presence deduplication; it now checks the explicit owner label and compact-header priority. No production or visual behavior changed. Focused header unit/browser proof passed 55 tests in 22.27 seconds; UI test types, changed-file lint/formatting, and independent P0–P2 review passed. The three affected existing E2E files took 52.75, 42.97, and 21.56 CI seconds before correction (including failed waits); no scenarios or process boots were added. Their current-head CI rerun supplies the remaining end-to-end proof.
  • Limitation: the three named Vitest E2E suites could not start because Node loopback preflight returned HTTP 502. No guard/proxy policy was bypassed; the separate Vite/Chromium mock-Gateway flow above passed.

Before

Before: participants appear without an explicit current owner

After

After: Gideon is explicitly labeled as owner in the hovercard and header

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits September 23, 2026 20:10
Show the current owner separately from participants in session hovercards and chat headers, with access to the existing assignment picker.

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

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: dc65cd04-9de1-42a3-81de-35b6d23c9630
@clawsweeper

clawsweeper Bot commented Sep 23, 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: L labels Sep 23, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 23, 2026 20:11
Correct the existing assignment, presence, and archive assertions to the explicit current-owner wording. No production behavior changes.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 8, 2026, 11:06 AM ET / 15:06 UTC (Revision 3).

ClawSweeper review

What this changes

The branch explicitly labels current session owners in hovercards and chat headers and connects the header owner control to the existing assignment picker.

Example: Open a session reassigned to Gideon

  • Before: The hovercard emphasizes Peter Steinberger and participants, while the header has no explicit current-owner label.
  • After: The hovercard identifies Gideon as Owner and the header displays “Owner: Gideon.”

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual proof supports a useful change, but unresolved navigation, documentation, test, and product-direction concerns limit readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots from the actual Control UI browser flow with synthetic Gateway fixtures directly show the changed hovercard and header owners: Gideon is visible separately from Peter Steinberger and participants after the fix. This proves the display change, not live Gateway authorization; no stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: After reassignment, users can mistake the creator or participants for the person currently responsible for the session.
Reason: Explicit responsibility is valuable, but the always-visible header control changes an established presentation that a later operator-directed rollback restored.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open with changes required: both prior findings remain, a patch-caused UI test failure is confirmed, and the header direction needs reconciliation with a later accepted rollback.

Priority: P2
Reviewed head: def2c8e4c1b0c1bed16baa0aec7fb912b9f6926f
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the explicit header owner chip proceed despite the later rejection of a similar assigned-owner header presentation, or should this PR be narrowed to hovercard attribution?
  • Recommendation: Narrow to hovercard attribution: Keep the accepted header presentation and deliver the distinct Owner and Participants display in the hovercard.
  • Why: The later rollback explicitly accepts the previous header layout, but does not decide whether this labeled assignment-control alternative is acceptable.

Before merge

  • Preserve the profile owner's Activity link (P2) - The previously reported late finding remains unchanged. With a qualified profile owner and no sharing control, the base exposes an Activity anchor; this branch renders an assignment button or a plain span instead. A read-only owner consequently has no navigation target, and compact layouts also hide participant links. Preserve a distinct Activity target alongside assignment rather than replacing the established identity route.
  • Reconcile the single-user ownership guidance (P3) - The prior documentation finding remains unchanged. This paragraph now promises an owner chip even for a single owner, but the same page's line 148 still says OpenClaw hides all ownership chrome in that situation. Update the suppression paragraph to distinguish sidebar/filter suppression from the new header and hovercard display.
  • Scope the ownership count to the sidebar (P2) - Late discovery: this assertion was already present at the earlier reviewed head. The new explicit header chip adds a fourth element to this page-wide selector, and the exact-head CI annotation confirms expected 4 to be 3. Scope the assertion to the sidebar surface it protects and assert the header separately instead of counting unrelated presentation elements.
  • Complete next step (P2) - Resolve the current-main merge conflicts after the header direction is settled.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Explain or restore the original intent of ui/src/pages/chat/components/chat-pane-header.ts: profile-owner navigation - 2113967: Make identities clickable consistently across the owner chip, participant and viewer facepiles, and message authors.

Findings

  • [P2] Preserve the profile owner's Activity link — ui/src/pages/chat/components/chat-pane-header.ts:297-308
  • [P3] Reconcile the single-user ownership guidance — docs/concepts/multi-user.md:56
  • [P2] Scope the ownership count to the sidebar — ui/src/e2e/session-ownership.e2e.test.ts:255

Provenance

  • ui/src/pages/chat/components/chat-pane-header.ts: profile-owner navigation changes intended behavior without addressing why it exists (2113967: Make identities clickable consistently across the owner chip, participant and viewer facepiles, and message authors.)

Tests

  • Missing end-to-end proof: No new run was performed during this read-only review. The supplied browser proof covers the visible owner change; the current-head ownership E2E suite still fails its page-wide chip count, and retained profile-owner Activity navigation remains unproven because the patch removes it.
Agent review details

How this fits together

The Control UI receives session ownership and participant facts from the Gateway and presents them in sidebar hovercards and chat headers. Assignment uses the existing session menu; sharing authority remains separate from responsibility.

flowchart LR
  A[Gateway session facts] --> B[Current owner and participants]
  B --> C[Session hovercard]
  B --> D[Chat header]
  D --> E{Assignment permitted?}
  E -->|Yes| F[Existing assignment picker]
  E -->|No| G[Read-only owner display]
Loading

Technical review

Best possible solution:

Make responsibility clear through the existing UI owners while preserving profile Activity navigation and the accepted header design.

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

Yes, source and inspected browser screenshots establish the missing explicit owner display; current main still uses creator-focused hovercard attribution and the earlier header choice. This review did not execute a reproduction.

Is this the best way to solve the issue?

Unclear: separating responsibility from participants is useful, but the proposed header loses established navigation and conflicts with a later accepted rollback.

Full review comments:

  • [P2] Preserve the profile owner's Activity link — ui/src/pages/chat/components/chat-pane-header.ts:297-308
    The previously reported late finding remains unchanged. With a qualified profile owner and no sharing control, the base exposes an Activity anchor; this branch renders an assignment button or a plain span instead. A read-only owner consequently has no navigation target, and compact layouts also hide participant links. Preserve a distinct Activity target alongside assignment rather than replacing the established identity route.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P3] Reconcile the single-user ownership guidance — docs/concepts/multi-user.md:56
    The prior documentation finding remains unchanged. This paragraph now promises an owner chip even for a single owner, but the same page's line 148 still says OpenClaw hides all ownership chrome in that situation. Update the suppression paragraph to distinguish sidebar/filter suppression from the new header and hovercard display.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Scope the ownership count to the sidebar — ui/src/e2e/session-ownership.e2e.test.ts:255
    Late discovery: this assertion was already present at the earlier reviewed head. The new explicit header chip adds a fourth element to this page-wide selector, and the exact-head CI annotation confirms expected 4 to be 3. Scope the assertion to the sidebar surface it protects and assert the header separately instead of counting unrelated presentation elements.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

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

Provenance checked

  • ui/src/pages/chat/components/chat-pane-header.ts: sharing placement changes intended behavior with a stated reason (f77830e: Replace the owner slot with a compact visibility trigger and move Owner into the sharing menu while preserving Activity links.)
  • ui/src/pages/chat/chat-pane-header.ts: owner presence keeps the original intent (6a78332: Use one rendered-owner decision to deduplicate viewers and show whether the owner is watching.)
  • ui/src/components/session-hovercard.ts: attribution changes intended behavior with a stated reason (6e5dabe: Keep compact creator and participant attribution directly below the title with linked participant overflow.)
  • ui/src/components/app-sidebar-session-row-render.ts: owner tooltip keeps the original intent (55ce95f: Separate immutable creation provenance, assignable responsibility, and participant history; sidebar attribution follows current responsibility.)
  • ui/src/pages/chat/components/chat-header-session-menu.ts: assignment navigation keeps the original intent (bf420e9: Use bounded same-panel navigation on compact screens while sharing the existing action and owner-option renderers.)
  • ui/src/components/session-hovercard.ts: channel avatar keeps the original intent (1410ffc: Reuse the authenticated channel-avatar component so sidebar rows and hovercards show the same conversation image.)

Testing

Proof path: shipped entry point. Added test files: 14.

Security

None.

Evidence

What I checked:

  • Introduced owner control removes Activity navigation: The pinned introduced diff replaces the profile-owner Activity anchor with an assignment button or plain span. The identity E2E expectation explicitly asserts that the owner has no href. (ui/src/pages/chat/components/chat-pane-header.ts:297, def2c8e4c1b0)
  • Existing identity-navigation contract: History locates the header Activity-link change at commit 2113967; its recorded rationale extends clickable identities to owner chips, participants, viewers, and message authors. (ui/src/pages/chat/components/chat-pane-header.ts, 2113967a0680)
  • Current main retains the original header choice: At fetched main, sharing still replaces the standalone owner chip; without sharing, qualified profile owners retain Activity navigation. Main therefore does not implement this branch's explicit owner-label design. (ui/src/pages/chat/components/chat-pane-header.ts:365, ea7cc1066568)
  • Later accepted rollback affects product direction: The merged rollback fix(ui): revert assigned-owner header change #160709 reverses a similar assigned-owner header presentation. Its author explicitly records operator rejection and acceptance of restoring the previous header and sharing-menu behavior; that decision covers the exact rollback, not this alternative presentation. (2343a3a50e8b)
  • Single-user documentation remains contradictory: The changed assignment paragraph promises a header owner chip even with one owner, while line 148 still says all ownership chrome is hidden. Both prior-reviewed files are unchanged between the earlier reviewed head and this head. Public documentation: https://docs.openclaw.ai/concepts/multi-user. (docs/concepts/multi-user.md:148, def2c8e4c1b0)
  • Inspected before and after browser screenshots: Both prepared images were inspected locally. Before shows participant attribution without an explicit current owner; after shows Gideon separately as Owner in the hovercard and “Owner: Gideon” in the header. The body identifies actual Control UI browser execution with synthetic Gateway fixtures.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Source +6, Tests +36, Docs 0. Total +42 across 30 files.

View PR surface stats
Area Files Added Removed Net
Source 11 251 245 +6
Tests 17 154 118 +36
Docs 2 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 30 407 365 +42

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Session responsibility visibility is a useful, bounded Control UI improvement without evidence of an urgent runtime outage.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-23T20:39:58.012Z sha 9ff693c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T23:19:00.139Z sha def2c8e :: needs changes before merge. :: [P2] Preserve the profile owner's Activity link | [P3] Reconcile the single-user ownership guidance

Preserve single-owner sidebar suppression, participant and author activity navigation, and presence deduplication while asserting the explicit owner label and compact-header face visibility.

Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added 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 rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 23, 2026

This branch has not been deployed

No deployments
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: L 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.

1 participant