Skip to content

fix(ui): keep new-session loading steady - #201177

Merged
roboclaw-bot merged 11 commits into
mainfrom
openclaw/vivid-shrimp
Nov 18, 2026
Merged

roboclaw-bot merged 11 commits into
mainfrom
openclaw/vivid-shrimp

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Starting a session can briefly replace the submitted message with a fake conversation skeleton, then hide it during the handoff into chat. On desktop, Details also flashes an empty card and expands into a large skeleton, collapses to a strip, then grows again when Environment arrives.

User Impact

User impact: the first message stays visible, the follow-up composer loads independently, and desktop Details fades in as a compact row before growing to its content. Cached Details, closed panels, reduced-motion preferences, and the native mobile sheet retain their existing behavior. No configuration changes or migration are needed.

Why This Change Was Made

The loading UI now reflects what is already known: a new session has one real submitted message, not a conversation to reconstruct. Initial placement completes before paint for that known first turn; longer histories retain their normal batching.

Details keeps a small loading floor until facts arrive and uses its existing surface/section animations. This removes the old desktop height-handoff state machine, animation bookkeeping, and loading/ready callback plumbing rather than adding another animation owner. Submission projection and fallback rendering remain with their existing owners. The follow-up removes obsolete styles for noncompact PR rows inside Details, which now renders compact published rows.

Evidence

  • CI follow-up (a21bc785497a): the adjacent New Session checkout test expected unrelated branches to appear while a search was active. With branch filtering from main, both cache variants timed out. The test now uses matching branch names while still checking the pushed refresh, typed input, and request counts. Both failures reproduced on the CI merge tree before the fixture change; all 19 tests in the file passed on that tree after it. No production files or visuals changed in this follow-up.
  • Review follow-up (9a7c884fa903): Details placement and presentation reuse one layout snapshot instead of building the same state twice. Hosted Control UI performance passed. The matched local merge-tree comparison on Node 24.22.1 passed without raising limits: Chat boot JS 1,331,343 → 1,331,196 gzip bytes (−147 B); CSS +0 raw / +28 gzip bytes. Focused lint, independent source review, and 17 serial browser E2E tests passed. ClawSweeper found no actionable issues on this production-code revision. First-turn browser coverage also passed on the preceding revision against an isolated Gateway with a synthetic provider.
  • Review follow-up (95e7d2f16fb6): fixed both hosted lint errors and addressed the CSS budget finding without changing thresholds. The same local comparison against 9d6f4a94adf5 went from +1,181 raw / +225 gzip bytes to +0 raw / +28 gzip bytes and passed. Targeted lint, style lint, and 27 built-UI E2E tests passed (first load, warm reload, and desktop/mobile PR rows).
  • Main-versus-ours recording covers the complete visual change: desktop submission and composer handoff, compact Details loading and growth, and mobile submission → open Details → Environment arrival → close Details.
  • The first-turn regression failed on the baseline and passes with the fix under 4× CPU throttling. It samples every animation frame for the real message and composer, not merely DOM attachment.
  • Focused browser/E2E checks cover delayed modules and facts, simultaneous facts/content arrival, cached reload, archived/closed Details, reduced motion, attachment presentation, and transcript geometry. Typecheck, formatting, style lint, and line-cap checks pass.
  • Independent source review of the complete local change against e25ad96fb3d6 found two transition issues; both were repaired and the follow-up found no remaining P0–P2 issues. A further independent review verified the owner-only cleanup. Local ClawSweeper/autoreview were unavailable; these are independent source reviews, not a ClawSweeper result.

The media uses the actual built Control UI with synthetic Gateway responses and deliberately staged delays. Desktop is 1700×960; mobile is Chromium 390×844 emulation, not a physical-device or live-provider test. A is main at 7e267d814ee5; B is the complete change at 70d0ea5d6520, published with an identical source tree as 2bbf539a18bd. Mobile was captured before the final desktop-only fade/floor repair; the mobile-affecting implementation is identical. Subsequent owner-only relocations preserve the captured rendering and are rechecked by the first-load E2E.

Focused validation and review scope
  • Final owner cleanup: 49 transcript/route/geometry tests passed; the attachment style test initially timed out waiting for its lazy interactive card, then passed at both widths after explicitly awaiting dynamic-import settlement.
  • Final first-load/reduced-motion/mobile E2E: 5 passed. Earlier final desktop/cache/mobile run: 11 passed, including the capture.
  • Separate transcript geometry/lifecycle selection: 56 passed.
  • UI TypeScript check, touched-file formatter/style checks, controller guard, pre-commit freshness and line-cap ratchet passed.
  • Independent reviews examined the complete change against e25ad96fb3d6, the two transition repairs, and the final owner-only cleanup. No remaining P0–P2 findings were reported.
  • No production deployment, physical-device capture, or live-provider claim.

One video — main versus the complete change

main-vs-ours-desktop-mobile.mp4

0:00 desktop full flow · 0:04 first-message replay · 0:09 Details close-up · 0:16 mobile full flow. Replay speed is labeled. The same staged delays are used in separate runs; runtime timing is not artificially forced to match.

Clean comparison

Before — main, while Details code is loading:

Main: multi-row Details loading card

After — our change, at the same loading stage:

Ours: compact one-row Details loading card

Annotated comparison

Before:

Main: oversized loading card highlighted

After:

Ours: compact loading card highlighted

Requested and design-reviewed by Jesse.

Work sessions

Linked for team reference; these sessions aren’t public.

🦞 Made with OpenClaw

Worked on by

roboclaw-bot and others added 3 commits November 18, 2026 11:32
Keep the submitted message and composer visible through the first chat handoff. Use a compact desktop Details loader that fades in and grows with session facts, removing the superseded height-handoff state machine.

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

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: b95cfadb-81fd-46a2-b8ce-1c63eb284428
@clawsweeper

clawsweeper Bot commented Nov 18, 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
roboclaw-bot marked this pull request as ready for review November 18, 2026 12:25
@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 Nov 18, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves the submitted message during session creation and replaces the large desktop Details skeleton with a compact loading row.

Example: Submit “Review the session layout” in a 1700×960 desktop window while modules and session facts load.

  • Before: The message can disappear behind conversation placeholders, while Details expands into a large skeleton.
  • After: The submitted text remains visible, the composer loads independently, and Details starts with a 48-pixel loading card.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused behavior repair with inspected visual evidence, meaningful boundary coverage, and the previous performance blocker resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise desktop Details loading in the built Control UI with synthetic Gateway responses and show the compact result; the supplied recording's temporal behavior could not be independently inspected because local video preparation and playback failed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A submitted message briefly disappears during session creation, and desktop Details flashes oversized or empty loading surfaces.
Reason: The maintainer-authored direction improves a common session flow while simplifying the existing implementation.

Merge readiness

✅ Ready for maintainer review

This PR addresses concrete loading flicker and remains useful. The current-head performance check resolves the previous budget finding; no actionable source findings remain, and broader CI is still running.

Priority: P2
Reviewed head: 9a7c884fa90364b756cb657384a3c38374ba055a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI projects pending submissions and Gateway session facts into the New Session view, chat transcript, and Details panel.

flowchart LR
  A[Submitted message] --> B[Existing submission owner]
  B --> C[New Session preview]
  B --> D[Chat transcript]
  E[Gateway session facts] --> F[Details presentation]
  F --> G[Compact loader and sections]
Loading

Technical review

Best possible solution:

Keep submission display and transcript placement with their existing owners while using compact Details loading and existing section animations.

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

Current-main source exposes the generic pending-preview fallback and deferred first-turn placement; supplied before/after screenshots corroborate the Details loading problem, but no reproduction was executed during this review.

Is this the best way to solve the issue?

The change uses existing submission, transcript, and disclosure owners, preserves deferred imports, and removes the animation machinery made unnecessary by compact loading.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Pending submission preview and composer keeps the original intent (85082d9: Defer expensive transcript and follow-up composer code until submission while retaining local loading and retry boundaries.)
  • Desktop Details height handoff changes intended behavior with a stated reason (4813399: Prevent the large loading placeholder from abruptly shrinking when content arrives.)
  • Initial transcript scheduling changes intended behavior with a stated reason (43f6e30: Yield between initial multirow measurements to reduce blocking while preserving initial placement before reveal.)
  • Details arrival and cached restoration keeps the original intent (92d2dfc: Animate the first uncached Details entrance while keeping cached restoration and later docking changes immediate.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -34, Tests +151. Total +117 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 15 312 346 -34
Tests 7 252 101 +151
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 564 447 +117

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test changes Production +312/−346 lines; tests +252/−101 lines Removing height-handoff machinery offsets the loading presentation changes; test growth covers visible handoff continuity and distinct arrival boundaries.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Visible loading flicker affects session creation and Details presentation without preventing session use.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-18T12:44:09.952Z sha 2bbf539 :: needs changes before merge. :: [P2] [P2] Keep the loading styles within the enforced CSS budget
  • reviewed 2026-11-18T13:02:01.845Z sha 95e7d2f :: needs changes before merge. :: [P2] Keep Chat boot JavaScript within the enforced asset budget

Reviewed November 18, 2026, 8:30 AM ET / 13:30 UTC (Revision 3).

roboclaw-bot and others added 2 commits November 18, 2026 12:53
Remove Details styles for retired noncompact PR markup, preserving the compact loader and the existing CSS thresholds. Fix the adjacent accessors and test callback lint errors.

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

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 103fccf2-d72e-4a38-b6af-1be7b0e423ca
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

roboclaw-bot and others added 2 commits November 18, 2026 13:21
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: ca3850d0-c50c-4469-9511-12210ed83768
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 18, 2026
roboclaw-bot and others added 4 commits November 18, 2026 13:35
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 4b979974-fb24-451a-8d95-264a9a5500e7
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 3800788f-0d3c-47a6-928c-e742ec75f511
@roboclaw-bot
roboclaw-bot merged commit e7a387e into main Nov 18, 2026
89 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/vivid-shrimp branch November 18, 2026 14:29
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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