Repository navigation
fix: keep attachment loading shimmer inside its skeleton - #186556
Conversation
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 2c2bece3-1c0d-4f3b-8665-b14392cc4b5d
|
🦞👀 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. |
Before and afterReal bundled Control UI, synthetic video attachment, mocked Gateway metadata held pending. Both captures sample the same shimmer animation time (1125 ms of its 1500 ms cycle). Error metadata was then released, confirming that the resolved reason remains visible. Mobile dark — 390 pxBefore After |
|
Codex review: needs maintainer review before merge. What this changesExclude loading skeletons from attachment-status styles that allow text to overflow. Example: A video attachment named full-interview-mobile.mp4 is loading in a 390px-wide chat.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides a minimal, visually verified fix for a current-main CSS bug, with no actionable patch findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI renders attachment metadata as a shared animated skeleton while loading, then displays status text; attachment-specific CSS determines clipping in standalone cards and video galleries. flowchart LR
A[Attachment metadata] --> B[Attachment status renderer]
B --> C[Loading skeleton]
B --> D[Resolved status text]
C --> E[Shared shimmer styles]
E --> F[Attachment layout styles]
D --> F
Technical reviewBest possible solution: Retain the two selector exclusions and focused regressions, then land through the existing CI gates. Do we have a high-confidence way to reproduce the issue? Current-main selectors demonstrably override skeleton clipping, and the supplied before screenshots show the corresponding visual failure; no target code was executed during this review. Is this the best way to solve the issue? The patch fixes the conflicting selectors at their existing owner while preserving shared animation and resolved-text behavior, making it the smallest complete repair. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 19f4a68b4aaf. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +28. Total +28 across 2 files. Added test files: 0. View PR surface stats
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 Reviewed October 28, 2026, 1:51 AM ET / 05:51 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…6556) * fix: keep attachment loading shimmer inside its skeleton Co-authored-by: steipete <[email protected]> * fix: keep attachment loading shimmer inside its skeleton Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 2c2bece3-1c0d-4f3b-8665-b14392cc4b5d --------- Co-authored-by: steipete <[email protected]>




What Problem This Solves
Fixes the attachment-loading shimmer spilling into empty space beside its placeholder, especially noticeable in mobile chat.
User Impact
Loading highlights stay inside their skeleton shapes. Resolved attachment errors and approval explanations remain readable and can still wrap normally.
Why This Change Was Made
The visible-overflow styles for resolved attachment status text also matched loading skeletons. Limit those styles to non-skeleton metadata in both standalone cards and video galleries, preserving the existing shared shimmer animation.
Evidence
visibleinstead ofhidden) and pass with the fix; all 5 shimmer tests pass. Local wall time: 3.90 seconds initially, 3.21 seconds for the exact-head landing replay; test-specific CI timing not collected.git diff --checkpass.CI qualification
Current-head CI has one failing test:
chat-session-sharing-mobile.test.tsx→keeps sharing busy through refresh and retires it for a same-key successor (event), withsuccessor retires the previous sharing scope: expected false to be true. Ancestral main CI fails with the identical case and assertion. The test, sharing owners, fixture, runtime configuration, manifests, and lockfile are unchanged between that main run and this PR's tested base; the tested merge changes only the two shimmer files. The isolated sharing suite passes locally, which does not repair or erase the CI failure. Security and all selected UI E2E shards pass. Landing uses the repository's guarded pre-existing-failure exception; CI remains recorded as failed.Reported by Peter Steinberger.
Work sessions
Worked on by