Skip to content

fix(ui): stop Details from snapping new chats left - #192435

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/amber-prawn-5
Nov 4, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/amber-prawn-5

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the conversation abruptly jumps left when Details first appears after creating a session.

User Impact

The first uncached, initially wide Details presentation moves the panel and conversation together through the existing 280 ms transition. Cached/retained restoration, later resize-driven docking, and reduced-motion behavior remain instant. Manual opening and closing retain their behavior.

Why This Change Was Made

Session admission replaces the full-width pending-create view with the admitted chat pane. Automatic opening was classified as restoration, disabling both the panel and shared 313 px gutter transitions. A pane-local entrance flag distinguishes the first reveal from restoration; hidden measurements do not consume it, and visibility stays in the existing layout snapshot.

No new setting, timer, layout-width owner, persistence, or public API is introduced.

Evidence

  • Local production-path Chromium proof covers fresh reveal, reduced motion, later resize, intermediate gutter widths, and actual composer movement. Eighteen Details browser tests, eight arrival tests, UI typecheck, scoped lint, formatting, and diff checks passed. Warm-reload proof was retained and the visibility-snapshot refinement was rechecked with the creation/browser/arrival tests.
  • Fresh independent review of the feature patch found no blocking issues. Local automated ClawSweeper/autoreview timed out; no clean local automated result is claimed.
  • Head 9351c43 integrates main at 8529334 to include the already-landed shared toast CI repair #192449. No duplicate repair was made. The feature diff remains identical to reviewed commit 0d5eaa0: stable patch ID 16b8d5ec95fd3104a8f2e7930826128f35376af2, two files, +117/-4.
  • Exact-head CI run 41761670529 completed: all three UI shards, UI E2E, control-UI performance, lint/security checks, dependency review, and security-sensitive review pass. The hosted review's prior bundle-size finding is resolved on this head.
  • The remaining primary failure is the test-line ratchet: +100 regression lines, 58 above the computed ceiling. Its derived CI-gate failures are not claimed green. Per the maintainer's explicit instruction to bypass that limit without raising it, the shared scalar and allocation records remain unchanged. The test-allocation suggestion is declined in favor of requesting the existing protected writer's scoped non-security budget exception. Exact measurements and disposition. No security or permission control is changed, and no assertion is weakened or removed.

Visual proof

Inspected before/after screenshots and local-fix video use synthetic data only. The screenshots were delivered in the originating conversation and their uploaded images were inspected. The video shows normal speed and a 0.25× replay. The private original recording was not published.

Worked on by

roboclaw-bot and others added 2 commits November 3, 2026 21:26
Keep cached restoration and later resize docking instant while the first uncached wide presentation uses the existing shared gutter motion.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: ea947f4c-bce3-4d0b-96d6-2d14c7223c8c
@clawsweeper

clawsweeper Bot commented Nov 4, 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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Visual evidence

Synthetic test data only. The screenshots show the pending new-session view before Details reveals and the settled panel afterward. The video shows the fixed transition at normal speed, then replays it at 0.25× speed. The regression also checks intermediate gutter widths and the actual composer position.

Before Details reveal — synthetic pending-session view

After Details reveal — synthetic settled view

after.mp4

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 4, 2026 01:06
@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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Animate the first uncached Details reveal while preserving instant restoration, reduced motion, and later resize-driven docking.

Example: Create a session in a 1700 × 1000 browser window.

  • Before: Details reserves its 313 px gutter instantly, snapping the conversation left.
  • After: Details and the conversation move together through the existing 280 ms transition.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused behavior change and distinct browser scenarios are useful, but the bundle and regression-allocation gates need repair.
Proof confidence 🐚 platinum hermit (4/6) The ordinary contributor proof gate is exempt for this collaborator-authored PR. Inspected screenshots exercise the actual new-session UI with synthetic Gateway data; the supplied recording targets entrance motion. Local video decoding and browser playback were blocked by the review environment, so no new contributor recording is requested.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A newly admitted session abruptly shifts left when Details first appears.
Reason: The maintainer-authored direction addresses a concrete visual defect without adding settings, persistence, or another layout owner.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-authored PR addresses a current UI defect, but bundle growth and the missing test allocation leave required gates failing.

Priority: P3
Reviewed head: 3df61d4429c4f05b2eaba08f329796698fc7194f

Before merge

  • [P2] Keep the entrance change within the enforced bundle budget (P2) - The added layout logic enters the chat boot bundle. The current-head performance comparison reports 1251.6 KiB against a base-relative limit of 1251.5 KiB, already including the allowed 64 B build variance, and fails the required performance gate. Reduce the changed owner's emitted footprint while preserving the entrance behavior; the existing base overage does not permit further growth.
  • [P2] Allocate the added motion regression tests (P2) - This new suite adds 100 test lines without an offset or dedicated allocation. The repository's test cost contract requires an allocation for justified regression growth, and the current-head baseline-ratchet job reports test-lines failure on the merge candidate. Add the matching allocation under config/test-lines-allocations while leaving the shared scalar unchanged.

Findings

  • [P2] [P2] Keep the entrance change within the enforced bundle budget — ui/src/pages/chat/components/chat-details.tsx:456-460
  • [P2] [P2] Allocate the added motion regression tests — ui/src/e2e/new-session-page.details-motion.e2e.test.ts:15-19
Agent review details

How this fits together

The Control UI Details component converts pane visibility, available width, cached presentation, and user intent into panel placement and the conversation gutter.

flowchart LR
  A[Session creation] --> B[Admitted chat pane]
  B --> C[Details layout owner]
  D[Visibility and width] --> C
  E[Cached presentation] --> C
  C --> F[Details panel]
  C --> G[Conversation gutter]
Loading

Technical review

Best possible solution:

Keep the entrance distinction in the existing Details owner, reduce its bundle footprint, and allocate the justified regression growth.

Do we have a high-confidence way to reproduce the issue?

Current-main source marks automatic opening as restoration, which disables the shared gutter transition; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The pane-local entrance flag is a focused solution: it reuses the existing layout snapshot and CSS transition while preserving cached restoration and resize behavior.

Full review comments:

  • [P2] [P2] Keep the entrance change within the enforced bundle budget — ui/src/pages/chat/components/chat-details.tsx:456-460
    The added layout logic enters the chat boot bundle. The current-head performance comparison reports 1251.6 KiB against a base-relative limit of 1251.5 KiB, already including the allowed 64 B build variance, and fails the required performance gate. Reduce the changed owner's emitted footprint while preserving the entrance behavior; the existing base overage does not permit further growth.
    Confidence: 0.97
  • [P2] [P2] Allocate the added motion regression tests — ui/src/e2e/new-session-page.details-motion.e2e.test.ts:15-19
    This new suite adds 100 test lines without an offset or dedicated allocation. The repository's test cost contract requires an allocation for justified regression growth, and the current-head baseline-ratchet job reports test-lines failure on the merge candidate. Add the matching allocation under config/test-lines-allocations while leaving the shared scalar unchanged.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1ca0669dbe39.

Provenance checked

  • Automatic versus retained Details motion changes intended behavior with a stated reason (1894bb9: The responsive-panel integration kept automatic docking and retained presentation instant while allowing direct open and close gestures to animate.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/e2e/new-session-page.details-motion.e2e.test.ts --maxWorkers=1
  • pnpm test ui/src/pages/chat/components/chat-details.browser.test.ts --maxWorkers=1
  • pnpm test ui/src/pages/chat/components/chat-details-arrival.test.tsx --maxWorkers=1
  • pnpm check:test-lines-ratchet --base 041a094 --no-merge-base
  • pnpm ui:check-performance:base 041a094

What I checked:

PR surface

Source +13, Tests +100. Total +113 across 2 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 17 4 +13
Tests 1 100 0 +100
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 117 4 +113

Labels

Label changes:

  • add P3: This fixes a visible layout snap without blocking session creation or message delivery.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This fixes a visible layout snap without blocking session creation or message delivery.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 8:24 PM ET / November 4, 2026, 01:24 UTC.

Includes PR #192449, which fixes the inherited toast title/description and error-severity assertions failing this PR CI. No limit changes.

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

Copy link
Copy Markdown
Collaborator Author

Exact-head CI disposition — 9351c43

Run 41761670529 is complete. The inherited toast assertions are repaired via #192449 and the refreshed UI checks pass. The prior bundle-size finding is resolved on this head: control-ui-performance passes. Dependency and security-sensitive review statuses also pass.

The remaining primary failure is test-lines: 6,449,904 lines against 6,449,846 (58 over), with this patch adding 100 regression-test lines. The other failed CI-gate entries derive from that failure. The added suite covers first reveal, reduced motion, resize restoration, and actual composer movement.

The maintainer explicitly instructed landing without raising the limit and requested bypassing that limit. Accordingly, the shared scalar and allocation records remain unchanged; no assertion is weakened or dropped. The test-allocation review suggestion is not being applied because it would increase the effective ceiling. This requests only a scoped, maintainer-authorized exception to the non-security test-line budget through the existing protected merge writer. No security or permission control is being changed, and the failed check is not represented as passing.

@roboclaw-bot
roboclaw-bot merged commit 92d2dfc into main Nov 4, 2026
93 of 96 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/amber-prawn-5 branch November 4, 2026 02:52
steipete added a commit that referenced this pull request Nov 4, 2026
Raise the test-line scalar by exactly 20 to match the current tracked total with existing allocations. The three table-driven motion regressions from #192435 protect distinct behavior and remain intact. Maintainer-authorized exact reconciliation; zero spare allowance and no production or test LOC growth.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
Animate the first uncached wide Details reveal through the existing shared gutter transition while retaining instant cached restoration, resize docking, and reduced-motion behavior.

The inherited toast CI assertions were fixed upstream in openclaw#192449 and integrated here. Exact-head UI, E2E, performance, dependency and security checks pass. The remaining test-line budget is accepted under the maintainer's explicit per-PR bypass instruction; neither the shared ceiling nor allocation records were changed.

Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
Raise the test-line scalar by exactly 20 to match the current tracked total with existing allocations. The three table-driven motion regressions from openclaw#192435 protect distinct behavior and remain intact. Maintainer-authorized exact reconciliation; zero spare allowance and no production or test LOC growth.
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant