Repository navigation
improve(ui): smooth new messages and chat scrolling - #148447
Conversation
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 7d36b825-fa25-4236-aa36-3dfb98f1ab7f
|
🦞👀 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. |
Fresh, source-matched UI proofBaseline: These are fresh bundled-Control-UI captures using synthetic Gateway data, cropped to the transcript and input field. The settled layout intentionally remains unchanged; the clip and animation/native-scroll assertions demonstrate the motion change.
Delivery and decoding verification: both inspected screenshots and the clip were attached in the originating chat. The public PNGs byte-match the inspected originals. Local chat-motion-current.mp4 |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 1:04 AM ET / 05:04 UTC (Revision 8). ClawSweeper reviewWhat this changesThe Control UI adds one-time entrances for new prompts and replies, preserves message elements across updates, and smooths scrolling during streamed replies. Merge readiness✅ Ready for maintainer review Keep open: current main does not cover the central improvement, and the supplied browser evidence supports this maintainer-backed work. No actionable introduced defect was found. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI transcript turns Gateway history, queued prompts, and streamed replies into visible chat messages. Its session-owned renderer coordinates message identity, viewport anchoring, and reader-controlled scrolling. flowchart TD
A[Gateway history and streamed replies] --> C[Session transcript projection]
B[Queued user prompts] --> C
C --> D[Committed message identities]
D --> E[One-time bubble entrance]
C --> F[Scroll-follow controller]
G[Reader input and motion preference] --> F
E --> H[Visible chat transcript]
F --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +70, Tests +411. Total +481 across 25 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep message arrivals owned by committed session transcripts and let the existing scroll controller retarget following while preserving reader takeover and reduced motion. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main cancels an active end-scroll before automatic retargeting, and the supplied browser comparison exercises new prompts and streamed replies. This review did not execute a reproduction. Is this the best way to solve the issue? Yes. Replacing the pending-only cache within the existing transcript owner avoids parallel animation policy, while the scroll change preserves existing restoration and reader-control guards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against affa1b694ce8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
Apply the canonical inventory deduplication from #148425 to the PR source branch so CI preflight can construct its test plan. Preserve the recovery suite once; no coverage is removed. Co-authored-by: steipete <[email protected]>
Resolve the inherited test inventory conflict with the canonical main registry. Keep each recovery and provenance suite once, and preserve the chat-motion changes and current main behavior. Co-authored-by: steipete <[email protected]>
Use production message keys and the real transcript controller in regression fixtures, type the browser motion probe, and remove the retired pending-message re-export. Move retained-range selection and its committed map together into the existing prepend owner without weakening lint or behavior checks. Co-authored-by: steipete <[email protected]>
Compose September 18 main after real merge conflicts. Preserve forwarded-message folding, tool outcome summaries, gesture-owned progress, and keyed one-shot arrivals. Use the canonical retained-range array API from the existing prepend owner. Current main includes async plugin-state fixture retirement; its 32 inspection tests now pass without assertion changes. Co-authored-by: steipete <[email protected]>
September 18 integration proofExact head: Fresh verification passes: 32 plugin runtime-inspection tests (including the formerly failing chat reply), 414 UI unit/DOM tests, and 21 Chromium scenarios covering desktop/mobile/reduced motion, pending handoff, history prepend/touch momentum, and progress-scroll ownership. Fresh P0 autoreview is scoped-clean. No production Gateway was changed. The old reviewer-side video limitation was not an artifact failure: the original clip was locally decoded and inspected (H.264, 3.52 seconds, 1280×830), and the motion tests assert actual animation counts and native follow continuity. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Move widget retention and script-policy coverage to its existing embed-policy suite, preserving strict identity/prepend/removal assertions. Observe completed child roster hydration before stream budget measurement; exact CI source maps and an unmodified-main reproduction show startup metadata contaminated the probe. Keep every budget unchanged. Recognize the existing job-level two-worker cap in planner policy expectations after Gateway serialization, retaining descriptor and timing checks. Co-authored-by: steipete <[email protected]>
Resolve the actual mid-CI planner test conflict to the newly landed main implementation, including its stronger job/group worker-cap mutation coverage. Preserve all chat motion and fixture repairs. Full81 planner cases and current-base line-cap ratchet pass; complete candidate independently reviewed P0 clean. Co-authored-by: steipete <[email protected]>
|
Merged via squash.
|
…151417) Remove duplicate child-roster setup introduced by the clean textual composition of #147568 and #148447. Restore the exact previously landed browser-budget fixture while retaining committed-roster polling, scroll-idle synchronization, all six cases, and every assertion and budget. Validate current source files before measuring historical line-count debt. Only currently over-cap files need that allowance, so valid under-cap syntax repairs are no longer blocked by a malformed old file. Invalid current files and unmeasurable over-cap baselines still fail closed; no caps, baselines or suppression rules change. Co-authored-by: steipete <[email protected]>
* improve(ui): smooth new messages and chat scrolling Co-authored-by: steipete <[email protected]> * improve(ui): smooth new messages and chat scrolling Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 7d36b825-fa25-4236-aa36-3dfb98f1ab7f * fix(ci): remove duplicate recovery test registration Apply the canonical inventory deduplication from openclaw#148425 to the PR source branch so CI preflight can construct its test plan. Preserve the recovery suite once; no coverage is removed. Co-authored-by: steipete <[email protected]> * fix(ui): finish chat motion CI integration Use production message keys and the real transcript controller in regression fixtures, type the browser motion probe, and remove the retired pending-message re-export. Move retained-range selection and its committed map together into the existing prepend owner without weakening lint or behavior checks. Co-authored-by: steipete <[email protected]> * test(ui): settle stream fixtures and preserve CI policy coverage Move widget retention and script-policy coverage to its existing embed-policy suite, preserving strict identity/prepend/removal assertions. Observe completed child roster hydration before stream budget measurement; exact CI source maps and an unmodified-main reproduction show startup metadata contaminated the probe. Keep every budget unchanged. Recognize the existing job-level two-worker cap in planner policy expectations after Gateway serialization, retaining descriptor and timing checks. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
…penclaw#151417) Remove duplicate child-roster setup introduced by the clean textual composition of openclaw#147568 and openclaw#148447. Restore the exact previously landed browser-budget fixture while retaining committed-roster polling, scroll-idle synchronization, all six cases, and every assertion and budget. Validate current source files before measuring historical line-count debt. Only currently over-cap files need that allowance, so valid under-cap syntax repairs are no longer blocked by a malformed old file. Invalid current files and unmeasurable over-cap baselines still fail closed; no caps, baselines or suppression rules change. Co-authored-by: steipete <[email protected]>



What Problem This Solves
New chat replies appear abruptly, and streamed updates can interrupt an in-progress scroll to the latest message.
User Impact
New prompts and replies get a short, 180ms entrance while scroll-follow remains smooth. Loaded history, virtual remounts, and finalized replies do not replay the entrance; reduced-motion settings and manual scroll-back remain respected. No configuration or dependency changes are required.
Why This Change Was Made
The committed transcript now owns one-shot message arrivals instead of a global, timestamp-based pending-message cache. Keyed children preserve message identity, and automatic follow retargets the existing native end command rather than inserting an instant cancellation. The obsolete streaming border animation is removed. Existing main-branch history anchoring and reader-takeover logic remain intact.
Evidence
d38c83f3d51290f39a628576c6904270c0c16f1dincorporates September 18 main52c88f048e84d1213bb4d0657623713ddc3f2a83. Conflicts preserve current forwarded-message folding, tool outcome summaries and gesture-owned progress alongside keyed one-shot arrivals. Retained ranges use the current canonical API through the existing prepend owner.September 18 current-head screenshot and integration proof supplement the original before/after comparison.
Exact-head CI run 35308903722 completed successfully with zero pending checks. Native guarded preparation and merge completed on September 18, 2026 at 05:14 UTC; landed commit
fc80810624debad21c7f005b98e675465b674828is verified on main with the requested human credit. No live Gateway deployment has been performed.Worked on by
Work sessions
View the OpenClaw team session