Skip to content

refactor(ui): use draft store updates for cron scratch - #179976

Merged
steipete merged 2 commits into
mainfrom
solid2/w-s2-cron-scratch-state
Oct 22, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-s2-cron-scratch-state

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,939 1 → 1 12 → 12 2 → 2 2 → 2 22 → 22 4 → 3 0 → 0 1 → 1 1 → 1 0 → 0
remaining pages except chat 268 / 54,521 → 54,521 4 → 4 29 → 29 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.

Cron scratch editing copied the entire presentation object for each field update. Use one createStore and draft setters so field reads track the fields they display. The existing plain synchronous pending guard still admits Gateway work; revision conflicts, permission/scope retirement, redaction, and all rendered markup stay unchanged.

Production LOC: 217 → 230 (+13). The growth comes from multiline draft setters replacing whole-object spread updates; this adds no state, owner, abstraction, or RPC. The sanitized metadata copy remains necessary so raw scratch text cannot enter diagnostics.

This is the state-shape stage only. Native async read/action presentation is a named follow-up, not an exception or a completion claim.

Touched-file checklist Before After
1. Native binding hazards 0 0
2. Component onCleanup 0 0
3. Native async read memos 0 0; follow-up remains
4. Native actions 0 0; follow-up remains
5. Manual component loaders 0 0
6. Copied structured signal seeds 1 0
7. createComponent calls 0 0
8. Throwing context wrappers 0 0
9. Independent sibling Loading 0 0
10. Root/owner APIs 0 0
Proof Result
Frozen install / Solid rc.16 Passed
UI tsrs Passed
Focused existing behavior suite, one worker 11/11 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 (17m34s)
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,969 B +6 B
Startup CSS (1 request) 40,796 B 40,796 B 0 B
Chat boot JavaScript 1,441,618 B 1,441,649 B +31 B
New Session boot JavaScript 1,020,038 B 1,020,054 B +16 B

The paired build uses identical version metadata. Startup remains below the 325,000 B cap, and all displayed JavaScript raw-byte totals are identical; gzip deltas remain within the 64 B build-variance allowance. Locale catalog differences are at most 2 B.

Main integration: head076e2f00a6b1 merges main7be1bee9e356. Both the original and resulting scratch-editor source blobs match, and the complete owned patch is identical. Frozen install passed; prior focused proof remains applicable. The integrated head completed full CI; exact inherited failures are recorded below. The old boot-only inherited-failure packet is withdrawn because the latest scheduled main does not fail that test.

Current-head CI attribution

Full CI 39702593663 completed for 076e2f00a6b1e3f384efc239f39b505e903de9ce. 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-22T01:00:47.468261Z 076e2f0 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:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature 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 612a2e1fcd4668ded22bc40f3e5e9f7266675566, but the PR head is now 076e2f00a6b1e3f384efc239f39b505e903de9ce. 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:35:27.864Z sha 612a2e1 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 22, 2026
@steipete
steipete merged commit d131ab9 into main Oct 22, 2026
102 of 109 checks passed
@steipete
steipete deleted the solid2/w-s2-cron-scratch-state branch October 22, 2026 01:55
@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: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant