Repository navigation
fix(ui): hide redundant self avatars in filtered sessions - #147610
Conversation
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
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Restore the exact previously tested tree; the publication snapshot normalized an unrelated Windows wrapper. Co-authored-by: steipete <[email protected]>
Co-authored-by: steipete <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 8:54 PM ET / September 14, 2026, 00:54 UTC. ClawSweeper reviewWhat this changesHide 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +12, Tests +45. Total +57 across 2 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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]>
…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]>
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]>
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
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts).Worked on by
View the OpenClaw team session