Repository navigation
perf(ui): load Agents styles with the lazy page - #172033
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 14, 2026 10:23
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Agents-only layout, identity, file-preview, tool, and skill styles ship in the startup stylesheet even though the Agents page is lazy.
Solution and Impact
Move those rules into the existing lazy
agents.cssstylesheet. Shared controls stay in the startup stylesheet, and the existing imports keep the same loading boundary and request count. Remove eight declarations that are already overridden on the rendered baseline. Two existing browser fixtures includeagents.cssso their assertions keep exercising the same styles.Startup CSS is 3,321 B gzip smaller (6.68%). Tags, classes, routes, interactions, and appearance are unchanged. Production LOC across the three stylesheets is 7,129 → 7,115 (−14); the two fixture imports add two test lines.
Evidence
Same-machine builds and strict performance checks against
a97192d2556b:Raw startup JS is unchanged; its 20 B gzip difference is asset-hash/compression variation. Both strict checks pass. This PR alone remains 294 B above the 46,080 B CSS advisory target. The combined result with the separate sidebar-style cleanup will be measured after landing; gzip savings are not assumed additive.
The targeted browser capture covers identity, workspace, file editing, markdown preview, expanded tools, and skills at 1440×960 and 390×844. All 12 before/after pairs are pixel-identical, with zero changed pixels across 10,269,360 pixels, zero sampled computed-style/geometry changes, and no page errors. All 24 full captures were inspected and contain synthetic data only.
Candidate
266411836ea1merges current main, including the landed titlebar fixture repair from #171808. The authored five-file stylesheet/fixture patch remains unchanged. Final-head UI typecheck and production Knip passed; full PR CI 38576969393 completed SUCCESS on this exact head, including every UI unit/E2E, browser-extension, and real-Gateway shard. The context check passed after its heading was corrected to Evidence.Previous full PR CI 38549225781 completed on
27a1e51068188withci:full; all checks passed exceptControl UI lazy custom-element recovery > recovers the native titlebar visibly after its chunk fails. That fixture allowed automatic reload to overtake its manual Retry assertions. The landed repair holds successful document probes until Retry completes and retains the reload, toolbar, and navigation assertions. This PR consumes that repair from main, with no inherited-failure exception.The single form-controls recovery changed neither source nor assertion timeouts; all original proof processes are joined. No local full suite, E2E battery, or parity suite was run. Successful builds use the supported
NODE_DISABLE_COMPILE_CACHE=1setting after the original baseline build stalled in optional Node compile-cache persistence. That setup failure was interrupted and joined; no build-time speedup is inferred from host wall times. No remote lease remains.Screenshots