Repository navigation
refactor(ui): use native session catalog menus - #170907
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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 explicitly authorized admin squash with attributed pre-existing CI failures.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
* refactor(ui): use native session catalog menus * test(ui): type the catalog bridge removal fixture * test(ui): settle native catalog menu fixtures * test(ui): dismiss sidebar menus before async cleanup * test(ui): preserve lazy sidebar tags during cleanup * test(ui): await queued catalog menu selection
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
The session catalog context menu still uses Web Awesome for its actions.
User Impact
Catalog actions use the owned native menu while retaining labels, disabled reasons, anchor position, action ordering, dismissal, and return focus.
Why This Change Was Made
Replace the catalog dropdown and items with the existing Solid
Menu. Item descriptors are memoized by the catalog component so queued selections reuse JSX created under its owner. The action runs before close clears the caller’s catalog snapshot, including when an action synchronously removes the host. The bridge tag, CSS classes, and lazy registration boundary remain unchanged.Production LOC: renderer 127 → 131; shared stylesheet 247 → 262; total 374 → 393 (+19, for native panel styling and explicit lifecycle ownership). Test/fixture LOC: 2,020 → 2,079. The real PR diff is nine files, 179 additions/101 deletions.
The shared sidebar fixture dismisses upgraded native menus before asynchronous teardown and preserves intentionally unregistered lazy sidebar tags. Main’s landed picker migration (#170387) supplies the recursive-frame scheduler correction: ordinary frames settle in microtasks while recursive frames yield through a MessageChannel. Both changes are retained after merging
origin/mainatecdc40dbcf9b.Evidence
pnpm tsgo:ui1aa0280d9a6d, before the final two-line test-wait correction38451276658, job115483267129, passed: 348,764 B gzip startup JS in eight requests; startup CSS 49,644 B in one request. Paired same-machine base/head build at basecae016bcc1240reports CSS 49,590 → 49,644 B (+54 B). The checker prints head JS against the original 374,285 B budget but does not emit the paired base startup-JS number. Historical pre-integration head: 348,821 B JS / 49,298 B CSS. No lazy boundary changed.6c04b2b176814fin run38451276658; the previous UI 2/3 cancellations are superseded by successful execution.ci:fullcovers the integrated head: all UI unit shards and mocked E2E1–8 pass; real-Gateway1/2,2/2 and mockedE2E9/9 stop at the inherited build error detailed below.No local full suite, local E2E battery, Testbox, or other lease was used. Existing bounded synthetic captures are reused because the catalog rendering/style source is unchanged by integration.
The integrated source review also found one removal regression still awaiting the bridge render promise rather than native queued selection; it now waits for the observed action-and-close order. Earlier CI exposed a missing bridge fixture type, a leftover terminal-row selector in two adopted-session E2E cases, and an open native menu left during asynchronous sidebar cleanup. Those were corrected. Before integration, the remaining in-test stall was isolated to
AppSidebar catalog deletion > confirms catalog deletion and refreshes rows (open: true): recursive animation frames ran as microtasks and starvedvi.advanceTimersByTimeAsync(0)before cleanup could run. This PR integrates the landed scheduler owner fix without caller-specific flushing or changed assertions. The integrated local attempt did not reach the diagnostic setup marker, so it cannot establish whether that prior stall remains. UI shard 2’s prior cancellation remains unattributed; the complete fresh run must establish its result.A prior sidebar-roster E2E failure (expecting two activity reads after 5,001 virtual milliseconds and receiving one) was reproduced on baseline
89a3addb0de4with byte-identical test/owner inputs; this is historical evidence, not a waiver for a different test or an integrated-head failure. Current CI failures will be attributed by exact test name against scheduled main.Current full run
38451276658on6c04b2b176814fhas three proven inherited pre-test build failures: both real-Gateway shards and mocked E2E 9/9. All stop intsdownwith[INEFFECTIVE_DYNAMIC_IMPORT]:src/infra/sqlite-file-generation-worker.tsis dynamically imported bysrc/state/openclaw-state-db-cache.tsand statically imported bysrc/infra/sqlite-terminal-open-latch.ts/src/state/openclaw-quarantine-store.ts. The latest scheduled main run38448821812atabc6c4bb7cda57ef5f49bcc9ddc1aff920f6104bfails those same three jobs with the identical build diagnostic. No test ran in these jobs. The run is complete: every other selected job passed, including all three UI unit shards and mocked E2E shards 1–8;openclaw/ci-gatefailed downstream. The three failed jobs did not run their tests. Landing uses the documented inherited-failure exception; this CI run is not described as green.