Skip to content

refactor(ui): retire unused Solid page bridges - #171809

Merged
steipete merged 14 commits into
mainfrom
solid2/w-polish-pages-b-routes
Oct 15, 2026
Merged

steipete merged 14 commits into
mainfrom
solid2/w-polish-pages-b-routes

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Twenty-three Solid pages still register bridge custom elements although their production consumers already render Solid. The extra roots and transitional adapters obscure ownership and repeat derived work.

User Impact

No intended visible behavior change. Existing host tags, routes, classes, selectors, keyboard/focus behavior and lazy boundaries remain intact.

Why This Change Was Made

Render the pages under their existing native hosts, memoize inputs at the equality boundaries previously supplied by bridge properties, retain bridges with real imperative callers, and delete the unused PageLayout adapter. Models progressive-loading tests now wait for visible Defaults content instead of the removed loaderPending host property, while authentication remains deferred.

Production LOC: 9,297 → 9,128 (−169) across 31 production files; 40 files total. The latest ordinary main integration preserves the authored patch byte-for-byte. No dependency or startup import is added.

Evidence

Current head: a0ef6ed0a453ba55980ce8d909727c276f6341d6.

Proof Result
pnpm tsgo:ui Passed on the current integrated head
Focused tests and independent Codex reviews through P2 Reused for the byte-identical authored patch; no actionable findings
Full CI 38691487937 49 successful jobs, no failures; all 3 UI unit shards, all 9 UI E2E shards and both real-Gateway shards passed
Production pnpm deadcode:knip Failed on this head and exact merge base 520302d8ee63fd254e88042e96c393d8dc3ec461 with the identical sole unused file: extensions/oc-path/src/oc-path/jsonl/emit.ts. No UI findings or new ignores
Strict same-runner build/performance comparison Passed: 351,140 B startup JS gzip / 8 requests; 46,058 B CSS gzip / 1 request. Chat boot −101 B; New Session −72 B; CSS unchanged
git diff --check Passed

The main refresh resolved the prior inherited setup-action/provider-login failures. It was also needed to restart GitHub's stuck UNKNOWN mergeability computation. No CI rerun or further authored change was made.

This is nonvisual polish: no screenshot or local build was added under the bounded-proof rule. CI owns both builds and strict startup comparison. The corrected Models readiness cases pass on this head.

@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 ⚠️ Failed 2026-10-15T06:18:35.130490Z a0ef6ed 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e681e6fae

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


// Keep exact polling deadlines while waiting for Solid to commit async results.
function waitForPage(assertion: () => void) {
return waitForSolid(assertion, { interval: 0 });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep fake-timer waits bounded

In the tests that call vi.useFakeTimers(), this helper passes interval: 0 to vi.waitFor. Vitest documents that waitFor advances the fake clock by the configured interval between attempts when fake timers are active (Vitest documentation); if an assertion remains false, these retries therefore advance time by zero and never reach the wait's timeout, turning an ordinary regression into a runner-level hang. Use a positive interval or a bounded microtask-only settling helper that preserves the polling deadlines.

Useful? React with 👍 / 👎.

Integrate current main, retain the coordinated Custodian owner, and preserve the Labs plugin settings link.
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 14, 2026
@steipete

steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

The four progressive Models failures are now traced to a newer main commit consumed by the PR merge checkout, not the bridge-removal hunks here. Diagnostic CI 38664833692 tested merge d5c0c65e over main 614f559915ff4b6a0b81fd37e1561ba44f5217c8, whereas passing scheduled main tested a10ae12e.

The intervening 5e97b15d (#172608) adds a whole-page loading gate requiring !snapshot.props.loading before the Models defaults mount. The four cases deliberately hold provider auth details while checking catalog-backed defaults, so the picker is absent. Full source/test evidence is on the owning change.

The failing cases are the two early-selection/catalog-preservation cases at lines271/359 and the snapshot/ordinary catalog-publication cases at624. All four pass on the earlier scheduled main. No competing edits made to your files; please account for the owner's fix when integrating main. My earlier parent-branch comparison did not include the later merge-base change; the actual CI checkout is authoritative.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f180d34d47

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +182 to +184
<openclaw-cron-page ref={(element) => (host = element)}>
<CronPageBody routeSearch={props.routeSearch} host={host} />
</openclaw-cron-page>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Replace the stale bridge settlement wait

When the deferred cron.history response is resolved, ui/src/pages/cron/run-transcript.e2e.test.ts:242-244 still awaits openclaw-cron-page.updateComplete to ensure the response continuation has rendered before asserting that stale transcript content stayed hidden. This host is now an unregistered plain element, so updateComplete is undefined and the await completes immediately, allowing the regression assertion to run before the stale response is processed and falsely pass. Replace that wait with the Solid settlement/readiness contract.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e358543a1f

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +118 to +119
<openclaw-model-providers-page ref={(element) => (host = element)}>
<ModelProvidersPageBody {...props} host={host} />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update loader-pending checks for the plain host

When the Models route loader remains pending, ui/src/e2e/model-providers-progressive.e2e.test.ts:258-266 and :346-354 still poll openclaw-model-providers-page.loaderPending. This replacement host is now an ordinary HTMLElement, and the component passes loaderPending only to ModelProvidersPageBody, so the DOM property remains undefined and those parametrized E2E cases time out before exercising the picker behavior. Update the tests to observe the Solid route/controller readiness contract, or explicitly retain the host property if it is intentional.

AGENTS.md reference: AGENTS.md:L85-L86

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 29fded6 into main Oct 15, 2026
129 checks passed
@steipete
steipete deleted the solid2/w-polish-pages-b-routes branch October 15, 2026 07:50
@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 16, 2026
* refactor(ui): retire unused Solid page bridges

* refactor(ui): preserve native page reactivity and simplify owners

* test(gateway): mount setup consent through the UI route

* refactor(ui): remove unused page layout adapter

* test(ui): retain catalog publication failure diagnostics

* test(ui): restore inherited Models loading waits

* test(ui): wait for visible model defaults during route loading
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. gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant