Repository navigation
fix(ui): keep peer identity stable when actions appear - #126287
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 8:59 AM ET / 12:59 UTC. ClawSweeper reviewWhat this changesThe branch moves peer reply and rewind actions after sender metadata and adds responsive rules so revealing those controls does not shift the peer identity. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessPatch is correct with no actionable defect found. The latest head still has in-progress exact-head checks and, as a member-authored maintainer-labeled PR, needs normal human merge handling. Likely related people: Peter Steinberger (recent footer-refactor contributor; medium confidence). Priority: P2 Review scores
Verification
Live VerificationEntry: Result: FAIL (partial) — step 2 Steps:
How this fits togetherControl UI projects transcript message groups into a footer containing sender metadata and message actions. The renderer and responsive CSS determine whether hidden controls reserve space or alter the visible chat layout when revealed. flowchart LR
A[Transcript projection] --> B[Grouped message renderer]
B --> C[Peer identity metadata]
B --> D[Reply and rewind actions]
C --> E[Responsive footer layout]
D --> E
E --> F[Stable chat transcript]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +24, Tests +158. Total +182 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the renderer as the sole owner of peer footer ordering, retain the responsive CSS only for the covered desktop and touch states, and merge after exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source places peer actions before sender metadata in the persistent footer, and the PR’s browser test exercises the resulting hover, focus, RTL, and touch geometry path. Is this the best way to solve the issue? Yes. Moving peer actions at the footer renderer boundary and reserving their layout footprint is preferable to runtime measurement or interaction-specific compensation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 584e750c167d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head CI is green on |
|
ClawSweeper rank-up moves are complete: exact-head required CI is green on |
314817d to
a0cd560
Compare
|
Land-ready verification for
No rebase was performed; current |
|
Merged via squash.
|
* fix(ui): keep peer identity stable when actions appear * fix(ui): keep mobile peer actions trailing
Closes #126239
What Problem This Solves
Revealing reply and rewind actions on a peer message moved that peer's name and timestamp horizontally, making participant identity jump during hover, keyboard focus, and touch interaction.
Why This Change Was Made
The shared user-footer renderer placed actions before identity for both the current user and peers. That order is correct for the existing right-aligned current-user footer, but on the left-aligned peer footer the newly visible in-flow actions displaced the identity by 60 px.
renderMessageGroupand the grouped-message footer styles now keep the existing current-user branch intact while giving peers an identity-first footer with a reserved action footprint. Mobile peer actions retain their own row and align to the logical trailing edge. Assistant rendering and existing message spacing are unchanged.User Impact
Peer identity remains stationary when actions appear across short and long names, light and dark themes, desktop and mobile layouts, LTR and RTL direction, hover, focus, and touch. Current-user actions keep their existing order and trailing alignment.
Production delta:
+48 / -24(+24net). Tests:+168 / -10(+158net).Visual Evidence
Captured remotely from the real Control UI mock route. “Before” is base
755dad74d1fcaf4e22ee61e029a385207b7d251a; “In this PR” is exact pushed heada0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9. In both themes, the before frame shows reply/rewind preceding and shiftingColin / just now; the proposed frame keeps identity fixed and reveals actions after it.Full context
Peer footer detail
Evidence
run_cfe8d86133d5: the regression scenario failed on the base as intended; the peer name moved from x=385 to x=445 when actions appeared.run_9fc5e7099cc6: final-head changed-file gate passed, and the focused attributed-identity E2E passed 2/2 across hover, focus, RTL, mobile row/trailing alignment, long names, and preserved current-user behavior.run_ab06556b0fa7: exact-head visual run confirmeda0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9, reproduced the 60 px base shift, passed the candidate E2E 2/2, and produced the inspected light/dark before/after captures above.run_271b825aeee2.a0cd5602ef6c2cb7245de2630c2dd071ef2b8ce9; the fresh follow-up review completed with no actionable findings andgit diff --checkclean.