Skip to content

fix(ci): deduplicate Control UI skeleton styles - #133787

Merged
fuller-stack-dev merged 1 commit into
mainfrom
fix/control-ui-css-budget-regression-20260830
Aug 31, 2026
Merged

fuller-stack-dev merged 1 commit into
mainfrom
fix/control-ui-css-budget-regression-20260830

Conversation

@fuller-stack-dev

Copy link
Copy Markdown
Member

Summary

  • restore the Control UI CSS performance gate without raising its budget
  • share the identical attachment and model-picker skeleton palette declarations
  • keep the attachment loading geometry and offline-safe static styling unchanged

Root cause

PR #133628 moved attachment loading styles into the boot stylesheet. Its parent passes the existing limit, while that exact merge and current main produce a 54,809-byte largest CSS sidecar against the 54,784-byte limit. The boot sheet then held two copies of the same skeleton palette.

The patch declares that palette once and expresses the same loading geometry with fewer declarations. The 53.5 KiB limit remains unchanged.

Verification

  • pnpm ui:build passes; the largest CSS sidecar is 54,781 bytes
  • focused UI tests pass: 3 files, 256 tests
  • pnpm check:changed passes
  • source-blind behavior contract passes: 4 clauses, 0 findings
  • structured autoreview reports no blocking findings

Negative control: unmodified canonical main at 8249fd61a9183a14063278741093645f8f3b238f fails the same build at 54,809 bytes. Later base movement through 10f5ef53cdc1619d9a8271c66c71ad6e83892934 does not touch UI styles, the performance checker, or dependencies.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@fuller-stack-dev fuller-stack-dev self-assigned this Aug 31, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 31, 2026, 12:48 AM ET / 04:48 UTC.

ClawSweeper review

What this changes

The branch shares identical skeleton palette variables between attachment checking and model-picker loading, and shortens attachment-loading CSS to restore the existing Control UI CSS-size budget.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer PR open for the existing P2 proof follow-up. The CSS deduplication targets a real current-main build-budget path, but the supplied after-fix clips document terminal build output rather than the attachment-checking and model-loading UI states whose geometry is also rewritten.

Priority: P2
Reviewed head: 75e1013dff845cf89efdd09ae413fd94b7cefb7f

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused CSS repair and build-gate evidence are useful, but the outstanding rendered-UI proof leaves the visual-equivalence claim unverified.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The contributor is a repository MEMBER, so the external-contributor proof gate does not apply; nevertheless, the scoped Control UI policy and prior review require direct built-UI evidence for these user-visible skeleton changes, which the supplied terminal clips do not provide.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor is a repository MEMBER, so the external-contributor proof gate does not apply; nevertheless, the scoped Control UI policy and prior review require direct built-UI evidence for these user-visible skeleton changes, which the supplied terminal clips do not provide.
Evidence reviewed 6 items Introduced stylesheet change: The PR shares the two skeleton color variables, while also changing the attachment skeleton’s containment and logical geometry declarations.
Current-main need remains: Fetched current main retains the separate palette declarations and pre-PR attachment geometry, so the requested CSS-budget repair is not already implemented there.
Consumers and existing behavioral coverage: The attachment-status renderer emits the checking skeleton and the model picker emits its loading skeleton; the existing browser test measures attachment skeleton dimensions and preserves the final-action width.
Findings 1 actionable finding [P2] Attach rendered proof for the rewritten loading geometry
Security None None.

How this fits together

The Control UI chat stylesheet controls loading placeholders for attachment availability checks and the model picker. It is bundled into the browser CSS sidecar, whose compressed size is checked during the UI build.

flowchart LR
  A[Chat loading state] --> B[Attachment skeleton]
  A --> C[Model picker skeleton]
  B --> D[Shared skeleton palette]
  C --> D
  D --> E[Control UI stylesheet]
  E --> F[CSS size gate]
Loading

Before merge

  • Attach rendered proof for the rewritten loading geometry (P2) - The new CSS rewrites the attachment placeholder’s containment, logical sizing, and positioning while moving the shared palette. The supplied clips show ui:build output only; they do not exercise the checking attachment or triggerLoading model picker. Attach a sanitized built-Control-UI screenshot or short video covering both states, as required by the Control UI guide and the prior review.
  • Resolve merge risk (P1) - The two components have different layout ancestors; terminal build output cannot establish that the rewritten attachment placeholder still matches its rendered dimensions or that both skeletons retain the intended palette.
  • Complete next step (P2) - The remaining blocker is contributor or maintainer visual evidence, not a safe automated code repair.

Findings

  • [P2] Attach rendered proof for the rewritten loading geometry — ui/src/styles/chat/layout.css:1666-1687
Agent review details

Security

None.

PR surface

Source -3. Total -3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 7 10 -3
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 10 -3

Review metrics

Metric Value Why it matters
Production versus test delta production net -3; tests 0 The repair reduces shipped stylesheet bytes rather than raising the established CSS budget.

Mantis proof suggestion

A redacted Control UI chat capture of the two loading states would directly settle the remaining visual-equivalence question. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis verify the built web UI shows equivalent skeleton palette and geometry for an attachment availability check and a loading model picker; return redacted screenshots or transcript evidence.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the shared palette rule and attach a sanitized built-Control-UI screenshot or short video showing both the checking attachment card and loading model trigger before merge.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the shared palette rule and attach a sanitized built-Control-UI screenshot or short video showing both the checking attachment card and loading model trigger before merge.

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

Yes. pnpm ui:build exercises the checker that rejects the largest CSS sidecar, and current main retains the duplicated declarations; this read-only review did not execute the build.

Is this the best way to solve the issue?

Yes, conditionally. Sharing the identical palette is the narrowest repair, but rendered Control UI evidence is still needed before accepting the accompanying geometry rewrites as equivalent.

Full review comments:

  • [P2] Attach rendered proof for the rewritten loading geometry — ui/src/styles/chat/layout.css:1666-1687
    The new CSS rewrites the attachment placeholder’s containment, logical sizing, and positioning while moving the shared palette. The supplied clips show ui:build output only; they do not exercise the checking attachment or triggerLoading model picker. Attach a sanitized built-Control-UI screenshot or short video covering both states, as required by the Control UI guide and the prior review.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 072aabb19a1c.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded Control UI build-budget regression with an outstanding visual-proof follow-up.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The contributor is a repository MEMBER, so the external-contributor proof gate does not apply; nevertheless, the scoped Control UI policy and prior review require direct built-UI evidence for these user-visible skeleton changes, which the supplied terminal clips do not provide.

Evidence

What I checked:

  • Introduced stylesheet change: The PR shares the two skeleton color variables, while also changing the attachment skeleton’s containment and logical geometry declarations. (ui/src/styles/chat/layout.css:1666, 75e1013dff84)
  • Current-main need remains: Fetched current main retains the separate palette declarations and pre-PR attachment geometry, so the requested CSS-budget repair is not already implemented there. (ui/src/styles/chat/layout.css:1666, 072aabb19a1c)
  • Consumers and existing behavioral coverage: The attachment-status renderer emits the checking skeleton and the model picker emits its loading skeleton; the existing browser test measures attachment skeleton dimensions and preserves the final-action width. (ui/src/e2e/chat-flow.media-files.e2e.test.ts:507, 75e1013dff84)
  • Budget owner: The UI performance checker rejects a largest CSS asset whose gzip bytes exceed the fixed budget; the budget is 53.5 KiB. (scripts/check-control-ui-performance.mts:45, 75e1013dff84)
  • Prior finding remains unmet: The prior ClawSweeper review asked for a built-UI capture of both changed loading states. The follow-up evidence explicitly describes its two clips as cropped Terminal build output, so it does not show rendered palette or geometry parity.
  • Area history: Recent merged history shows the affected stylesheet was last materially changed with the related Control UI work in commit 8715e87; it is the most relevant routing context for this follow-up. (ui/src/styles/chat/layout.css:1666, 8715e87f666c)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach sanitized built-Control-UI proof of both the attachment-checking skeleton and the model-picker loading skeleton.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-31T04:32:09.337Z sha 899cf2627b5a011333e74c281d44861d6122ea55 :: found issues before merge. :: [P2] Attach built-UI proof for the rewritten skeleton geometry

@fuller-stack-dev

fuller-stack-dev commented Aug 31, 2026 •

Copy link
Copy Markdown
Member Author

Evidence

Base 8249fd61a9183a14063278741093645f8f3b238f is red. pnpm ui:build exits 1 at 54,809 bytes against the unchanged 54,784-byte largest-CSS limit.

control-ui-css-budget-red.mp4

Exact head 75e1013dff845cf89efdd09ae413fd94b7cefb7f is green. The same command exits 0 at 54,781 bytes with the same limit.

control-ui-css-budget-green-75e1013d.mp4

Proof manifest, contract, checksums, and summary

The videos are cropped to the Terminal content area and contain no local path or credential. The focused UI run passed 3 files and 256 tests. The exact E2E file that rejected the first head now passes all 16 cases. pnpm check:changed, source-blind behavior validation, and structured review also passed.

@fuller-stack-dev
fuller-stack-dev force-pushed the fix/control-ui-css-budget-regression-20260830 branch from 899cf26 to 3c5bd80 Compare August 31, 2026 04:41
@fuller-stack-dev
fuller-stack-dev force-pushed the fix/control-ui-css-budget-regression-20260830 branch from 3c5bd80 to 75e1013 Compare August 31, 2026 04:41
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 31, 2026
@fuller-stack-dev
fuller-stack-dev merged commit 9713ad9 into main Aug 31, 2026
100 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the fix/control-ui-css-budget-regression-20260830 branch August 31, 2026 04:50
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant