Skip to content

refactor(ui): load system busyness with Solid lazy - #179743

Merged
steipete merged 1 commit into
mainfrom
solid2/w-s2-debug-overlay-lazy
Oct 21, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-s2-debug-overlay-lazy

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Whole assigned-scope raw syntax at de67c8ec499a80d60832d035ff515de4e74073cc. COMP-A/B components are excluded; all assigned non-chat pages plus app/lib/plugins/API are included. Raw syntax is not outstanding debt: stable handler factories, primitive cleanup, imperative integrations, active lane ownership and foreign-DOM roots are classified separately. Items 3–4 still await the canonical recipe.

Family Files LOC 1 handler expressions 2 cleanup 3 async memos 4 actions 5 imports 6 structured seeds 7 factories 8 contexts 9 Reveal 10 roots
solid 59 7847 4 10 0 0 3 0 0 0 0 1
config 23 5031 0 0 0 0 0 1 0 0 0 0
menus 46 8248 0 5 0 0 3 2 2 0 0 0
rest 135 19926 4 23 2 0 6 2 0 2 0 0
pagesA 112 25428 3 3 6 6 6 1 0 0 0 0
pagesB 198 42233 1 13 1 0 21 4 0 1 0 0
pagesC 268 54434 4 35 1 3 42 13 20 0 0 0
app 191 31564 2 3 0 0 67 1 0 1 0 0
lib 346 54479 0 5 0 0 12 1 3 1 0 2
plugins 19 3987 0 3 0 1 13 1 0 0 0 2
api 12 2104 0 0 0 0 2 0 0 0 0 0
total 1409 255281 18 100 10 10 175 26 25 5 0 5

Additional owner calls: 3 getOwner and 8 runWithOwner.

What Problem This Solves

The System busyness overlay still keeps its lazy module and import failure in separate rendering signals. This replaces that remaining manual loader with Solid 2's native lazy boundary.

User Impact

No intended visible change. The overlay keeps its current expanded/minimized loading UI, retry and stale-chunk reload behavior, dismissal, warm reopen reset, and nonmodal frame.

Why This Change Was Made

lazy() owns the cached renderer; <Loading> and <Errored> render its pending and failure states. The existing request identity and stale-chunk recovery owner continue to decide whether a reload remains authorized after dismissal. A plain successful-load fact avoids writing recovery intent on warm reopens. The keyed reopen boundary still retires old diagnostics, while mode changes retain the same content.

The content module and its dynamic import remain behind the same lazy host boundary. The imperative frame-layout import remains owned by the frame.

Evidence

Check Result
Frozen install Passed on the pinned rc.16 base
pnpm tsgo:ui (tsrs) Passed
Focused default-Bun tests, --maxWorkers=1 2 files, 10 cases passed once
Single-file lint, format, diff check Passed
Production Knip Exact base and head report only the same 3 server cron/Gateway unused files; source restored
Isolated P0–P2 autoreview Passed, scoped-clean
Paired build and strict performance Both passed; paired strict check reports no violations
Broad integration ci:full includes every UI, E2E, extension, and real-Gateway shard

The focused suites cover status retention, hidden-read deferral, minimize/expand, close/reopen history reset, pending-read retirement on reconnect/source replacement, and scope-limited diagnostics. Existing lazy-custom-element-recovery.e2e.test.ts covers held/failing content chunks, outer-host chunk deferral, nonmodal mode changes and stale reload recovery; those run in full CI. No local E2E or parity suite was run. No layout, style, text or selector is changed, so no visual baseline was generated for this refactor.

gzip B Base Head Delta
Startup JS 325234 325279 +45
Startup CSS 40794 / 1 request 40794 / 1 request 0
Chat boot JS 1497765 1497776 +11
New-session boot JS 1020679 1020703 +24
Locales 3097290 3097283 -7

The base already exceeds the 325000 B startup cap; head must stay within the 64 B comparison allowance. The former campaign ceiling is not used.

Touched-file checklist Before After
1 unstable native handlers 0 0
2 component onCleanup 0 0
3 hand-rolled domain reads 0 0
4 domain mutations 0 0
5 manual component loaders / native lazy boundaries 1 / 0 0 / 1
6 copied structured signals 0 0
7 manual JSX factories 0 0
8 throwing context wrappers 0 0
9 uncoordinated sibling loading regions 0 0
10 owner-root APIs 0 0

Production LOC: 214 → 204 (−10); test LOC unchanged. Two rendering signals and a disposal flag are removed. No new abstraction or dependency. Whole-scope census above is pinned to this PR's base and records raw syntax; it is not a completion claim. Async-read/mutation recipe adoption remains assigned follow-up work using the now-landed canonical recipe.

Completed CI attribution

Job Exact failing test name Baseline evidence
119371689503 keeps the previous chat mounted without redundant startup through creation and admission Same exact test name fails at initial Previous transcript assertion with provider-setup text on actual CI main parentd79cee56, using default pinned Bun. No root cause or deterministic-flake claim.
119371689882 compact identity menu > keeps common actions visible with nine native gateways and opens an unclipped keyboard switcher Exact same test name and unclipped assertion fail on completed scheduled main39644558400.
119371689672 Control UI native-nav sidebar toggle E2E > hosts navigation, search, sessions, and history in web titlebar chrome Exact same test name and visibility assertion at465 fail on completed scheduled main39644558400.

Full ci:full run 39642965908 completed with the failures above. Latest completed scheduled baseline: 39644558400. All remaining failures are attributed by exact test name. Local focused proof remains passing; CI is not relabeled green. The native inherited-failure route retains the failed result and complete evidence.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-21T17:20:52.399891Z ef2de1e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@steipete
steipete merged commit 2a5eb68 into main Oct 21, 2026
105 of 112 checks passed
@steipete
steipete deleted the solid2/w-s2-debug-overlay-lazy branch October 21, 2026 18:46
@steipete

Copy link
Copy Markdown
Contributor Author

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

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 ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:feature Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant