Skip to content

improve(ui): smooth new messages and chat scrolling - #148447

Merged
roboclaw-bot merged 8 commits into
mainfrom
openclaw/improve-chat-scrolling-performance
Sep 18, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
openclaw/improve-chat-scrolling-performance

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Merged source head d38c83f3d51290f39a628576c6904270c0c16f1d incorporates September 18 main 52c88f048e84d1213bb4d0657623713ddc3f2a83. 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 verification: all 32 plugin runtime-inspection tests pass, including the formerly failing actual chat-inspect reply; current main now retires asynchronous state admission before fixture cleanup. No plugin assertion was weakened. All 414 focused UI tests and 21 bundled-Chromium motion, pending-send, prepend and progress-scroll scenarios pass. Targeted lint and fresh independent P0 review pass. Fresh desktop/mobile/reduced-motion captures confirm the unchanged motion appearance after composition.
  • The September 18 full run exposed two inherited test-oracle issues plus the new line-cap gate: widget retention coverage now lives in the existing embed-policy suite (242 message/policy tests pass); the stream budget waits for committed startup roster hydration (all 6 runtime-budget cases pass, with unchanged limits); the newly landed canonical main planner repair recognizes the existing two-worker job cap after Gateway serialization (81 planner cases pass). Main advanced during CI with that same repair, so the actual overlap was resolved to main’s complete version and its stronger mutation checks; there is no remaining planner diff. No production behavior or CI threshold was weakened. The mobile-many swarm lifecycle case passed both the full six-case local reproduction and final hosted CI.
  • September 15 CI repair validation passed: 405 focused DOM tests, 8 Chromium motion/pending-send scenarios, the UI test-type graphs, targeted lint, full dependency/export checks, and fresh scoped P0 review. Widget identity assertions remain strict and now cover prepend/removal using production keys. The virtualizer size repair moves retained-range state into its existing prepend owner, rather than suppressing the limit.
  • The preflight repair passed 82 planner/timing tests after reproducing 18 failures on the original branch.
  • Earlier broader source-matched validation also passed 136 unit/DOM tests and 23 Chromium scenarios, including prepend anchoring, reader takeover, streaming/media, and history recovery.
  • The new motion and scroll-continuity regressions fail against the matching unmodified main snapshot and pass with the candidate.
  • Earlier source-matched UI types, CSS stylelint and diff checks passed. September 18 production UI types, targeted lint, all three unused-export scans, and diff checks also pass; fresh independent review is scoped-clean at the default P0 threshold.
  • Inspected before/after screenshots and motion clip use the matching September 14 baseline and candidate with synthetic Gateway data. Both screenshots and the clip were also delivered in the originating chat. Publicly served screenshots match the inspected originals.

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 fc80810624debad21c7f005b98e675465b674828 is 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

roboclaw-bot and others added 2 commits September 14, 2026 18:16
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 7d36b825-fa25-4236-aa36-3dfb98f1ab7f
@clawsweeper

clawsweeper Bot commented Sep 14, 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 app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 14, 2026
@roboclaw-bot

roboclaw-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fresh, source-matched UI proof

Baseline: cb5c760d943e21ee0f5281d1bee8b22d43879a00 (September 14 main). Tested source: ec8f539b10d99a54d0f3ccfe467f23b9ec577d8f; published head d73f0047d97346e29420b7d924e49ca9a560753f has the identical source tree.

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.

  • Before: no generic reply entrance, and the native follow regression inserts an instant cancellation. Both regressions fail on the matching baseline.
  • After: a single 180ms prompt/reply entrance, no token or history-remount replay, and continuous native end-follow.
  • 136 focused unit/DOM tests and 23 Chromium scenarios pass; desktop, mobile, and reduced motion are covered. UI types, targeted lint, CSS stylelint, and independent P0 review pass.

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 ffprobe confirms a 3.52-second H.264 clip at 1280×830, and decoded frames were inspected; the reviewer’s missing ffprobe executable was an environment limitation, not a decoding failure in the artifact. The browser regressions separately assert the animation lifecycle and native-scroll continuity.

Before: September 14 main

After: tested chat-motion candidate

chat-motion-current.mp4

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 14, 2026 18:28
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 1:04 AM ET / 05:04 UTC (Revision 8).

ClawSweeper review

What this changes

The 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
Reviewed head: d38c83f3d51290f39a628576c6904270c0c16f1d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with relevant browser proof and lifecycle coverage; no blocking correctness or security finding remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (recording): The supplied bundled-Control-UI browser captures exercise prompt submission and streamed replies through the changed transcript renderer with synthetic Gateway data, reporting one-shot entrances and uninterrupted follow across desktop, mobile, and reduced motion. Screenshots were inspected; local clip decoding was unavailable, as documented in evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The supplied bundled-Control-UI browser captures exercise prompt submission and streamed replies through the changed transcript renderer with synthetic Gateway data, reporting one-shot entrances and uninterrupted follow across desktop, mobile, and reduced motion. Screenshots were inspected; local clip decoding was unavailable, as documented in evidence.
Evidence reviewed 10 items Introduced change and review continuity: Reviewed the pinned base-to-head changes. The GitHub comparison against the previous reviewed head shows only three UI test files changed afterward: startup hydration synchronization and relocation of widget-retention coverage. Production motion code is unchanged from that review.
Current main still needs the improvement: Fetched main retains the timestamp-based pending-user-only entrance helper. Its transcript scrollToEnd still calls cancelScroll unconditionally before retargeting, preserving the interruption mechanism addressed by this branch.
Latest release comparison: The v2026.9.4 stylesheet contains the older user-turn-only entrance animation; no release equivalence or merged replacement was established.
Findings None None.
Security None None.

How this fits together

The 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +70, Tests +411. Total +481 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 16 246 176 +70
Tests 9 468 57 +411
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 714 233 +481

Review metrics

Metric Value Why it matters
Production versus test growth Production net +70 lines; tests net +411 lines Production growth replaces the global pending-only animation cache with session-owned arrival tracking; test growth covers lifecycle and scrolling behavior.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is bounded chat motion and scrolling polish without an established urgent user-workflow failure.
  • 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 (recording): The supplied bundled-Control-UI browser captures exercise prompt submission and streamed replies through the changed transcript renderer with synthetic Gateway data, reporting one-shot entrances and uninterrupted follow across desktop, mobile, and reduced motion. Screenshots were inspected; local clip decoding was unavailable, as documented in evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied bundled-Control-UI browser captures exercise prompt submission and streamed replies through the changed transcript renderer with synthetic Gateway data, reporting one-shot entrances and uninterrupted follow across desktop, mobile, and reduced motion. Screenshots were inspected; local clip decoding was unavailable, as documented in evidence.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The supplied bundled-Control-UI browser captures exercise prompt submission and streamed replies through the changed transcript renderer with synthetic Gateway data, reporting one-shot entrances and uninterrupted follow across desktop, mobile, and reduced motion. Screenshots were inspected; local clip decoding was unavailable, as documented in evidence.

Evidence

What I checked:

  • Introduced change and review continuity: Reviewed the pinned base-to-head changes. The GitHub comparison against the previous reviewed head shows only three UI test files changed afterward: startup hydration synchronization and relocation of widget-retention coverage. Production motion code is unchanged from that review. (d38c83f3d512)
  • Current main still needs the improvement: Fetched main retains the timestamp-based pending-user-only entrance helper. Its transcript scrollToEnd still calls cancelScroll unconditionally before retargeting, preserving the interruption mechanism addressed by this branch. (ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts:583, affa1b694ce8)
  • Latest release comparison: The v2026.9.4 stylesheet contains the older user-turn-only entrance animation; no release equivalence or merged replacement was established. (ui/src/styles/chat/grouped.css:43, 3a9d69db306c)
  • Session-owned animation lifecycle: Animation identities are projected from transcript items, admitted with committed rows, consumed once by element references, and disabled during restoration or disconnection. Focused tests cover acknowledgement, token updates, history handoff, remounts, prepends, search, and session replacement. (ui/src/pages/chat/components/chat-message-entry.ts:49, d38c83f3d512)
  • Scroll ownership remains intact: Automatic end-follow avoids the intermediate cancellation only when already following an end command. Saved-position and reader-policy guards remain; native input still reaches the existing cancellation owner, and reduced motion is resolved by the shared scroll-behavior helper. (ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts:589, d38c83f3d512)
  • Pinned virtualizer contract: OpenClaw directly imports virtual-core, pinned to 3.17.9 in ui/package.json. Inspected that dependency's tagged implementation: scrollToEnd delegates to an end-aligned scrollToIndex, which replaces its reconciliation target and forwards the requested behavior. Repository identity was verified through its GitHub API. (packages/virtual-core/src/index.ts:1944, 171029d81350)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 (7 earlier review cycles)
  • reviewed 2026-09-14T18:28:24.654Z sha d73f004 :: blocked before merge. :: none
  • reviewed 2026-09-14T18:38:00.896Z sha d73f004 :: blocked before merge. :: none
  • reviewed 2026-09-14T21:40:07.227Z sha d73f004 :: blocked before merge. :: none
  • reviewed 2026-09-15T05:34:56.781Z sha 3ec970d :: blocked before merge. :: none
  • reviewed 2026-09-15T05:51:32.977Z sha 0ac88ba :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T06:24:42.637Z sha 9cdb135 :: blocked before merge. :: none
  • reviewed 2026-09-18T04:44:51.119Z sha 7a31eeb :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 14, 2026
roboclaw-bot and others added 2 commits September 15, 2026 05:28
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]>
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 15, 2026
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]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

September 18 integration proof

Exact head: 7a31eeb99cb52fd2dccb6cec4104fed4eb40a890, composed with main a225ce456f2aa32a8857893cb24770aa680429e2. The existing before/after motion proof remains the behavior comparison. This inspected, sanitized bundled-Control-UI screenshot verifies the current composed candidate using synthetic Gateway data; it does not replace that comparison.

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.

September 18 composed candidate: synthetic prompt and streamed reply

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

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]>
@roboclaw-bot
roboclaw-bot merged commit fc80810 into main Sep 18, 2026
158 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/improve-chat-scrolling-performance branch September 18, 2026 05:14
roboclaw-bot added a commit that referenced this pull request Sep 18, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…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]>
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

1 participant