Repository navigation
refactor(ui): remove the unused Sessions page bridge - #171808
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 14, 2026 05:50
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
Merged via squash.
|
This was referenced Oct 14, 2026
This was referenced Oct 14, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-pagehost 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 inlazy-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
c44a8ceae7128; original measured-head diagnostics and baseline attribution are retained belowc44a8ceae7128; original measured-head and baseline results are retained belowc44a8ceae7128, withci:full: all UI unit, UI E2E, browser-extension, and real-Gateway shardsBaseline:
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(EngineConnectionversusDatabaseSync) andsrc/gateway/operator-approval-store.kernel.worker.ts:256,310(missingDatabaseSync). The identical command on that exact baseline reproduces all three diagnostics; this PR changes no database source.Inspected synthetic Sessions baseline:
Final after capture (1440 × 960; inspected synthetic data only):
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
9b4d0972c31e2and once on exact baseline929ed4c. Both exit 1 with identical output forsrc/claws/clawhub-manifest-summary.ts,clawhub-preview-content.ts,clawhub-source-artifact.ts, andclawhub-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
c44a8ceae7128adds a reviewed test-only repair on top of8b3f26b4837d; the production patch remains byte-identical to the measured version. Landed on main asb1fc51dc9a17cbece3093d58fd679604fe4200e7; 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 main38550286127passed 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.