Skip to content

fix(ui): keep chat sharing menu compact - #122322

Merged
vyctorbrzezowski merged 3 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-sharing-menu
Aug 12, 2026
Merged

vyctorbrzezowski merged 3 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-sharing-menu

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Closes #122266

What Problem This Solves

Fixes an issue where owners of shared chats would see a nearly viewport-height sharing dropdown when many member identities were available. The unbounded, text-only list was difficult to scan and did not distinguish people from channel-backed members.

Why This Change Was Made

Long menus are capped at min(420px, 60vh). The dropdown itself is the single scroll container, so Visibility and Members move together and naturally leave the viewport as the full menu scrolls. There is no nested member-list scroller and no sticky heading behavior.

Human rows reuse the existing session-owner avatar treatment; identities shaped like channel:... or ...:channel:... use the existing channel glyph instead of false initials. Section labels and rows share the same 8px left inset. Separators are removed, and Members receives an 8px group gap above its heading so the two sections read as distinct blocks. Selectable items remain direct dropdown children, preserving the component's keyboard navigation. The sharing RPC/state flow is unchanged.

User Impact

The sharing menu remains compact with long identity lists, while using one predictable scroll surface. People and channels are visually distinct in both light and dark themes, and the larger inter-group gap makes Visibility and Members easier to scan.

Evidence

All captures use the same 1280×800 viewport. The grouped state has 12 people and 2 channels at the top of the menu. The high-volume state has 30 people and 2 channels with the whole dropdown scrolled 187px; Visibility and the Members heading have both moved above the menu viewport.

Theme Before — 14 identities Grouped top — 14 identities High volume — 32 identities, whole menu scrolled
Light Before: unbounded light sharing dropdown After: compact light sharing dropdown with separated, aligned groups High-volume light sharing dropdown with the whole menu scrolled and section headings out of view
Dark Before: unbounded dark sharing dropdown After: compact dark sharing dropdown with separated, aligned groups High-volume dark sharing dropdown with the whole menu scrolled and section headings out of view
  • Component tests: 9 passed.
  • Focused browser regression: passed with 30 human avatars and 2 channel glyphs; the dropdown remained capped, used one scroll container, and had no nested scroller or sticky headings.
  • Changed-file validation: formatting, typechecks, lint, i18n, dependency/export guards passed.
  • Production UI build and asset budgets: passed. Startup JS was 328,289 B gzip against the 328,285 B baseline plus 1,024 B tolerance; startup CSS was 40.1 KiB gzip against the 45 KiB limit.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 11, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 11, 2026
@clawsweeper clawsweeper Bot added 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. and removed 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 Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 9:16 PM ET / August 12, 2026, 01:16 UTC.

ClawSweeper review

What this changes

The PR caps and scrolls the Control UI chat-sharing dropdown for long identity lists, while using distinct person, bot, and channel visuals.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness or security defect was found. This member-authored, maintainer-labeled UI fix has direct screenshots, focused browser coverage, green checks, and a clean three-way merge; it now needs maintainer merge approval.

Priority: P3
Reviewed head: d00c05c511aecc0058cbb4073a4020f50aa1d714
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong visible proof and focused coverage support a clean, bounded UI repair.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR includes direct light/dark before-and-after screenshots and a focused browser regression showing the capped, single-scroll menu after the change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR includes direct light/dark before-and-after screenshots and a focused browser regression showing the capped, single-scroll menu after the change.
Evidence reviewed 6 items Current-main behavior: Current main renders every visibility option and identity directly into the dropdown with no cap or scroll styling, which establishes the reported long-menu behavior.
Renderer-level repair: The PR calculates the menu threshold at the existing renderer and preserves the existing selection callbacks while applying the capped-menu class.
Gateway contract and owner boundary: The Gateway supplies a sorted identity list to the UI; the PR only changes its presentation and leaves membership and visibility RPC handling unchanged.
Findings None None.
Security None None.

How this fits together

The Control UI receives a session’s sharing policy and selectable identities from the Gateway, then renders them in the chat-header sharing menu. Selecting a visibility or member row calls the existing sharing callbacks back through the Gateway flow.

flowchart LR
  Gateway[Gateway sharing data] --> Header[Chat header]
  Header --> Menu[Sharing menu]
  Menu --> Layout[Bounded scroll layout]
  Layout --> Choices[Visibility and member choices]
  Choices --> GatewayUpdate[Gateway sharing updates]
Loading

Decision needed

Question Recommendation
Should this maintainer-labeled Control UI fix be merged after confirming the successful UI checks remain valid for the current merge result? Approve the reviewed UI fix: Merge after confirming the existing green UI checks still cover the current GitHub merge result.

Why: The patch is correct by source and proof review, but the protected maintainer label requires an explicit human merge decision.

Before merge

  • Resolve merge risk (P1) - The bug fix has a net +91 production-line delta; the cap, one-scroll behavior, and row visuals appear necessary, but a maintainer should confirm that this UI scope is warranted.
Agent review details

Security

None.

PR surface

Source +91, Tests +186. Total +277 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 113 22 +91
Tests 2 186 0 +186
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 299 22 +277

Review metrics

Metric Value Why it matters
Production vs test LOC production +91, tests +186 The added production surface implements the capped menu and visual row treatment; browser and component coverage exercise the visible behavior.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/session-ownership.e2e.test.ts, unknown-data-model-change: ui/src/e2e/session-ownership.e2e.test.ts, vector/embedding metadata: ui/src/e2e/session-ownership.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #122266
Summary: This PR is the linked candidate repair for the reported compact-sharing-menu behavior.

Members:

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the cap, single menu scroll surface, and identity rendering in the existing sharing renderer; no simpler net-neutral refactor is evident because current code has neither menu geometry nor icon slots.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the cap, single menu scroll surface, and identity rendering in the existing sharing renderer; no simpler net-neutral refactor is evident because current code has neither menu geometry nor icon slots.

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

Yes—source-reproducible with high confidence: current main maps all identities into an uncapped menu, and the PR’s browser scenario supplies a long identity list through the real UI boundary.

Is this the best way to solve the issue?

Yes—the menu renderer is the correct owner: it bounds only presentation while retaining the established Gateway sharing state and callback flow.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: The change fixes scanability of a sharing menu while existing sharing actions remain functional.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR includes direct light/dark before-and-after screenshots and a focused browser regression showing the capped, single-scroll menu after the change.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR includes direct light/dark before-and-after screenshots and a focused browser regression showing the capped, single-scroll menu after the change.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR includes direct light/dark before-and-after screenshots and a focused browser regression showing the capped, single-scroll menu after the change.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Feature history includes the original sharing implementation, draft-sharing work, and a later UI error-state repair. (role: introduced and recently maintained session-sharing behavior; confidence: high; commits: 62513433846f, cbf94c0d8b2b, 3eca723733d3; files: ui/src/pages/chat/components/chat-session-sharing.ts, src/gateway/server-methods/sessions-sharing.ts)
  • Shakker: Recent history repaired visibility-only sharing behavior and operator-scope handling adjacent to this menu. (role: recent sharing-access contributor; confidence: medium; commits: 870dc99e623b, d504df036777; files: ui/src/pages/chat/components/chat-session-sharing.ts, ui/src/pages/chat/chat-pane-header.ts)

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-08-11T23:58:44.539Z sha 58f7ac7 :: needs maintainer review before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski merged commit bbb5164 into openclaw:main Aug 12, 2026
102 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-sharing-menu branch August 12, 2026 01:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 12, 2026
* fix(ui): keep chat sharing menu compact

* fix(ui): refine sharing menu sections

* fix(ui): use one sharing menu scroll
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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.

[Bug]: Keep the chat sharing dropdown compact with long member lists

1 participant