Repository navigation
fix(ui): keep new-session loading steady - #201177
Conversation
Co-authored-by: jesse-merhi <[email protected]>
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
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -34, Tests +151. Total +117 across 22 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)Reviewed November 18, 2026, 8:30 AM ET / 13:30 UTC (Revision 3). |
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
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: ca3850d0-c50c-4469-9511-12210ed83768
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 4b979974-fb24-451a-8d95-264a9a5500e7
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 3800788f-0d3c-47a6-928c-e742ec75f511
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
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.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.95e7d2f16fb6): fixed both hosted lint errors and addressed the CSS budget finding without changing thresholds. The same local comparison against9d6f4a94adf5went 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).e25ad96fb3d6found 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 at70d0ea5d6520, published with an identical source tree as2bbf539a18bd. 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
e25ad96fb3d6, the two transition repairs, and the final owner-only cleanup. No remaining P0–P2 findings were reported.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:
After — our change, at the same loading stage:
Annotated comparison
Before:
After:
Requested and design-reviewed by Jesse.
Work sessions
Linked for team reference; these sessions aren’t public.
🦞 Made with OpenClaw
Worked on by