Skip to content

fix(ui): preserve person picker selection and profile photos - #152194

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
fix/mention-picker-keyboard-hover-loading
Sep 18, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
fix/mention-picker-keyboard-hover-loading

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Closes #152178
Related: #151539, #151509, #122096, #150620. The shared pointer handling overlaps @vyctorbrzezowski's #151752.

What Problem This Solves

Filtering the person picker resets the selection, Home/End do not navigate, failed searches offer no retry, and “Will notify” starts another avatar request and hides initials while the photo loads.

User Impact

People can navigate and filter mentions without losing their selection, see three loading placeholders, retry a failed lookup, and retain the same profile photo when inserting a mention. Initials remain visible while a photo loads or when it is unavailable.

Why This Change Was Made

Extend the existing composer menu's keyboard and pointer handling, preserve selection by profile identity, and carry the selected photo URL into the shared authenticated avatar cache. Mention annotations and notification behavior remain unchanged.

Evidence

  • Hosted CI passed on bd7e0eda9dd299a8b736d57c515b8bbe84215e76.

  • 14 regressions fail on Before at the expected behavior: 12 keyboard/filter/retry cases and two pending-avatar cases. All pass with the change.

  • 319 focused unit tests and 19 browser cases pass, covering the person picker, slash commands and arguments, skills, emoji, and shared avatars. An additional 21 cursor-policy and menu-surface tests pass, with type and lint checks.

  • UI production/test typechecks, scoped lint and style checks, formatting, i18n, documentation, and applicable ratchets pass. Tested source hashes match this commit.

  • Browser assertions pass at 1440px and 390px in light/dark and LTR/RTL, plus reduced motion and a stationary pointer during keyboard scrolling.

  • A selected delayed photo keeps visible initials, uses one versioned request shared with the picker, and stays 16 × 16px after loading. Chat and New Session both pass.

Before: fc8168070b17eaf5b0e967f7911ef438a7fc47c2. After: bd7e0eda9dd299a8b736d57c515b8bbe84215e76 (production bytes are identical to the captures at ae14d10e975ef291456beed66c8fc3e033dd0bb2; the final commit adjusts two test fixtures). Both use the production Control UI with the same synthetic Gateway fixture.

The paired captures below show identical actions and synthetic data: hover Blair then End; a two-second lookup; empty results in mobile RTL; a failed mobile lookup; and selected photos before and after loading. The photo fixture includes immediate, missing, delayed, and failed images.

ScenarioBeforeAfter
Hover Blair, then press End Before: Hover Blair, then press End After: Hover Blair, then press End
Two-second person lookup Before: Two-second person lookup After: Two-second person lookup
Empty results, mobile RTL Before: Empty results, mobile RTL After: Empty results, mobile RTL
Failed lookup, mobile Before: Failed lookup, mobile After: Failed lookup, mobile
Selected photos: pending, missing and failed Before: Selected photos: pending, missing and failed After: Selected photos: pending, missing and failed
Selected photos after loading Before: Selected photos after loading After: Selected photos after loading

Keyboard navigation and insertion:

keyboard.mp4

Risk and coverage

Shared menu changes also affect slash commands and arguments, skills, and emoji; focused tests cover each of these menus. Person picker and selected-avatar flows are exercised in both Chat and New Session. Avatar loading styles are scoped to the person picker and “Will notify.” Selected photo URLs are temporary presentation data, cleared when the directory owner changes; the existing image loader owns fetching, authentication, and caching. No Gateway, configuration, permission, or persistence changes. Browser evidence uses mocked Gateway data; hosted CI is checked separately for the exact PR head.

Review disposition: the suggestion to restore the default arrow cursor is not adopted. Pointer feedback on shared suggestion rows is an explicit part of the approved interaction requirements and takes precedence over the general cursor convention.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 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 docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 18, 2026
@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: 🐚 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 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 7:30 PM ET / 23:30 UTC (Revision 3).

ClawSweeper review

What this changes

The PR preserves person-picker selection, improves keyboard navigation and search recovery, and reuses selected profile photos with loading initials in Chat and New Session.

Merge readiness

✅ Ready for maintainer review

This remains a useful fix: current main still has the central selection and avatar problems. No actionable introduced defect was found, and the prior cursor concern has an explicit member-author disposition supported by updated coverage.

Priority: P2
Reviewed head: bd7e0eda9dd299a8b736d57c515b8bbe84215e76

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable repair with useful visual evidence and meaningful regression coverage; no blocking defect was found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected production-Control-UI before/after screenshots with synthetic Gateway data show corrected End-key selection and three loading placeholders. Production bytes match the reviewed head; the body also records both-editor avatar and retry results. Additional linked media could not be independently inspected, which is a reviewer limitation rather than a contributor proof failure.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected production-Control-UI before/after screenshots with synthetic Gateway data show corrected End-key selection and three loading placeholders. Production bytes match the reviewed head; the body also records both-editor avatar and retry results. Additional linked media could not be independently inspected, which is a reviewer limitation rather than a contributor proof failure.
Evidence reviewed 9 items Current-main necessity: At the fetched main revision, cancelling a search resets the selected index, query results do not preserve profile selection, and the error state has no Retry button. The shared keyboard handler also lacks Home/End support.
Latest-release comparison: The v2026.9.4 source also resets selection during search and has no explicit retry action; its selected-mention renderer predates the current photo strip. The requested behavior is not already supplied by that release.
Selection and presentation ownership: The existing menu retains selection by profile identity, fences asynchronous results with its generation, and clears selected presentation URLs on directory replacement or disposal. Both composer routes consume those URLs without changing mention annotations.
Findings None None.
Security None None.

How this fits together

The Control UI composer searches the Gateway’s eligible-person directory and turns explicit selections into mention annotations. Its shared suggestion menu handles interaction, while the existing authenticated avatar loader supplies photos for the picker and recipient strip.

flowchart TD
  A[Chat or New Session input] --> B[Person picker]
  B --> C[Gateway eligible-person search]
  C --> B
  B --> D[Keyboard and pointer selection]
  D --> E[Draft mention annotations]
  D --> F[Shared avatar loader]
  F --> G[Will notify recipient strip]
  E --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +112, Tests +219, Docs +7. Total +338 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 8 140 28 +112
Tests 5 241 22 +219
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 388 50 +338

Review metrics

Metric Value Why it matters
Production versus test growth Production +112 net lines; tests +219 net lines Production growth implements selection retention, retry, and photo reuse within existing owners; test growth covers both composer entry points.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #152178
Summary: This PR implements the paired person-picker issue; stationary-pointer work overlaps only one shared interaction change.

Members:

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

Technical review

Best possible solution:

Keep interaction state in the shared composer owners and reuse the existing avatar loader for consistent person selection and photos across both editors.

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

Yes, from source: select a non-first person, refine the query, and current main resets the index; delayed photos also follow a different selected-avatar URL. The supplied before/after evidence supports the report, but this review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes. The patch extends the existing shared interaction owner and authenticated avatar path, preserves asynchronous ownership fences, and avoids changing notification or persistence contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 22da0ed41e71.

Labels

Label justifications:

  • P2: This fixes bounded person-picker interaction and avatar presentation problems without blocking the core chat workflow.
  • 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 production-Control-UI before/after screenshots with synthetic Gateway data show corrected End-key selection and three loading placeholders. Production bytes match the reviewed head; the body also records both-editor avatar and retry results. Additional linked media could not be independently inspected, which is a reviewer limitation rather than a contributor proof failure.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected production-Control-UI before/after screenshots with synthetic Gateway data show corrected End-key selection and three loading placeholders. Production bytes match the reviewed head; the body also records both-editor avatar and retry results. Additional linked media could not be independently inspected, which is a reviewer limitation rather than a contributor proof failure.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected production-Control-UI before/after screenshots with synthetic Gateway data show corrected End-key selection and three loading placeholders. Production bytes match the reviewed head; the body also records both-editor avatar and retry results. Additional linked media could not be independently inspected, which is a reviewer limitation rather than a contributor proof failure.

Evidence

What I checked:

  • Current-main necessity: At the fetched main revision, cancelling a search resets the selected index, query results do not preserve profile selection, and the error state has no Retry button. The shared keyboard handler also lacks Home/End support. (ui/src/pages/chat/components/chat-composer-mention-menu.ts:93, 22da0ed41e71)
  • Latest-release comparison: The v2026.9.4 source also resets selection during search and has no explicit retry action; its selected-mention renderer predates the current photo strip. The requested behavior is not already supplied by that release. (ui/src/pages/chat/components/chat-composer-mention-menu.ts, 3a9d69db306c)
  • Selection and presentation ownership: The existing menu retains selection by profile identity, fences asynchronous results with its generation, and clears selected presentation URLs on directory replacement or disposal. Both composer routes consume those URLs without changing mention annotations. (ui/src/pages/chat/components/chat-composer-mention-menu.ts:137, bd7e0eda9dd2)
  • Security boundary remains with the existing loader: Selected URLs pass through the existing connected-Gateway route validation and authenticated image loader. That loader owns credential-context invalidation and rejects results from replaced cache entries; the patch adds no authority-bearing token, persistence, permission, dependency, or execution path. (ui/src/lib/identity-avatar.ts:110, bd7e0eda9dd2)
  • Inspected visual proof: Inspected all four prepared images: the before/after End-key pair shows selection moving from Blair to the final result, and the loading pair shows one placeholder becoming three. Captures use the production Control UI with synthetic Gateway data. The final commit changes only two test files, preserving captured production bytes. Additional avatar/retry images were not in the prepared manifest; attempts to inspect three linked images returned cache misses, so those images were not independently assessed. (ae14d10e975e)
  • Regression coverage and review continuity: Read the added keyboard, reordered/cached-query, retry cancellation, and delayed-avatar cases for both composers. The body reports 14 before-fail/after-pass regressions and broader sibling coverage; these were not rerun during this read-only review. Comparison with the previously reviewed head confirms only menu-hover and cursor-policy tests changed. The member author's explicit pointer-feedback disposition resolves the historical cursor suggestion. (ui/src/pages/chat/chat-composer-mentions.test.ts:219, bd7e0eda9dd2)

Likely related people:

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-18T22:14:29.399Z sha ae14d10 :: needs changes before merge. :: [P3] Preserve the default cursor for suggestion actions
  • reviewed 2026-09-18T23:15:17.595Z sha ae14d10 :: needs maintainer review before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review September 18, 2026 23:09
@vyctorbrzezowski
vyctorbrzezowski merged commit c0233f0 into main Sep 18, 2026
158 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the fix/mention-picker-keyboard-hover-loading branch September 18, 2026 23:44
vincentkoc added a commit that referenced this pull request Sep 18, 2026
…rent-main-20260918

* origin/main: (1925 commits)
  fix(ui): preserve person picker selection and profile photos (#152194)
  feat(meetings): summarize meetings during live capture (#151957)
  refactor(watch): share delivery status text formatting (#152228)
  fix(skills): detach idle reviews from foreground plugin scope (#152235)
  fix(mcp): stop cancelled question tests leaking into later cases (#152215)
  fix: show pasted text as compact chat chips (#151618)
  refactor(config): share diagnostic container scanning (#149099)
  fix(whatsapp): admit debounce candidates independently (#112001)
  fix(release): qualify 2026.7.34 frozen SDK (#152230)
  fix(sessions): notify Home about new sessions by default (#152068)
  fix(ui): open workspace links with spaces and emoji (#152179)
  fix(update): reconcile completed updates after interrupted verification (#152202)
  fix: reduce repeated update validation for large agent fleets (#151678)
  docs: clarify WebChat commentary attachment compatibility (#152225)
  fix(worktrees): keep provisioning inspection under the Git output cap (#150532)
  fix(ui): unify fullscreen widget menu typography (#152223)
  test(gateway): synchronize unstable task registry scans (#152213)
  fix: restore automation creation for remote administrators (#151291)
  improve: defer internal agent-turn execution imports until use (#151935)
  fix(agents): resume private child results in channel conversations (#152207)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…w#152194)

* fix(ui): preserve person picker selection and profile photos

* test(ui): complete the mention avatar browser fixture

* test(ui): align composer suggestion interaction coverage
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR 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: 🐚 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.

Control UI: preserve person picker selection and selected profile photos

1 participant