Skip to content

refactor(ui): pair Custodian surface cleanup with settled lifecycle - #179986

Merged
steipete merged 2 commits into
mainfrom
solid2/w-s2-custodian-surface-lifetime
Oct 22, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-s2-custodian-surface-lifetime

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Page family Files / production LOC (base → head) 1. Suspect native bindings 2. onCleanup 3. Async memos 4. Actions 5. Dynamic imports 6. Structured signal seeds 7. createComponent 8. Context factories 9. Reveal 10. Root/owner APIs
agents/config/sessions 117 / 26,103 → 26,103 3 → 3 3 → 3 10 → 10 12 → 12 6 → 6 1 → 1 0 → 0 0 → 0 0 → 0 0 → 0
new-session/providers/setup/channels/cron/skills 201 / 42,926 → 42,926 1 → 1 12 → 12 2 → 2 2 → 2 22 → 22 4 → 4 0 → 0 1 → 1 1 → 1 0 → 0
remaining pages except chat 268 / 54,521 → 54,519 4 → 4 29 → 28 1 → 1 3 → 3 43 → 43 11 → 11 20 → 20 0 → 0 0 → 0 0 → 0

Whole page-scope AST census at exact merge base 4a5d689c1a7451adad2f4d91512cbef4ddbd8dcf and this candidate. These are raw observations, not outstanding-debt counts: async memos/actions/Reveal count adoption; dynamic imports include required route and plain-owner boundaries; handler/cleanup/structured-seed hits require their source contract. Active overlapping families remain owned by their existing PRs. The separate ownership audit was refreshed against main 6b2468dc3be.

What Problem This Solves

CustodianSurface registered its input bridge in onSettled but disposed its textarea overflow observer and Markdown renderer in a separate component onCleanup. Return those disposals from the existing settled lifecycle, leaving a single owner for the mounted surface.

Production LOC: 593 → 591 (−2). The external DOM synchronization effect remains; markup, copy, styles, selectors, routes, and request ownership are unchanged.

Touched-file checklist Before After
1. Native binding hazards 0 0
2. Component onCleanup 1 0
3. Native async read memos 0 0
4. Native actions 0 0
5. Manual component loaders 0 0
6. Copied structured signal seeds 0 0
7. createComponent calls 0 0
8. Throwing context wrappers 0 0
9. Independent sibling Loading 0 0
10. Root/owner APIs 0 0

Evidence

Proof Result
Frozen install / Solid rc.16 Passed
UI tsrs Passed
Focused existing behavior suite, one worker 3/3 passed; default pinned Bun, one worker
Typed UI lint / format / whitespace Passed
Independent P0–P2 autoreview Passed; no actionable findings
Production Knip Passed; zero findings
Exact-base/head build and strict paired performance Passed; zero violations or warnings

No visual surface changed: no markup, copy, CSS, selector, or layout delta. No new screenshots or visual redesign claim. Full ci:full results have been reviewed; exact inherited failures are recorded below.

Exact-base paired surface Base gzip Head gzip Delta
Startup JavaScript 324,963 B 324,967 B +4 B
Startup CSS (1 request) 40,796 B 40,796 B +0 B
Chat boot JavaScript 1,441,618 B 1,441,621 B +3 B
New Session boot JavaScript 1,020,038 B 1,020,041 B +3 B

Identical version metadata; startup stays below 325,000 B. All paired raw-byte surface totals are identical, and gzip deltas remain within the 64 B build-variance allowance.

Current-head CI attribution

Full CI 39701635716 completed for b77e513e8fdc3648e740ec55d37565c1c3d0a6f9. Its only failing tests are:

  • Chat header and delegated work > keeps new batches collapsed until Subagents is opened manually without duplicate wait status
  • Control UI plugin sidebar order mocked Gateway E2E > reorders plugin sidebar tabs and keeps the order after reload

Every name also fails in the latest completed scheduled main 39703131373, UI4 job119577131374, at c538e280e80842e5bac887e2178b9df0c6ba1c2a. All other jobs passed or were skipped. The actual CI checkout, its ordered parents, reconstructed merge tree, and unchanged failing-test blobs were verified. Native inherited-failure admission retains the failed result; it does not report CI as green.

@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 complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

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 ✅ Completed 2026-10-22T00:48:02.984395Z b77e513 New commits
ℹ️ 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head b9853a2f6e1dee41109613e37dc486f57480bf37, but the PR head is now b77e513e8fdc3648e740ec55d37565c1c3d0a6f9. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-21T22:46:47.064Z sha b9853a2 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 22, 2026
@steipete
steipete merged commit d20b7fb into main Oct 22, 2026
106 of 109 checks passed
@steipete
steipete deleted the solid2/w-s2-custodian-surface-lifetime branch October 22, 2026 01:58
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant