Skip to content

fix(ui): revert assigned-owner header change - #160709

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
codex/revert-session-owner-header
Sep 28, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
codex/revert-session-owner-header

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Reverts #160673.

What Problem This Solves

The requested session owner presentation was rejected, and the operator requested a full rollback.

User Impact

Restores the previous Control UI header and sharing-menu behavior.

Why This Change Was Made

Exactly reverts commit 40f00889c1df38f214b3514acf7d661eb4128e7e, including its test changes. No replacement behavior is introduced.

Evidence

  • All nine affected files exactly match the reverted commit's parent. None had intervening changes on the main branch used for this revert.
  • git diff --cached --check passed. The only changed paths are the original nine paths.
  • The original browser captures below were personally re-inspected and reused in reverse order; they are not new captures of this branch. Exact file restoration establishes the rollback correspondence.
  • Production code restores 73 net lines; tests remove 137 net lines, exactly reversing the original change.

Before revert

Before revert: separate assigned-owner avatar beside sharing

Restored by revert

Restored header: previous participant avatar beside sharing

This reverts commit 40f0088 at the explicit request of the operator.
@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 20:54
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:02 PM ET / 21:02 UTC.

ClawSweeper review

What this changes

The branch restores the earlier Control UI chat header and sharing menu, including the owner row, and reverses the associated component and browser tests.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

This is a coherent rollback, but the verified merge result restores the ownership display defect that was fixed on current main. The PR body reports an operator request for a full rollback; the reviewed discussion does not record acceptance of that tradeoff.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The rollback is source-verifiable and has relevant visual context, but it revives two documented attribution defects and needs an explicit product decision.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The supplied repository state identifies the author as MEMBER, so the external-contributor run gate does not apply. Inspected earlier Control UI screenshots show the state this exact source rollback restores, but they are not a run of this branch; no stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies the author as MEMBER, so the external-contributor run gate does not apply. Inspected earlier Control UI screenshots show the state this exact source rollback restores, but they are not a run of this branch; no stored-data contract changes.
Evidence reviewed 11 items Introduced header behavior: The PR chooses the sharing control instead of the assigned-owner chip whenever sharing is available.
Current-main behavior: Current main renders sharing and the session row's assigned-owner chip together.
Verified merge result: The test merge has current main followed by the exact PR head as parents, and its header again suppresses the owner chip when sharing exists.
Findings 2 actionable findings [P2] Keep the assigned owner visible when sharing is available
[P2] Do not label the immutable creator as the current owner
Security None None.

How this fits together

The Gateway supplies session ownership and participants to the Control UI chat header. A separate sharing response supplies creator-based access information to the sharing menu.

flowchart LR
  A[Gateway session list] --> B[Assigned owner and participants]
  B --> C[Chat header]
  D[Gateway sharing response] --> E[Sharing menu]
  C --> F[Visible owner and participants]
  E --> G[Visibility and member controls]
Loading

Decision needed

Question Recommendation
Should this full rollback restore the missing assigned-owner indicator and creator-labeled Owner row despite the documented ownership distinction? Keep ownership distinct: Revise the layout while retaining the assigned-owner indicator and accurate creator-versus-owner labels.

Why: The PR asserts an operator request, while current docs, the closed bug report, and the merged fix establish the opposite expected display; accepting that tradeoff requires an explicit product decision.

Before merge

  • Keep the assigned owner visible when sharing is available (P2) - For a reassigned shared session, this branch selects the sharing control instead of the session row's owner chip. Assignment and reload therefore return to the missing-assignee header reported in fix(ui): assigned session owner disappears beside sharing controls #160670, while the documented header contract still describes an owner chip beside participants.
  • Do not label the immutable creator as the current owner (P2) - The sharing response's owner comes from createdActor. After reassignment, preferring it over session.owner.actor makes the restored Owner row identify the creator as the assignee, contradicting the ownership distinction in the multi-user guide.
  • Resolve merge risk (P1) - The PR body reports an operator-requested rollback, but the reviewed discussion does not establish whether restoring the known owner-attribution error is an accepted product tradeoff.
  • Complete next step (P2) - Obtain a decision on accepting the restored ownership-display regression; if it is not accepted, retain accurate assignee and creator presentation before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Keep the assigned owner visible when sharing is available — ui/src/pages/chat/components/chat-pane-header.ts:343-345
  • [P2] Do not label the immutable creator as the current owner — ui/src/pages/chat/components/chat-session-sharing.ts:159
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 95 22 +73
Tests 4 32 169 -137
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 127 191 -64

Review metrics

Metric Value Why it matters
Assignment browser coverage 2 viewport cases removed The removed desktop and mobile cases directly asserted that a reassigned owner remained visible after reload.

Merge-risk options

Maintainer options:

  1. Retain accurate ownership (recommended)
    Change the rollback so assignment remains visible and the sharing menu does not call the creator the current owner.
  2. Own the rollback tradeoff
    A decision owner can explicitly accept the known display regression and update the public ownership contract accordingly.

Technical review

Best possible solution:

Keep the current assignee visible in the chat header and distinguish creator-based sharing authority in the menu; revise the presentation more narrowly if the new layout is unwanted.

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

Yes. Assign a shared session to another person and reload: the reviewed merge result suppresses the assignee chip when sharing exists and can show the creator as Owner in the menu. This review did not execute the branch.

Is this the best way to solve the issue?

No, absent explicit acceptance of the tradeoff. The exact rollback restores the earlier layout but also restores the ownership display error; a narrower presentation revision would preserve accurate attribution.

Full review comments:

  • [P2] Keep the assigned owner visible when sharing is available — ui/src/pages/chat/components/chat-pane-header.ts:343-345
    For a reassigned shared session, this branch selects the sharing control instead of the session row's owner chip. Assignment and reload therefore return to the missing-assignee header reported in fix(ui): assigned session owner disappears beside sharing controls #160670, while the documented header contract still describes an owner chip beside participants.
    Confidence: 0.96
  • [P2] Do not label the immutable creator as the current owner — ui/src/pages/chat/components/chat-session-sharing.ts:159
    The sharing response's owner comes from createdActor. After reassignment, preferring it over session.owner.actor makes the restored Owner row identify the creator as the assignee, contradicting the ownership distinction in the multi-user guide.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The rollback affects shared-session ownership clarity, with no evidence that assignment or permissions themselves are lost.
  • add merge-risk: 🚨 other: Merging restores misleading owner presentation that the just-landed UI fix and browser regression addressed.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The supplied repository state identifies the author as MEMBER, so the external-contributor run gate does not apply. Inspected earlier Control UI screenshots show the state this exact source rollback restores, but they are not a run of this branch; no stored-data contract changes.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied repository state identifies the author as MEMBER, so the external-contributor run gate does not apply. Inspected earlier Control UI screenshots show the state this exact source rollback restores, but they are not a run of this branch; no stored-data contract changes.

Label justifications:

  • P2: The rollback affects shared-session ownership clarity, with no evidence that assignment or permissions themselves are lost.
  • merge-risk: 🚨 other: Merging restores misleading owner presentation that the just-landed UI fix and browser regression addressed.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied repository state identifies the author as MEMBER, so the external-contributor run gate does not apply. Inspected earlier Control UI screenshots show the state this exact source rollback restores, but they are not a run of this branch; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The supplied repository state identifies the author as MEMBER, so the external-contributor run gate does not apply. Inspected earlier Control UI screenshots show the state this exact source rollback restores, but they are not a run of this branch; 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)
  • steipete: 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)

Rank-up moves

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

  • Record the decision on whether the known ownership-display regression is an accepted rollback tradeoff.
  • If the rollback is narrowed, cover the assigned-owner header and creator-versus-owner menu state after assignment and reload.

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.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Rollback decision

Patrick explicitly rejected the completed change in #160673 and directed a full revert and autoland. This supersedes the earlier request that produced that change.

Both review findings describe the intentional effects of that full rollback: restoring the previous header choice and restoring the previous Owner row in the sharing menu. They are accepted for this rollback. The scope is the exact inverse of 40f00889c1df38f214b3514acf7d661eb4128e7e; it does not include a replacement presentation or documentation redesign.

The decision requested by the review and its first Rank-up move is recorded here. The second Rank-up move is conditional on narrowing the rollback; it is not applicable because the operator requested the full revert. Independent local review confirmed the rollback is complete and contains no unintended changes. Required current-head CI remains the landing gate.

@Patrick-Erichsen
Patrick-Erichsen merged commit 2343a3a into main Sep 28, 2026
148 of 149 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/revert-session-owner-header branch September 28, 2026 21:14
@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
This reverts commit 3a5f796 at the explicit request of the operator.
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 merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant