Skip to content

fix(ui): smooth the first Details content load - #186048

Merged
roboclaw-bot merged 8 commits into
mainfrom
brzezowski/details-panel-loading-stability
Nov 5, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
brzezowski/details-panel-loading-stability

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Fixes #186047.

Problem and solution

Desktop Details abruptly shrinks when its first loading placeholder is replaced by session content. Keep one scroll shell across the actual lazy boundary, inside the existing first-open gate. The mounted fallback arms a bounded height handoff; cached content never arms it. Completion, focus, closure, and disposal cancel temporary sizing. Reduced motion skips the transition.

Keep the original asynchronous fade/scrollbar measurement path. Added height reads occur only while a displayed fallback or its handoff is active. Warm and settled scrolling adds no geometry reads, animations, or media subscriptions. Retired scrollbar-width measurement stays removed.

The small shell stylesheet is eager; the 15 KiB content stylesheet remains lazy. Shared motion timing is separated from the lazy disclosure implementation, so importing the timing constant does not pull that implementation into chat boot. WAAPI alone owns temporary height, and equivalent shell selectors are grouped without changing specificity.

Details skeletons are quieter on desktop and mobile: highlight opacity is 25% of the previous effect and duration is 1.8× the theme duration (3.6 s by default). Other skeletons and reduced-motion behavior are unchanged.

Evidence

Final reviewed/published source: 45595c2936bbac737f8579a6bebc01dba0223c74.

  • Original empty-history baseline drops 213 → 90 px in one frame. The final isolated real-Gateway replay preserves 189 → 189 → 90 px (loading → first content → settled), with an actual session/workspace. No model inference is needed for this flow; loading/loaded screenshots were inspected.
  • 11/11 built-UI E2E cases pass, including normal and 4× CPU handoff, reduced motion, cached reload, and scrollbar behavior. Normal/throttled loading preserves 189 → 189 → 139 px; reduced motion settles immediately.
  • 40/40 Chromium tests pass (31 Details/pull-request cases and 9 affected access-control cases), plus 27/27 sibling progress/disclosure unit tests. Tests verify zero added warm geometry work and animation cancellation when a body is parked.
  • Typecheck, focused lint/style/format, controller guard, test-line ratchet, generated boot inventory, and diff checks pass.
  • Fresh independent exact-tree review and official local ClawSweeper review of the final head both report no blockers/findings. The lead separately ran the tests and inspected visual evidence omitted from the offline review.

The owning performance checker first reproduced the failure on the integrated CI source, then passed after the repair against baseline 735ad207. No thresholds or exceptions changed:

Payload Repaired size Existing limit
Total CSS raw 1,670,815 B 1,670,837 B
Chat boot JavaScript gzip 1,294,093 B 1,294,292 B

Chat boot remains at 20 requests. Required GitHub checks must also pass on the published head before landing.

Risk and scope

The height transition is cold-load-only. Warm rendering stays immediate; there is no retained blank space, loading delay, new configuration, or Gateway behavior change.

Visual evidence

Same midpoint of the loading highlight, before and after the quieter treatment:

Before After
Before: strong Details loading shimmer After: quieter Details loading shimmer

Inspected before/after loading and settled-panel screenshots, with capture details.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 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.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 27, 2026 15:00
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head c46bb3d46c00fab7148ca36441351329bfbf52e9, but the PR head is now 45595c2936bbac737f8579a6bebc01dba0223c74. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-10-27T15:16:33.201Z sha c46bb3d :: needs maintainer review before merge. :: none

vyctorbrzezowski and others added 5 commits November 5, 2026 12:47
Retain the desktop scroll shell across the lazy fallback without adding warm-path geometry reads or synchronous fade work. Preserve the first-open gate, keep desktop content styling lazy, and verify normal, throttled, reduced-motion, and settled-scroll behavior.

Co-authored-by: vyctorbrzezowski <[email protected]>
Merge the original PR head while retaining the reviewed repair tree byte-for-byte. This preserves the incoming author's commit and permits fast-forward correction publication.

Co-authored-by: vyctorbrzezowski <[email protected]>
Use low-contrast, slower Details shimmer without changing other skeletons. Drive the cold handoff from fallback and composition lifecycles, and cancel its temporary height through visible ownership, including parked DOM. Own the presentation derivation before settlement callbacks read it.

Co-authored-by: vyctorbrzezowski <[email protected]>
Baseline-Refresh: 664028d798b020a31c16cecfff344748eff3e931
Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot requested a review from a team as a code owner November 5, 2026 15:07
@roboclaw-bot

roboclaw-bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Updated Details loading proof

For publication head 6f37b6169dc8617f6c86853ec34c00415a2adee6 (byte-identical source tree to locally reviewed 6790eaae9166e3f4fb129e3648f0ec1463bac81d).

The first loaded frame retains the visible placeholder height, then returns to natural height. The exact original reproduction changed from a 123 px one-frame drop on main to 189 → first frame 189 → settled 90 px on the repair. Normal and 4× CPU cases preserve the first frame; reduced motion skips the animation. Cached/settled rectangle and width-read counts remain zero; parked-animation cleanup is covered.

Quieter shimmer — same peak phase

The Details-only highlight is now 25% opacity and the existing theme duration is multiplied by 1.8 (default 3.6 s, previously 2 s). Other app skeletons are unchanged; reduced motion remains static.

Before Quieter
Before shimmer, same peak phase After quieter shimmer, same peak phase

Settled layout is unchanged

These settled stills use the same synthetic original reproduction. Browser measurements—not the stills—verify first-frame continuity.

Before After
Before settled Details After settled Details

Validation: final-head 11/11 built-UI E2E checks (normal, 4× CPU, reduced motion, cached reload, scrollbar), 30/30 affected Chromium browser checks, UI typecheck, focused lint, stylelint, controller guard, scoped test-line check, and official local ClawSweeper review with no findings. No production Gateway settings or host I/O limits were changed.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams labels Nov 5, 2026
roboclaw-bot and others added 2 commits November 5, 2026 15:30
Baseline-Refresh: e55bdb8fc65adbc84a3a9e06b711c4e663dde863
Co-authored-by: vyctorbrzezowski <[email protected]>
Keep shared motion timing separate from lazy disclosure behavior. Let WAAPI own temporary height and group equivalent shell selectors without changing warm-path work or budget thresholds.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Details panel jumps in height when its content first loads

2 participants