Skip to content

refactor(ui): remove the unused Sessions page bridge - #171808

Merged
steipete merged 5 commits into
openclaw:mainfrom
steipete:solid2/w-perf-routes
Oct 14, 2026
Merged

steipete merged 5 commits into
openclaw:mainfrom
steipete:solid2/w-perf-routes

Conversation

@steipete

@steipete steipete commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Sessions still registered a temporary custom-element bridge even though its route already renders Solid. Every mount paid for bridge properties and a nested root without a Lit caller needing them.

User Impact

Render the existing openclaw-sessions-page host directly in Solid and keep its controller connection, cleanup, initial route data, reactive updates, classes, and lazy route import. Pass the existing reactive translator to the header helpers instead of wrapping each translation in a revision-reading function.

Why This Change Was Made

The production change is confined to ui/src/pages/sessions/sessions-page.tsx. Production LOC: 109 → 106 (−3). A coupled CI repair changes only the native-titlebar case in lazy-custom-element-recovery.e2e.test.ts (+10 net test lines). The controller remains the plain TypeScript owner; the component consumes its existing projection. No new dependency or abstraction.

Evidence

Check Result
Independent Codex review Scoped-clean; no actionable P0–P2 findings on the exact final source
Formatting Passed
UI typecheck Passed on current head c44a8ceae7128; original measured-head diagnostics and baseline attribution are retained below
Production Knip Passed once on current head c44a8ceae7128; original measured-head and baseline results are retained below
Same-machine build and strict performance comparison Passed against the retained exact baseline on the same machine
Browser proof Final capture: 500 synthetic sessions, 25 table rows, one filtered result, one changed retained row, no registered Sessions bridge, zero page errors
Full PR CI Passed 38555461868 on exact head c44a8ceae7128, with ci:full: all UI unit, UI E2E, browser-extension, and real-Gateway shards

Baseline: 929ed4c28980814c0fe29e7017c469dc50f26e13. Startup JS is 348,752 → 348,740 B gzip (raw unchanged at 1,060,156 B; gzip variation is build metadata). Startup CSS is unchanged at 49,702 B gzip and one request. Chat boot raw JS is also unchanged at 5,699,607 B across 32 requests. Startup CSS reductions are tracked separately in #171660 and #172033; this PR keeps the Sessions route boundary unchanged.

The UI typecheck baseline reports src/config/sessions/transcript-payload.ts:211 (EngineConnection versus DatabaseSync) and src/gateway/operator-approval-store.kernel.worker.ts:256,310 (missing DatabaseSync). The identical command on that exact baseline reproduces all three diagnostics; this PR changes no database source.

Inspected synthetic Sessions baseline:

Before: Sessions with synthetic rows

Final after capture (1440 × 960; inspected synthetic data only):

After: Sessions with synthetic rows

The browser comparison retains the table row and both Chat page/transcript nodes. Pixel comparison is identical for Chat. Sessions differs by 750 of 1,382,400 pixels, confined to table-header text rendering; inspected labels, computed fonts, and every header width are identical. The final capture observes 2,992 ms for Sessions readiness, 876 ms for filtering, and 169 ms for the certified row update on this loaded host; baseline observations were 3,727 ms, 315 ms, and 76 ms. These are single-run observations, not a latency improvement claim.

Production Knip was run once on measured head 9b4d0972c31e2 and once on exact baseline 929ed4c. Both exit 1 with identical output for src/claws/clawhub-manifest-summary.ts, clawhub-preview-content.ts, clawhub-source-artifact.ts, and clawhub-source.ts. No ignores were added. This completes the baseline replay that was still running when the native review record was written.

Current landing state

Candidate c44a8ceae7128 adds a reviewed test-only repair on top of 8b3f26b4837d; the production patch remains byte-identical to the measured version. Landed on main as b1fc51dc9a17cbece3093d58fd679604fe4200e7; the native workflow retained the exact-head merge receipt.

Full CI 38546491951 on the preceding head had one non-aggregate failed job, checks-ui-e2e (6/9): Control UI lazy custom-element recovery > recovers the native titlebar visibly after its chunk fails. Automatic recovery navigation preceded the Close-control wait. The same case failed at different waits in an earlier scheduled-main run and the separate Agents CSS PR; latest scheduled main 38550286127 passed it. These observations are not claimed as matching-signature inheritance.

The fixture returned 503 only for the first document probe, although runtime recovery may probe again after its five-second cooldown. The repair uses the existing deferred probe to hold successful responses until the real Retry click completes, then requires a real document reload and the existing toolbar/navigation behavior. It preserves the real chunk-failure count and all visible-error/control assertions. The probe assertion now allows additional attempts that the runtime contract permits.

The exact-baseline replay and one corrected-case replay both completed their private UI builds but hit the unchanged 300,000 ms worker-preparation watchdog before any assertion. Both processes and their children are joined; neither is a passing behavior test or evidence of inheritance. No timeout override or repeat loop was used. Formatting passed and isolated review is scoped-clean through P2; fresh full PR CI 38555461868 passed on this exact head, supplying the missing behavioral proof. No inherited-failure exception is needed. Current-head UI typecheck and production Knip passed. Native review and preparation passed. The exact reviewed head is merged; native completion cleanup is still running.

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

@steipete
steipete marked this pull request as ready for review October 14, 2026 05:50
@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:24:05.761891Z c44a8ce 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 changed the title refactor(ui): mount chat and sessions routes directly in Solid refactor(ui): remove the unused Sessions page bridge Oct 14, 2026
@steipete
steipete merged commit b1fc51d into openclaw:main Oct 14, 2026
117 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the solid2/w-perf-routes branch October 14, 2026 14:03
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
* refactor(ui): mount chat and sessions routes directly in Solid

* fix(ui): seed Solid bridge properties before mounting

* refactor(ui): scope native route cleanup to Sessions

* test(ui): hold titlebar recovery until retry
ben-milanko added a commit to ben-milanko/openclaw that referenced this pull request Oct 18, 2026
Backport only the test fixture hunk from upstream
b1fc51d (openclaw#171808).
Keep successful probes held until the explicit Retry interaction completes;
release them during cleanup. No Sessions rendering refactor is included.

Co-authored-by: ben-milanko <[email protected]>
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: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant