Skip to content

fix(ui): hide redundant self avatars in filtered sessions - #147610

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/avatar-size-in-solo-filter
Sep 14, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/avatar-size-in-solo-filter

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the sidebar repeats your avatar on every self-only session even when Involving me or your owner filter already identifies you.

User Impact

User impact: self-filtered session lists are quieter without losing shared-session faces, activity indicators, unread markers, or archive attribution.

Why This Change Was Made

Suppress only the redundant row-level owner avatar when its canonical profile is the authenticated user and the complete additional-participant count is zero. Filtering and stored session data are unchanged.

Requested by @steipete in the Team session.

Evidence

  • Full mounted sidebar suite: 424 tests passed (node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts).
  • Both new self-identity regressions fail on the original source because the owner chip remains, and pass with the fix. Covers shared participants, a bounded participant sample with a larger full count, activity, filter clearing, and qualified profile identity.
  • Actual Control UI with synthetic Gateway data at desktop 1200×820 and mobile 390×844: four solo faces disappear, both shared stacks remain, run/unread indicators remain, and no browser page errors.
  • Independent autoreview: scoped-clean, no actionable P0–P2 findings. Formatting and whitespace checks pass.
  • Full changed-file checks passed, including core-test/UI typechecks, lint, formatting, i18n, and dead-export checks.
  • The inspected before/after screenshots are attached in the originating chat and verified rendering in this PR.
  • Remaining landing gate: exact-head hosted CI.
Before After
Before: repeated solo self avatars After: solo avatars hidden and shared faces retained

Worked on by


View the OpenClaw team session

roboclaw-bot and others added 2 commits September 14, 2026 00:34
Keep participant stacks and session state visible while omitting solo self ownership already identified by the active filter.

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

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0bdd0e31-404a-4274-bcdf-61296de64652
@clawsweeper

clawsweeper Bot commented Sep 14, 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 app: android App: android app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 14, 2026
Restore the exact previously tested tree; the publication snapshot normalized an unrelated Windows wrapper.

Co-authored-by: steipete <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed app: android App: android size: M labels Sep 14, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 14, 2026 00:41
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 8:54 PM ET / September 14, 2026, 00:54 UTC.

ClawSweeper review

What this changes

Hide the user's redundant avatar on solo sessions under self filters while retaining shared-session faces, archive attribution, and activity indicators.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused UI improvement: current main still repeats solo self avatars under self filters. The inspected screenshots support the intended result, and no blocking correctness or security defect was found.

Priority: P3
Reviewed head: 16f90995d5713c32b1f04f7a534eaf15edbf993f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable presentation change with convincing visual evidence and useful boundary-level regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.
Evidence reviewed 7 items Introduced presentation change: The pinned introduced delta changes only the row renderer and its mounted-sidebar coverage. The predicate requires a matching profile identity, a self filter, zero additional participants, and non-archive attribution; existing activity rendering remains responsible for indicators.
Still necessary on current main: Fetched main suppresses attribution for person grouping, but has no equivalent suppression for solo ownership under self filters. This is a distinct presentation case rather than a duplicate implementation.
Latest release comparison: The v2026.9.4 renderer likewise suppresses avatars by person grouping only. Its source was recovered through the GitHub contents API after the local historical-blob read failed with HTTP 403; no released equivalent was established.
Findings None None.
Security None None.

How this fits together

The Control UI sidebar combines Gateway session ownership and participant data with the selected filters. Its row renderer chooses which avatars and activity indicators appear beside each conversation.

flowchart TD
  A[Gateway session data] --> C[Sidebar row renderer]
  B[Current user and filters] --> C
  C --> D{Solo self ownership already identified?}
  D -->|Yes| E[Hide owner avatar]
  D -->|No| F[Retain owner and participant faces]
  E --> G[Render activity and unread indicators]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +12, Tests +45. Total +57 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 13 1 +12
Tests 1 76 31 +45
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 89 32 +57

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +12 lines; tests/support net +45 lines The production growth is a bounded presentation predicate, supported by mounted coverage of two identity representations and shared-session preservation.

Technical review

Best possible solution:

Keep avatar suppression in the existing row renderer, using canonical identity and complete participant counts while preserving independent activity and attribution rendering.

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

Not applicable as a functional bug reproduction: this is presentation polish, and current-main source plus the before screenshot establish the repeated-avatar behavior.

Is this the best way to solve the issue?

Yes. A narrow condition in the existing renderer avoids competing state or filtering logic and preserves the established participant and activity owners.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 46da9d8faac6.

Labels

Label changes:

  • add P3: This reduces visual repetition in an existing sidebar without changing session access, filtering, or stored settings.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.

Label justifications:

  • P3: This reduces visual repetition in an existing sidebar without changing session access, filtering, or stored settings.
  • 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): Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after captures of the Control UI with synthetic Gateway data directly demonstrate the row renderer hiding solo self avatars under Involving me while retaining shared stacks, activity, and unread indicators; mounted tests supplement the visible proof.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

@roboclaw-bot
roboclaw-bot merged commit 62f2180 into main Sep 14, 2026
183 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/avatar-size-in-solo-filter branch September 14, 2026 05:48
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

obviyus added a commit that referenced this pull request Sep 14, 2026
AI-assisted.

## What Problem This Solves
Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since #147610), the chat transcript controller test (over the 1,000-line rule since #147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after #147845, #147773 and #147883).

## Why This Change Was Made
These repairs belong on main, in one PR.

- Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.
- Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner.
- Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows #147574 and #146526.

## User Impact
None. No product behavior or asset changes.

## Evidence
- Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass.
- Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass.
- Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass.

## Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

## Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…47610)

* fix(ui): hide redundant self avatars in filtered sessions

Keep participant stacks and session state visible while omitting solo self ownership already identified by the active filter.

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

* fix(ui): hide redundant self avatars in filtered sessions

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0bdd0e31-404a-4274-bcdf-61296de64652

* chore: preserve Android wrapper bytes after publication

Restore the exact previously tested tree; the publication snapshot normalized an unrelated Windows wrapper.

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

* test(ui): reuse the settled owner-filter interaction

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

---------

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
AI-assisted.

## What Problem This Solves
Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since openclaw#147610), the chat transcript controller test (over the 1,000-line rule since openclaw#147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after openclaw#147845, openclaw#147773 and openclaw#147883).

## Why This Change Was Made
These repairs belong on main, in one PR.

- Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.
- Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner.
- Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows openclaw#147574 and openclaw#146526.

## User Impact
None. No product behavior or asset changes.

## Evidence
- Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass.
- Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass.
- Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass.

## Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

## Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.

Co-authored-by: Ayaan Zaidi <[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 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: S 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.

1 participant