Repository navigation
fix(ui): load System busyness only when opened - #148085
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 12:31 AM ET / 04:31 UTC (Revision 8). ClawSweeper reviewWhat this changesLoads the System busyness diagnostics panel on demand while preserving its nonmodal loading frame, minimize controls, dismissal, and retry recovery. Merge readiness✅ Ready for maintainer review This remains a useful startup optimization: current main still eagerly imports the panel implementation. No actionable introduced defect was found, and the latest type-only correction preserves the previously reviewed runtime behavior. Priority: P2 Review scores
Verification
How this fits togetherSystem busyness displays Gateway diagnostics inside the Control UI. The shell handles opening the panel, loads its implementation, and passes control to the diagnostics view without blocking the surrounding workspace. flowchart TD
A[Menu or keyboard request] --> B[Shell load controller]
B --> C[Nonmodal loading frame]
B --> D[Load panel implementation]
C --> E[Minimize or cancel intent]
E --> B
D --> F[Mounted diagnostics panel]
G[Gateway diagnostics] --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +209, Tests +190. Total +399 across 11 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared panel frame and the existing load controller, with diagnostics code deferred until requested and recovery preserving current user intent. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the unnecessary eager load: current main imports the panel implementation during shell startup. No local runtime reproduction was executed. Is this the best way to solve the issue? Yes. Reusing the existing load controller and extracting the shared frame removes the eager implementation dependency while retaining the documented nonmodal experience. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 52b49bb95dfa. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
Merged via squash.
|
* fix(ui): load System busyness only when opened * fix(ui): share the settings sidebar host contract * fix(ui): keep the settings sidebar module type local
Related: #147756
What Problem This Solves
System busyness loaded its implementation during New Session and Chat startup even when the panel was closed, adding code to the startup bundle. A startup-budget failure exposed this unnecessary eager load.
User Impact
The panel implementation loads when opened. Its first-load and error states remain nonmodal: the composer stays usable, and the panel can be minimized, expanded, or closed. Closing it or changing context cancels pending open intent.
No configuration, defaults, data migration, or budget thresholds change.
Why This Change Was Made
The existing lazy-element controller now owns the outer panel load. A shared, eagerly available frame preserves the current panel geometry and controls while its implementation loads. Registration and mounting precede one transfer of the current open mode; outer intent is cleared before the panel can record its own content-recovery action.
Production changes are +246/−72 lines; tests are +212/−22, excluding the generated boot manifest. The added production code owns the nonmodal loading/error frame and request-scoped mode/cancellation that eager registration previously made unnecessary. The eager implementation import is removed; shared framing replaces the duplicated loaded-panel markup.
Evidence
23e1d4991e465c52b7dd876f4fea2df7de915a58, tree01a38020164041941ed21793ee336e47b4083e9e, makesSettingsSidebarModulelocal to its existing owner. The preceding host-contract deduplication removed its last external type consumer; this correction removes only the seven-byteexportmodifier. Independent source review accepted the exact change. A separate native run passed UI production types and canonical script, production and full-tree unused-export scans with zero entries on Linux Node 24.19.0. Source guards, all three retained capture files, final passed outcome, child streams, wrapper and lease verified. Runtime code, generated manifest and budget inputs are unchanged; no build, budget or media replay is claimed. New-head CI/Claw/native preparation are pending.41b66e39069e534938279c14dd4dfcf0f04fb544, tree393c2b3ccb9f94acb21462919040ae6945b6728f, replaced four repeatedShellViewHostdeclarations with the existing settings-sidebar renderer's identical host contract. Its separate native run passed UI production types and targeted file lint. Exact-head CI run 34927409883, attempt 1, finished with 89 successful jobs, 13 skipped jobs, the unused-type-export failure and the derived failed aggregate gate; there was no additional failure. Both dependency/export reports named the same type, and unused-files passed. The tested merge retained the same alias contract while adding an unrelated upstream sidebar skeleton. The failed log remains retained. ClawSweeper Revision 7 reviewed41b66e3with no actionable findings or rank-up moves; that verdict stays bound to its reviewed head.7d8fac0integrated frozen main3fce24dfa62bcda7bcdfa0567339063bc2c6202c, including the landed canonical Docker fixture correction. Independent final-byte review and fresh P0–P2 autoreview accepted that integration. Its exact-head CI run 34925490257, attempt 1, finished with 89 successful jobs, 13 skipped jobs, one lint failure and the derived failed aggregate gate. The tested merge4db4654badded three inherited settings-sidebar inputs, producing 703 counted lines against the unchanged 700-line limit. The current shared host contract removes four net lines without suppressing the rule. The failed log remains retained. ClawSweeper Revision 6 reviewed7d8fac0with no actionable findings or rank-up moves; that verdict remains labeled to its reviewed head./newand/chatmanifest generation, grouped UI build, unchanged performance enforcement, and all five generated-chunk tests. Startup JS measured 356,415 B gzip against 362,588 B, with zero violations on Linux Node 24.19.0. Startup CSS was 47,655 B: above the advisory target, below the 51,200 B hard ceiling. The 362,012 B committed baseline and existing 512 B growth plus 64 B variance allowances are inherited unchanged. All child streams, archive capture, wrapper, and lease closed successfully. The earlier failed lint receipt and its two passed type stages remain separate; no type replay or baseline edit is claimed.554176f59b736a23601cb87f3f1c0ef94b7395c6passed independent source review and scoped autoreview. Its CI passed (run 34821028725, attempt 1). The old-head review requested conflict resolution and integrated startup proof; the reconciliation below addresses those items. Historical loading/recovery results retain their source labels.8948737a2abbc62d5b3afc5277c0465fcfe7ee32reconciled main9bfbb6dband passed independent source/generated-byte review plus the exact-head ClawSweeper review, Revision 4 on September 14, with no actionable findings or rank-up moves. Its CI run 34829756736, attempt 1, finished with 86 successful jobs, 13 skipped jobs, three test failures and the derived failed aggregate gate. The inherited Docker fixture mismatch was corrected by #148129, landed asabbdd528. The two Gateway timeout causes remain unresolved; their test blobs matched the tested base and their fixtures disabled Control UI, which does not establish a cause or waive those failures. All original logs are retained.8948737areconciliation native run passed affected-frame lint, canonical ready/newand/chatmanifest generation, grouped UI build, the enforcing performance check, and all five generated-chunk tests. Startup JS measured 357,311 B gzip against the inherited current 362,588 B enforcement limit, on Node 24.19.0. Main had independently updated its committed baseline to 362,012 B and nominal cap to 354 KiB; this PR makes no budget edit. Startup CSS was 48,616 B, above the advisory target but below the 51,200 B hard ceiling. The native wrapper, all child streams and lease closed successfully./newand/chatexpanded/minimized geometry, editable-composer and nonmodal checks. Explicit tooltip dismissal followed by frame-focused Escape passed on both revisions and routes. Five generated-chunk contract tests also passed.diagnostics.lanesresponse; the expanded diagnostics renderer received{}. The fixture now supplies the existing idle-lane response, with every assertion retained. The corrected continuation passed exactly those two cases, with 19 unselected, on carrier1190da24/ tree6fee777fusing the retained generated manifest. Its native wrapper and owned cleanup completed with exit 0; the preceding failed run remains retained separately.39f2a58a; comparison after captures bind candidate carrier8ed100bd/ tree149a2ad4. Expanded comparison images establish loading geometry, not fully loaded diagnostics. Browser proof uses a mocked Gateway and does not establish live-provider or full-release behavior.The standalone UI change must land before the P08 branch consumes it and qualifies the resulting combined source.
Paired captures below bind baseline
39f2a58aand candidate8ed100bd/ tree149a2ad4. Each pair was captured separately and is byte-identical; it therefore shares one uploaded image. Expanded images show loading/skeleton geometry. Interaction assertions separately covered the editable composer and tooltip/frame Escape ownership. All four uploaded images were read back publicly with HTTP 200 and exact inspected PNG hashes after publication.39f2a58a8ed100bd