Skip to content

fix(ui): animate opening session Details sections - #178959

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/details-disclosure-motion
Oct 21, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/details-disclosure-motion

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Closes #178947

What Problem This Solves

Fixes: opening a collapsed section in session Details jumps straight to its full height while closing animates smoothly.

User Impact

Pointer expansion now progresses smoothly to the existing layout. Keyboard activation remains immediate, and reduced motion keeps its existing opacity-only transition.

Why This Change Was Made

A closed native disclosure can still report its hidden body's intrinsic height. The shared reveal owner now starts from zero only when the disclosure is closed, while preserving the current visible height for interrupted transitions. Existing timing, content, layout, and state ownership are unchanged.

Evidence

  • Reproduced in the real Control UI with the synthetic session-design fixture: before, opening animated 88→88 px; after, 0→88 px with an intermediate height. Closing remains 88→0 px.
  • Browser regression fails against the original code and passes with the fix. All 3 owner browser tests pass, covering keyboard access, rapid reversal, late content growth, parking, and cleanup. Measured command wall time after the CI repair: 2.58 s; test time: 0.71 s. The repaired test file passed in 0.93 s on CI run 39535159627.
  • The first CI run exposed test-side timing: a resize callback could retarget the opening before the test paused it (0.5625 px instead of 0). The regression now pauses the real browser animation at creation; assertions and product code are unchanged. It still fails against the original product at 80 px and passes against the fix.
  • Real desktop (1180×860) and mobile (390×844) flows were checked without page errors. Mobile People navigation and settled geometry remain unchanged.
  • Bounded instrumentation observed one fewer layout read during opening (3 instead of 4), zero extra reads after settling, and no remaining animation. This is a work-count check, not a latency benchmark.
  • The UI production and chat-test TypeScript graphs pass. Two-file format and lint checks pass. Independent Codex review with full owner, test, and scheduler context found no actionable P0–P2 issues.

Desktop opening, halfway through the same 300 ms transition

Before After
Before: the body is already fully expanded After: the body is visibly partway open

Mobile Details

Before After
Before: mobile Details root After: mobile Details root remains unchanged

Risk and coverage

The change is confined to the shared Details reveal's initial height. It adds no measurements, timers, observers, state, dependencies, or style changes. Production code grows by one explanatory comment line; one browser regression covers the missing intermediate-state contract. Full-suite coverage is left to PR CI.

Closer view of the opening transition
Before After
Before opening crop After opening crop

The short recordings include the controlled midpoint used for the screenshots.

before-opening.webm
after-opening.webm

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 21, 2026 02:34
@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. labels Oct 21, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 21, 2026 02:53
@vyctorbrzezowski
vyctorbrzezowski merged commit 769eded into main Oct 21, 2026
86 of 87 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/details-disclosure-motion branch October 21, 2026 02:58
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* fix(ui): animate opening session Details sections

* test(ui): freeze Details animations before sampling
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
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 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. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control UI: session Details sections open abruptly

1 participant