Skip to content

fix(ui): show the assigned session owner beside sharing controls - #160673

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
codex/session-owner-header
Sep 28, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
codex/session-owner-header

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #160670

What Problem This Solves

Assigning a shared session to a teammate succeeds, but the header hides that person's avatar and leaves the original participant visible—even after refreshing.

User Impact

The header shows the current assignee beside the visibility control and participants. Assignment still changes responsibility only; sharing permissions remain anchored to the creator.

Why This Change Was Made

The sharing control suppressed the canonical owner chip. Its popup then labeled creator-backed sharing data as the current Owner. Restore the chip from the session's assigned owner and remove the duplicate, misleading ownership display from the sharing menu, including its draft-only branch and unused styles/props.

Evidence

  • Reproduced through Actions → Assign to… → Vyctor, successful RPC, and a full reload in isolated Chromium using the real production UI bundle and the existing mocked Gateway harness. Before the fix, the visible Owned by Vyctor assertion fails. This is UI boundary proof; no live production Gateway was changed.
  • After: desktop (1440px) and mobile (390px) assignment updates immediately and survives reload. Loading creator-backed sharing details preserves the assignee and excludes the creator from editable members.
  • 63 component tests pass; 7 browser cases pass across assignment/reload, chat/dashboard presence, mobile sharing in light/dark mode, and non-manager drafts. New browser cases take about 3 seconds together after the suite build.
  • Full CI exposed an obsolete heading-count assertion in the existing visibility-only sharing test. Updated it to check the actual Visibility/Public access headings; all 16 ownership/sharing browser cases pass, including the rejected-visibility error flow. The production fix and visual proof are unchanged.
  • Changed-file typechecks, i18n, repository guards, unused-export scans, lint and styles pass. Test-only lint issues were corrected and the focused lint/style checks rerun.
  • Independent Codex autoreview: scoped-clean through P2. Production change: −73 lines; owner/participant rendering and sharing authority keep their existing owners.

Before

Only Patrick's participant avatar is visible after assignment to Vyctor.

Before: assigned owner missing

After

Vyctor's owner avatar is visible beside Patrick's participant avatar.

After: current assignee visible

Mobile and sharing menu

Mobile: current assignee remains visible

Sharing: creator is not mislabeled as assigned owner

@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 28, 2026 19:25
@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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 4:23 PM ET / 20:23 UTC (Revision 2).

ClawSweeper review

What this changes

The Control UI chat header shows the assigned session owner beside sharing controls, removes a creator-labeled owner row from the sharing menu, and updates component and browser tests.

Merge readiness

✅ Ready for maintainer review

Current main still hides the assigned owner when sharing controls appear. This focused PR addresses the linked issue with visible before-and-after proof, and the review found no introduced blocking defect.

Priority: P2
Reviewed head: dee416f83353b1c5aeb909f32978f95507a8b8d5

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Direct visual proof, a browser regression at the affected flow, and a smaller production implementation provide strong review confidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed Control UI header is shown in inspected before/after desktop and mobile captures, and the PR reports an isolated Chromium assignment-and-reload run through the production UI bundle with a mocked Gateway. The browser case checks the assignment request and visible result. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed Control UI header is shown in inspected before/after desktop and mobile captures, and the PR reports an isolated Chromium assignment-and-reload run through the production UI bundle with a mocked Gateway. The browser case checks the assignment request and visible result. No stored-data contract changes.
Evidence reviewed 8 items Current main still needs the fix: The header chooses the sharing control in place of the owner chip; the affected files are unchanged between the pinned base and fetched main.
Introduced header repair: The PR renders sharing controls and the existing owner chip together, using the session row's assigned owner.
Ownership contract: The multi-user guide distinguishes the assignable owner from the immutable creator and says reassignment does not transfer sharing authority.
Findings None None.
Security None None.

How this fits together

The Gateway session list supplies the current owner and participants to the Control UI chat header. Separate sharing evidence supplies creator-based sharing details to the menu.

flowchart LR
  A[Gateway session list] --> B[Chat header]
  B --> C[Owner and participant avatars]
  D[Gateway sharing evidence] --> E[Sharing menu]
  B --> E
  E --> F[Visibility and members]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -73, Tests +137. Total +64 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 5 22 95 -73
Tests 4 169 32 +137
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 191 127 +64

Review metrics

Metric Value Why it matters
Production versus test lines production −73, tests +137 The production change removes duplicate presentation code while the added browser test covers assignment and reload.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #160670
Summary: The linked open issue reports the same assignment-and-header defect that this PR addresses.

Members:

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

Technical review

Best possible solution:

Keep the current assignee visible from the session row across chat-header layouts while sharing permissions remain creator-based.

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

Yes. The linked issue gives assignment-and-reload steps, the current-main rendering branch explains the failure, and the PR supplies a before capture and a browser regression; this review did not rerun the browser test.

Is this the best way to solve the issue?

Yes. Rendering the session row's assigned owner in the existing header and leaving creator-based sharing evidence in the menu is a narrow repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0e2a0c1cd7a3.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The PR repairs misleading shared-session ownership display without evidence of lost assignment or changed permissions.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed Control UI header is shown in inspected before/after desktop and mobile captures, and the PR reports an isolated Chromium assignment-and-reload run through the production UI bundle with a mocked Gateway. The browser case checks the assignment request and visible result. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Control UI header is shown in inspected before/after desktop and mobile captures, and the PR reports an isolated Chromium assignment-and-reload run through the production UI bundle with a mocked Gateway. The browser case checks the assignment request and visible result. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed Control UI header is shown in inspected before/after desktop and mobile captures, and the PR reports an isolated Chromium assignment-and-reload run through the production UI bundle with a mocked Gateway. The browser case checks the assignment request and visible result. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

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

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T19:35:26.932Z sha fa5ede1 :: needs maintainer review before merge. :: none

@Patrick-Erichsen
Patrick-Erichsen merged commit 40f0088 into main Sep 28, 2026
128 of 131 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/session-owner-header branch September 28, 2026 20:44
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…nclaw#160673)

* fix(ui): keep assigned session owners visible beside sharing

* test(ui): satisfy owner regression lint rules

* test(ui): align visibility-only sharing menu assertions
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 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ui): assigned session owner disappears beside sharing controls

1 participant