Skip to content

refactor(ui): present runtime reads and raw commands with Solid - #180591

Merged
steipete merged 1 commit into
mainfrom
solid2/pages-a-runtime-replacement
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/pages-a-runtime-replacement

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Family Files before→after Production LOC before→after 1 handlers 2 lifecycle 3 reads C/E/U/N before→after 4 commands C/E/U/N before→after 5 lazy 6 collections 7 JSX 8 context 9 Reveal 10 owner APIs
Agents editor / non-memory 28→28 6,398→6,398 0→0 0→0 0C/0E/0U/12N→0C/0E/0U/12N 1C/0E/0U/6N→1C/0E/0U/6N 0→0 0→0 0→0 0→0 0→0 0→0
Agents memory 12→12 2,929→2,929 0→0 0→0 0C/0E/0U/5N→0C/0E/0U/5N 0C/1E/0U/2N→0C/1E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config Appearance / shared 15→15 4,477→4,478 0→0 0→0 0C/1E/0U/7N→0C/1E/0U/7N 0C/1E/0U/4N→0C/1E/0U/4N 0→0 0→0 0→0 0→0 0→0 0→0
Config other 34→35 5,695→5,778 0→0 0→0 1C/0E/0U/3N→0C/0E/0U/4N 1C/1E/0U/3N→0C/1E/0U/4N 0→0 0→0 0→0 0→0 0→0 0→0
Config health 3→3 1,352→1,352 0→0 0→0 1C/0E/0U/0N→1C/0E/0U/0N 0C/0E/0U/1N→0C/0E/0U/1N 0→0 0→0 0→0 0→0 0→0 0→0
Config memory 5→5 1,353→1,353 0→0 0→0 0C/1E/0U/1N→0C/1E/0U/1N 0C/0E/0U/2N→0C/0E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config Talk 5→5 1,813→1,813 0→0 0→0 0C/0E/0U/3N→0C/0E/0U/3N 1C/0E/0U/1N→1C/0E/0U/1N 0→0 0→0 0→0 0→0 0→0 0→0
Sessions 24→24 4,202→4,202 0→0 0→0 1C/0E/0U/3N→1C/0E/0U/3N 0C/0E/0U/8N→0C/0E/0U/8N 0→0 0→0 0→0 0→0 0→0 0→0
PAGES-A total 126→127 28,219→28,303 0→0 0→0 3C/2E/0U/34N→2C/2E/0U/35N 3C/3E/0U/27N→2C/3E/0U/28N 0→0 0→0 0→0 0→0 0→0 0→0

C/E/U/N = eligible candidate / named exception / unresolved / native. Counts compare this candidate with exact current-main base c284fa0ea3f05dde62413680cdd66ef8eed11bf2; unmerged migrations receive no landed credit. The Runtime read and Raw command groups move C→N; four candidate groups remain elsewhere in scope.

Supersedes #179544. The disk-emergency cleanup removed its native checkout registration, so the coordinator authorized this replacement from the SSD anchor with current workflow bindings. The ten authored files were applied onto current main c284fa0 without replaying main commits. Nine final blobs are identical to the previously reviewed head; the remaining file retains main's sameRouteLocation helper.

Problem and solution

An initial configuration read failure left Settings without a direct retry. The page now consumes the Runtime Config owner's admitted completion under Solid Loading and Errored. Loaded editors retain their drafts, DOM, and publication-recovery interlocks during refresh. Retry calls the same owner; unrelated publications do not silently re-admit a failed initial read.

Raw Save, Discard, and Open retain owner completions and show pending presentation until the operation settles or navigation retires it. Both Raw controls and the landed Session Observer use the existing synchronous command lifetime. Reselecting the effective Raw mode, including a retained dirty draft, keeps its pending operation active. Retirement releases presentation only; the plain Runtime Config owner continues recording the actual outcome. Raw Discard still drains writes, preserves draft revision authority, and performs its existing connected reload or offline reset.

The eight curated-mutation guard conditions, extracted camera owner, lazy boundaries, tags, CSS classes, routes, request admission and mutation authority stay intact. No dependencies change. Initial reads use Loading/Errored; ordinary loaded refresh retains the owner's editor locks. Raw commands do not predict successful config values, discarded drafts or opened files, so the action only co-writes its pending affordance; the existing owner's accepted publication reconciles the result without an invented refresh target.

Five touched production files: 1,820→1,904 (+84). Five test/support files: 1,358→1,740 (+382). The additional production code is the read boundary, shared loading/error markup and Raw action presentation.

Proof

Check Current replacement result
Frozen install Passed on pinned toolchain, Solid rc.16
UI typecheck / focused tests pnpm tsgo:ui passed; 67 tests passed across three focused files, each run once with one worker
Scoped lint / formatting / whitespace Passed for all ten authored paths
Independent review Complete exact-base staged diff: scoped-clean through P0–P2, final source verification passed
Production Knip Exact c284 base and 9443c4d head both exit 1 with byte-identical findings: only src/infra/heartbeat-active-hours.ts and src/infra/heartbeat-wake-policy.ts; no UI findings or new ignores
Paired strict budget Exact c284 base and 9443c4d head built and sealed on this host; strict comparison passed, no warnings or violations
Full CI Fresh full CI required for this replacement head
Visual proof Previously inspected synthetic captures reused after source/render-equivalence verification

No broad local suites, local E2E battery, parity run or repeat loops. The committed browser-renderer cases run in full PR CI. Previous #179544 head passed full CI 39766794937 (44 success /25 skipped /0 failed); that remains prior-head evidence only.

Budget proof

Both sides use Node 24.22.1, pnpm 12.15.0, Solid rc.16, disabled build/compile caches, identical fixed build metadata and the canonical 20-file synthetic generated fixture. The publication seals verify tracked build inputs and all outputs against the exact source. Both metadata snapshots naturally report dirty: false.

Surface (gzip) Base c284fa0 Head 9443c4d Delta
Startup JS 316,544 B 316,531 B −13 B
Startup CSS 40,894 B / 1 request 40,894 B / 1 request 0 B
Chat boot JS 1,438,895 B 1,438,833 B −62 B
New Session boot JS 1,015,808 B 1,015,766 B −42 B

All measured startup, route and locale surfaces remain below their caps. Locale deltas are +1 to +3 B. There are no strict performance warnings or violations, no eager page import and no changed budget baseline.

Visual proof

These full frames were inspected and contain only synthetic data at 1440×1000 in dark mode. The current base/head preserve the previously verified rendering: the read renderer, styles and capture fixtures are identical; the only intervening stylesheet change affects chat code-block focus/overflow selectors absent from these frames. Current main's routing comparison helper preserves the same retirement behavior. The six existing media assets are reused, with no credential handling or new upload.

On each base route, holding and rejecting the initial configuration read produces identical pixels and no Retry button. On head, Loading appears, rejection produces a visible error and Retry, and Retry recovers the page. The four prior targeted capture cases passed without page errors.

Appearance before: rejected initial read has no Retry

Appearance after: visible initial loading

Appearance after: recoverable initial-read error

Notifications before: rejected initial read has no Retry

Notifications after: visible initial loading

Notifications after: recoverable initial-read error

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

clawsweeper Bot commented Oct 22, 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 22, 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-22T12:18:17.233819Z 9443c4d 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.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 12:28
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 22, 2026
@steipete
steipete merged commit 91ea438 into main Oct 22, 2026
105 of 108 checks passed
@steipete
steipete deleted the solid2/pages-a-runtime-replacement branch October 22, 2026 12:36
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
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: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant