Repository navigation
fix(ui): preserve person picker selection and profile photos - #152194
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 7:30 PM ET / 23:30 UTC (Revision 3). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +112, Tests +219, Docs +7. Total +338 across 14 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
…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) ...
…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
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 atae14d10e975ef291456beed66c8fc3e033dd0bb2; 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.
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.