Skip to content

fix: keep attachment loading shimmer inside its skeleton - #186556

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/plaid-shrimp
Oct 28, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/plaid-shrimp

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Browser regression: both standalone and gallery cases fail on the original CSS (visible instead of hidden) 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.
  • Actual bundled Control UI with a mocked Gateway: reproduced before and verified after at 390px/dark and 1280px/light, including the transition to a readable error reason. Before/after screenshots, sampled at the same animation time; representative mobile comparison also delivered in chat.
  • CSS lint, TypeScript lint, formatting, targeted UI-test typecheck, and git diff --check pass.
  • Independent P0–P2 autoreview and hosted review: no actionable findings.
  • Smallest-fix review: two selector changes, no new production state or animation owner; 28 regression-test lines. Chromium mobile viewport proof, not a physical iPhone/Safari test.

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), with successor 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

roboclaw-bot and others added 2 commits October 28, 2026 05:31
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 2c2bece3-1c0d-4f3b-8665-b14392cc4b5d
@clawsweeper

clawsweeper Bot commented Oct 28, 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

Before and after

Real 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 px

Before

Mobile dark before: highlight leaks beyond the skeleton

After

Mobile dark after: highlight remains clipped inside the skeleton

Desktop light — 1280 px

Before

Desktop light before: highlight leaks beyond the skeleton

After

Desktop light after: highlight remains clipped inside the skeleton

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 28, 2026 05:36
@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: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Exclude 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.

  • Before: The animated highlight extends beyond the rounded metadata placeholder.
  • After: The highlight stays inside the placeholder while resolved status text retains normal wrapping.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused repair with directly inspected visual proof, distinct browser regressions, and no introduced defect found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The bundled Control UI exercised a synthetic pending video attachment with mocked Gateway metadata; inspected mobile-dark and desktop-light before/after screenshots directly demonstrate the corrected clipping.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Attachment-loading highlights visibly spill beyond their placeholder shapes.
Reason: The maintainer-authored direction repairs a demonstrated visual defect with two selector changes and preserves intentional status-text wrapping.

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
Reviewed head: 899b389d89c91efba91dbe41b13313c5565cb02a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Gallery attachment-status overflow keeps the original intent (6de8adb: Keep failed video-preview fallback cards and their status explanations readable within gallery tiles.)
  • Standalone blocked attachment-status layout keeps the original intent (310cc29: Give unavailable attachment cards readable status and cause text while retaining existing recovery controls.)
  • Shared skeleton animation keeps the original intent (5eb62b7: Move a clipped pseudo-element with transform so loading highlights avoid continuous repainting.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e3a2d48 adds ui/src/styles/shimmer.browser.test.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e3a2d48421bc; files: ui/src/styles/shimmer.browser.test.ts)

PR surface

Source 0, Tests +28. Total +28 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 2 0
Tests 1 28 0 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 30 2 +28

Labels

Label changes:

  • add P3: This fixes a cosmetic loading-animation defect without changing attachment delivery, recovery actions, or stored state.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This fixes a cosmetic loading-animation defect without changing attachment delivery, recovery actions, or stored state.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • 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.

Reviewed October 28, 2026, 1:51 AM ET / 05:51 UTC.

@roboclaw-bot
roboclaw-bot merged commit c14ee71 into main Oct 28, 2026
173 of 176 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/plaid-shrimp branch October 28, 2026 06:41
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
…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]>
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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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