Repository navigation
fix: show skeletons while session panels load - #178939
Conversation
|
🦞👀 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 changesReplaces plain session-panel loading labels with existing accessible skeleton components while retaining loaded content and recovery controls. Example: Open uncached session Details beside Subagents at a 2400 × 1100 viewport.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains useful, and both prior findings are resolved. No actionable defects remain in the reviewed diff; exact-head CI is still running. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI session views consume existing request and lazy-module state, rendering loading placeholders until their owning components provide content or errors. flowchart LR
A[Open session panel] --> B[Existing loading boundary]
B --> C[Shared skeleton component]
B --> D[Lazy content module]
D --> E[Session data owner]
E --> F[Content or recovery controls]
Technical reviewBest possible solution: Use the existing skeleton variants at current loading boundaries while preserving lazy loading, retained rows, accessible status, and recovery actions. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the plain loading fallback, and inspected before screenshots show it at the shipped UI boundary; no target code was executed during this review. Is this the best way to solve the issue? The patch uses the existing presentation owner and is the smallest complete approach: replace loading markup, preserve settled and error paths, and update affected consumer assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f88c60637096. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +79, Tests +101. Total +180 across 23 files. Added test files: 1. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 (1 earlier review cycle)
Reviewed October 20, 2026, 11:36 PM ET / October 21, 2026, 03:36 UTC (Revision 2). |
|
Both findings are resolved in 76b5aab. Versions now checks the named busy status; the HTML preview and attachment tests accept only the canonical skeleton stylesheet while preserving document isolation and exact sandbox transfer assertions. All 68 tests in the three affected files pass, and the complete corrected candidate passed independent review. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
* fix: show skeletons while session panels load * test: align panel loading assertions with skeletons
Closes #178951
What Problem This Solves
Opening session Details, panels, and mobile subpages could show a nearly empty surface with raw “Loading…” text.
User Impact
Waiting surfaces use the existing lightweight skeletons. Loading remains named for assistive technology, and refreshes keep already loaded rows visible. Error messages and retry actions remain available.
The reported permanently loading mobile Details state did not reproduce on fresh main: both desktop and mobile settled normally. This PR fixes the loading presentation and does not claim to repair an unverified persistent-loading cause.
Why This Change Was Made
Reuse the existing list, document, and terminal skeletons at their current loading boundaries. Keep the approved layout, lazy imports, request ownership, and normal settlement timing. Remove the now-unneeded desktop flag from the shared HTML-preview loading component.
Evidence
git diff --checkpass. Fresh independent Codex review found no actionable P0–P2 issues.Risk and coverage: presentation-only changes; no new CSS, state, timers, eager imports, or dependencies. Browser proof uses synthetic Gateway fixtures. Broad CI remains attached to this PR.
Desktop proof: Details docked beside the open Subagents side panel, at 2400 × 1100. The comparison uses base
05235ad0c53f1974ad1e9edd0b1dbd6dad1dd6aaand this PR's head8d4a0a60c5cf8595be5f2b88b1f7ed276b86c04f, with the same synthetic session and opening actions. Both runs reserve the same 300 px Details column in the conversation; its frame is 1604 px wide. Only elapsed time varies. The module is held for the waiting capture, then released until the complete Details content, including pull requests, is visible. Detail crops come from their full-context PNGs.After loading completes:
The valid mobile comparisons are retained below, with the same theme, viewport, and fixture on each side: