Skip to content

refactor(ui): remove the summary automation bridge - #171807

Merged
steipete merged 3 commits into
mainfrom
solid2/w-polish-chat-talk-automations
Oct 14, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-polish-chat-talk-automations

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Chat summary automations still use a custom-element bridge although their production caller is already Solid. The bridge adds a separate root and property-forwarding lifecycle around the existing cron owner.

User Impact

No intended behavior or visual change. The native host tag, classes, links, loading/error states, retained disclosure state, refresh coalescing, reconnect/session fencing, and retry focus behavior stay intact.

Why This Change Was Made

Render the existing host directly from Solid and use reactive props instead of forwarded custom-element properties. Keep request state with the synchronous cron owner. The initial settled callback starts loading once the native host connects and owns the existing visibility/focus listener cleanup. Convert the test harness to mount Solid and update reactive props while preserving all nine scenarios and 46 assertions.

Production LOC: 310 → 300 (−10). Test LOC: 357 → 378 (+21).

Evidence

Check Result
pnpm tsgo:ui Head 3f7f83a37f2e passed in 51.01 s
Summary automation tests 9 passed, all 46 assertions retained; 46.88 s Vitest / 237.66 s wrapper; source-scoped proof reused for the byte-identical authored patch
Targeted lint and formatting Passed; current full CI lint and type jobs also passed
Production pnpm deadcode:knip Head 3f7f83a37f2e passed in 4m 31.39s
Independent Codex review Scoped-clean through P2; subsequent imperative-read lint annotations inspected separately
Full PR CI Run 38557680998: all 38 selected jobs passed, including all three UI unit, nine E2E, two real-Gateway shards, security, performance, and openclaw/ci-gate
Startup performance 349,041 B gzip JS, 8 requests; 49,695 B gzip CSS, 1 request; below the 374,285 B JS budget

CI compares merge revision bcf42152 against main base 7758bb9cdd7122a4f17e63fa91f3fb4eabb42cc3 on the same runner/toolchain. Chat boot JS is 1,761,834 → 1,761,885 B gzip (+51 B); New Session boot is 1,348,965 → 1,349,013 B (+48 B). Request counts and CSS are unchanged. No boot imports or lazy boundaries changed. The report does not print a separate base initial-startup JS measurement; the committed budget is not a measured baseline.

No visible markup or CSS changed. Local builds and screenshots were omitted under the polish wave's nonvisual proof budget; CI supplies the production build and same-runner performance comparison.

Integration and earlier failures

The branch merges published main 35d4d8c0726bf; both authored files retain their reviewed blobs. Frozen dependency installation passed, and the tracked tree is clean. Main supplies two concrete fixture repairs: 0d02ec18729e corrects the New Session accepted-draft expectation, and 2678c2b50c89 waits for the Usage recreation receipt. Their corresponding cases now pass in full CI.

The previous head failed three plugin-question cases with missing initial panels. The automation activation and cleanup do not execute in those fixtures, and all three UI unit shards now pass. This passing replay is not claimed as a fix for the earlier failures; #171652 owns the fixture migration. The queued baseline Testbox was stopped before any test ran and supplies no test result.

Keep the native host, synchronous cron owner, session fencing, refresh coalescing, and retry focus behavior. Mount the existing nine test scenarios through Solid with all assertions retained.

Validation: UI typecheck, nine focused tests, targeted lint and formatting, production Knip, and independent review through P2. Production component shrinks from 310 to 300 lines.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 14, 2026
@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 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-14T11:39:33.476369Z 3f7f83a 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.

@steipete
steipete merged commit 7234914 into main Oct 14, 2026
101 of 103 checks passed
@steipete
steipete deleted the solid2/w-polish-chat-talk-automations branch October 14, 2026 13:42
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
Keep the native host, synchronous cron owner, session fencing, refresh coalescing, and retry focus behavior. Mount the existing nine test scenarios through Solid with all assertions retained.

Validation: UI typecheck, nine focused tests, targeted lint and formatting, production Knip, and independent review through P2. Production component shrinks from 310 to 300 lines.
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. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant