Repository navigation
chore(ui): restore main's core lint and startup budget - #148010
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. |
|
landpr-approve-admin-merge |
|
Codex review: blocked before merge. Reviewed September 14, 2026, 3:35 AM ET / 07:35 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR splits oversized sidebar and chat tests while preserving their registration, and refreshes the Control UI’s compressed JavaScript baseline and cap. Merge readiness⛔ Blocked before merge - 1 item remains The focused cleanup remains useful on current main, with no actionable correctness findings. The earlier upgrade-proof blocker does not apply to build-policy metadata and test extraction. The overlapping open PR is not a viable superseding target. Priority: P3 Review scores
Verification
How this fits togetherControl UI checks measure built browser assets against repository budgets and run UI regression tests through shared or isolated runners. This change adjusts the size policy and reorganizes tests without changing application behavior. flowchart TD
A[Built browser assets] --> B[Performance checker]
C[Baseline and size cap] --> B
B --> D[Size report and CI result]
E[Sidebar and chat regression cases] --> F[Test registration]
F --> G[Shared or isolated runners]
G --> D
Before merge
Agent review detailsSecurityNone. PR surfaceTests +35, Other 0. Total +35 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one measured startup-budget policy and preserve the existing regression coverage through the canonical test runners. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: this is check maintenance. The body supplies before/after lint and production-size results; this review verified source and routing without executing tests. Is this the best way to solve the issue? Yes. The extraction preserves existing cases and isolation, and the documented budget refresh uses the existing checker without adding a competing policy or changing runtime loading. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 43bf86e1ef4f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Main fails its startup check: 362,012 B exceeds 361,938 B. Use the approved 1 KiB cap increase for scoped catalog invalidation (#147845), remote workspaces (#147773), and update-status feedback (#147883). Deferring the new workspace labels saved only 64 B and still failed at 361,952 B. Baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.
8591761 to
549b81b
Compare
|
landpr-approve-admin-merge |
|
Proof: CI passed core lint and startup-size checks.
|
* commit 'a08cdc50bc049074ed7ad2db9e18e0ed3f5415ec': (81 commits) perf: reuse stateless plugin scope defaults (#148080) fix(gateway): flush slow-consumer 1008 close frame before terminating socket (#147707) fix: keep model catalogs loading during other session updates (#147878) fix: show queued external chat messages and their source (#147848) refactor(chat): share math label configuration (#148073) perf(ui): trim eager debug overlay icon payload (#147954) improve(logbook): sample batch frame metadata in SQLite (#147999) fix(ui): dismiss suggested task cards without waiting (#148021) fix(maturity): cover governance, interoperability, fleet, and state (#143528) chore(ui): restore core lint and startup budget checks (#148010) fix: chat startup loads unnecessary session setup text (#147973) perf: speed up fresh cloud worker activation (#147945) fix: recover PR preparation after committed merge conflicts (#148063) test(plugins): isolate ClawHub Docker fixture identity (#148074) fix(release): acknowledge ClawHub risk on moving installs (#148041) fix: restore context reads for installed official Discord and Slack plugins (#143341) fix: identify source capsule filesystem failures (#147778) fix(linux): keep Quick Chat widgets bound to their Gateway (#146049) refactor(infra): consolidate update campaign reset ownership (#146555) refactor: simplify Gateway health response parsing (#147834) ...
* commit '7d485aa2e89af7fdbd09e8ed0489b06d250b07e3': test(scripts): check the configurable ClawHub sweep spec fix: show queued external chat messages and their source (openclaw#147848) refactor(chat): share math label configuration (openclaw#148073) perf(ui): trim eager debug overlay icon payload (openclaw#147954) improve(logbook): sample batch frame metadata in SQLite (openclaw#147999) fix(ui): dismiss suggested task cards without waiting (openclaw#148021) fix(maturity): cover governance, interoperability, fleet, and state (openclaw#143528) chore(ui): restore core lint and startup budget checks (openclaw#148010) fix: chat startup loads unnecessary session setup text (openclaw#147973) perf: speed up fresh cloud worker activation (openclaw#147945) fix: recover PR preparation after committed merge conflicts (openclaw#148063) test(plugins): isolate ClawHub Docker fixture identity (openclaw#148074) fix(release): acknowledge ClawHub risk on moving installs (openclaw#148041) fix: restore context reads for installed official Discord and Slack plugins (openclaw#143341) fix: identify source capsule filesystem failures (openclaw#147778) fix(linux): keep Quick Chat widgets bound to their Gateway (openclaw#146049) refactor(infra): consolidate update campaign reset ownership (openclaw#146555) refactor: simplify Gateway health response parsing (openclaw#147834)
AI-assisted. ## What Problem This Solves Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since openclaw#147610), the chat transcript controller test (over the 1,000-line rule since openclaw#147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after openclaw#147845, openclaw#147773 and openclaw#147883). ## Why This Change Was Made These repairs belong on main, in one PR. - Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged. - Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner. - Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows openclaw#147574 and openclaw#146526. ## User Impact None. No product behavior or asset changes. ## Evidence - Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass. - Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass. - Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass. ## Compatibility Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged. ## Consumers The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Main fails its own structural checks, so every open PR is red:
check-lint-core-2(the sidebar session-ownership test helper is over the 700-line rule since #147610), the chat transcript controller test (over the 1,000-line rule since #147612), andcontrol-ui-performance(startup JS gzip 362,012 B exceeds the 361,938 B limit after #147845, #147773 and #147883).Why This Change Was Made
These repairs belong on main, in one PR.
session-ownership.tsinto a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.User Impact
None. No product behavior or asset changes.
Evidence
pnpm ui:check-performance:base <main>fails before the policy refresh and passes afterward. 552 focused tests pass.Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.
Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.