Repository navigation
fix(ui): prevent chat jumps and prompt flicker when sending - #160109
Conversation
Let queued manual scrolling own the viewport and start smooth sends after the composer and appended rows have measured. Keep prompt entry motion fully visible and verify desktop, multiline, mobile, reduced-motion, and reader-takeover behavior. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]>
Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 5271d471-93c3-400f-b676-baf8a42618e6
|
🦞👀 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 28, 2026, 3:09 AM ET / 07:09 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch delays smooth Control UI chat-send scrolling until layout has been measured, keeps submitted prompts opaque during entry, and updates chat documentation and regression tests. Merge readiness✅ Ready for maintainer review Current main still has the prompt fade and earlier scroll timing. This PR remains useful, and the inspected visual evidence and browser coverage support the fix. No blocking patch defect was identified. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns composer sends and Gateway chat events into transcript rows. Its scroll owner and virtualizer decide whether to follow new content or preserve the reader's position, while chat styles render prompt entry. flowchart LR
A[Composer send] --> C[Scroll owner]
B[Gateway chat events] --> D[Transcript rows]
C --> E{Reader control?}
E -- Yes --> F[Keep reader position]
E -- No --> G[Measured follow]
D --> G
D -->|Opaque prompt entry| H[Chat viewport]
F --> H
G --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +13, Tests +116, Docs +2. Total +131 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one scroll owner for local sends and reader takeover, start smooth following after measured layout, and render submitted prompt text at full opacity. Do we have a high-confidence way to reproduce the issue? Yes for the prompt fade: current-main keyframes start at zero opacity, and the inspected before image shows it. The PR reports measured browser scroll jumps, which this read-only review did not rerun. Is this the best way to solve the issue? Yes. The patch changes the existing scroll scheduler and entry animation, with browser coverage for multiline sends, mobile, reduced motion, and reader takeover. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5c467fb8f27c. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Retain final geometry assertions, verify the first frame remains stationary, and introduce a second typing peer before the manual scroll executes. This updates the old one-frame collaborator test to the intentional two-frame smooth-send contract. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]>
Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 6e7ca1a9-21f6-48c3-ba07-d217de22e4e6
Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]>
Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b3aaf419-4ca9-43b3-b14b-feec093437e4
|
Merged via squash.
|
|
Follow-up: merged PR #160506 replaces the frame-count assertion introduced here in |
…#160109) * fix(ui): prevent chat jumps and prompt flicker when sending Let queued manual scrolling own the viewport and start smooth sends after the composer and appended rows have measured. Keep prompt entry motion fully visible and verify desktop, multiline, mobile, reduced-motion, and reader-takeover behavior. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * fix(ui): prevent chat jumps and prompt flicker when sending Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 5271d471-93c3-400f-b676-baf8a42618e6 * test(ui): cover the measured frame before manual chat scrolling Retain final geometry assertions, verify the first frame remains stationary, and introduce a second typing peer before the manual scroll executes. This updates the old one-frame collaborator test to the intentional two-frame smooth-send contract. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * fix(ui): prevent chat jumps and prompt flicker when sending Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 6e7ca1a9-21f6-48c3-ba07-d217de22e4e6 * test(ui): bind scroll probe methods at capture Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> * fix(ui): prevent chat jumps and prompt flicker when sending Worked on by: - @vyctorbrzezowski - @steipete Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b3aaf419-4ca9-43b3-b14b-feec093437e4 --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes: the transcript snaps when sending a message, and the entering prompt briefly fades out while the composer changes height.
User Impact
Sending short or multiline prompts now uses one smooth scroll into the conversation and keeps the prompt text visible. Reduced motion and reader scroll takeover remain supported. No configuration changes or migration are required.
Why This Change Was Made
The queued manual send scroll now owns the viewport instead of racing geometric auto-follow. Smooth sends wait through the first layout measurement before choosing their destination. The existing short upward prompt animation remains, without its opacity fade.
Evidence
Before / after — multiline send in motion
Before: an estimated endpoint snap and a fading prompt.
After: one upward movement with the prompt text remaining opaque.
Confirmed steering boundary
Protocol-faithful local UI replay: the agent is working, the steering input is confirmed, and subsequent response text grows below it. The pre-input narration remains unchanged; the user bubble stayed on the same DOM node with 0 px movement in transcript coordinates across 43 sampled frames. Viewport following is separate from message placement. This is not a live-provider recording.
steering-boundary.mp4
Thanks to @vyctorbrzezowski for the report and UX direction, and @steipete for review and landing direction.
Worked on by
Work sessions
View the OpenClaw team session