Repository navigation
refactor(ui): render native toast content - #171817
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e8d89b163
ℹ️ 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".
Adopt main's complete canonical environment and usage fixtures. Preserve the reviewed toast implementation while integrating lazy-view recovery cancellation and Gateway response-buffer reuse for fresh runtime proof.
Reuse the existing board-document fetch helper so the retry count tracks only board document requests. Preserve exact retry pacing, iframe identity, and authorization-refresh assertions. The focused Bun case passes; isolated review found no actionable issues. The original CI extra request URLs were not retained.
|
Coordination on the catalog E2E change in this PR: #172060 at The same named case passed on scheduled main in 24.3 seconds. I am treating the failure as unresolved rather than inherited. I see this PR now checks the successful refresh receipt and waits for an injected rejected catalog response before the status assertion. Please confirm whether you own a diagnosed repair for this failure, or whether those changes are collecting the missing evidence. I am holding edits to this E2E file; #171863 and #171846 also touch the command-palette controller, so any controller interface change should be coordinated with those owners. I can continue the reader/store investigation without competing edits. Update: one ordinary local reproduction of the whole three-case file completed its runtime and UI builds, then exited 143 when the Vitest wrapper hit its 300,000 ms no-output watchdog before any assertion result. It produced no publication trace, so this provides no failure attribution; no rerun is planned. The file remains unchanged locally. The current version here passes real-Gateway shard 1 in run 38635818282, but I have not treated that pass or the prerequisite assertions as a diagnosed fix. Source follow-up: the original fixture omits a real precondition. The refresh path reaches I rechecked the fixture patch at Please land this reviewed fixture correction through the native workflow when ready, or split that focused correction if the wider PR remains blocked. At 2026-10-14 22:36 UTC, head |
|
Merged via squash.
|
* refactor(ui): render native toast content * test(ui): await lazy toast rendering * test(ui): await environment picker controls before measuring * test(ui): observe route and catalog readiness boundaries * test(ui): await terminal boot imports before readiness checks * test(ui): preserve publication-driven usage recreation proof * test(ui): wait for mobile details controls after resize * test(ui): scope Board retry fetch fixture to documents Reuse the existing board-document fetch helper so the retry count tracks only board document requests. Preserve exact retry pacing, iframe identity, and authorization-refresh assertions. The focused Bun case passes; isolated review found no actionable issues. The original CI extra request URLs were not retained. * fix(ui): replace rich toast fragments without stale content * test(ui): diagnose plugin settings navigation failures
What Problem This Solves
Toast messages still went through a Lit adapter although production callers provide strings or DOM nodes. Render them directly in Solid and use native icon names for provider feedback, removing the adapter and unused Lit content types.
The renderer memoizes message identity, then snapshots a fragment's actual child nodes for Solid to reconcile. This preserves a consumed fragment's recovery link and focus across unrelated options updates, and removes the old message when a second rich toast replaces it. The real sidebar hide action creates a fresh fragment for each notification; the regression reproduced stale old content before the correction, not a
NotFoundError.The PR also adds bounded, failure-only diagnostics around a plugin-help Settings-navigation timeout found in integration CI. It preserves the original actions, searchbox deadline, assertions, and error rethrow; it does not claim to repair that unresolved timeout.
The plain TypeScript controller continues to own dismissal deadlines, callbacks, queues, placement, and modal handoff. Host tags, CSS classes, message formatting, and lazy view loading remain unchanged. Existing catalog and responsive Details fixtures keep their assertions while waiting on their actual publication and layout boundaries.
Evidence
showToastAPI. Before the correction, the second link appeared while the first remained connected. After the correction, the case passed all nine width/placement combinations, including exact new text, old-link removal, node identity, focus, and same-fragment options refresh (1,903 ms; Chromium; four other cases excluded).fs-safe0.26.4 against locked 0.26.5; a frozen install changed no manifest or lockfile, and the repeated typecheck passed.da1470db6e0f5fd4b9ae98144ee9dd741884ab84: all 64 jobs completed, with 38 successful and 26 skipped. UI shard 3, plugin-help E2E shard 6, both real-Gateway shards,security-fast, andopenclaw/ci-gatepassed.f04284f9c02a11ef0f7e90061f3d5d47a83459f9: 36 passed, 25 skipped, two failed. Both real-Gateway shards andsecurity-fastpassed. The only failed test job is mocked E2E shard 8 with the inherited People fixture failures described below; its aggregate gate remains red.f04284f9c02a11ef0f7e90061f3d5d47a83459f9passed with no findings or new ignores (11m 53.6s), after a clean-checkout and exact-head preflight.eda41b03versus production candidate8e8d89b, 348,433 → 348,455 B startup JavaScript gzip (+22 B), eight JS requests, and one 49,702 B CSS request unchanged. Raw bytes and JS after chunk-name normalization were identical. This measurement is scoped to that migration; the later fragment correction stays inside the existing lazy ToastView boundary.Prior-head CI qualification (
f04284f9): all 11 failures inpeople-activity-card.e2e.test.tsmatch scheduled main run 38607531526, job 116007250417 by exact case name and error signature. Each times out after 30 seconds atselectOnlineView, line 116 (tap) or 118 (click), waiting for the exact “Online” rail button. Main commit4fa4e7e8d6d054d7b59ecb45a2a80ce93048fdd4deliberately renamed that button to “Users”; the fixture still expects the old label. The CI table initially classified this by job name only; every individual signature was then compared with the retained main log. Toast does not change that fixture or rail label. This is an inherited-failure qualification, not a green CI claim.The integration consumes canonical main repair
46ed68fb425dcee69647e8a5d32c4a22259a54c7, which updates the People activity-card fixture to select “Users.” The failed run above remains prior-head evidence.The next completed integration, run 38635818282 on
3c295df2c658d92121e2aab75018de14858aa574, finished all 64 jobs: 35 passed, 26 skipped, and three failed. UI shard 3 failed with 27 invalid-EventTarget teardown errors and the Usage overview-retention assertion. Its tested merge introduced the main-owned jsdom resource tracker; canonical repair5e4a1bed3a86187d42997946f62d5c2518be89d5, landed through main923e59a01e20549965381a1e72a471762981db9d, captures the owning Window and releases explicitly removed listener references. The current integration consumes that repair. Its owner reproduced both signatures before the change and passed both selected files afterward: 55 tests passed, two unrelated cases excluded. No production Usage change was required.Mocked E2E shard 6 in that same run passed 92 files and 438 tests but timed out in the plugin-help installed-help case, waiting 30 seconds for the Settings searchbox after closing the assistant and clicking Settings. The aggregate gate also failed. The current diagnostic records the synthetic path/query, Settings-link target, bounded editor visibility, and bounded page errors only when the original operation fails. This timeout remains unexplained; no local E2E replay was run for the diagnostic. Current-head CI passes the full shard, which validates the current integration without establishing a repair of the original failure.
The Board retry fixture now uses its existing board-document fetch helper. Its exact two-document count, retry pacing, iframe identity, and no-authorization-refresh assertions remain intact. The focused Bun case passed, independent P2 review completed scoped clean, and UI shard 3 passed in the full integration CI. The original failed run counted four fetches but did not retain their URLs, so that interleaving is not claimed reproduced.
The French Workboard failure was identical to scheduled main
38590548763, job115948443588, waiting for English “Edit board” at line 71:79. The integration consumes canonical main fixefbe8513fc85d8f49532a9153a8bd157f70dddf1; no duplicate Workboard fix is included.Earlier CI
38555096076failed the model-picker catalog replacement case while the Gateway recorded plugin lifecycle lease verification failing before reload. Merged diagnostic #172138 retains the previously omitted nested cause/code. Both subsequent integration runs passed both real-Gateway shards, but those passing runs do not establish a repair of the underlying lease defect. An older run also exceeded the real-Gateway job's 20-minute budget after its executed cases passed; it remains historical failed evidence.Current integration head:
da1470db6e0f5fd4b9ae98144ee9dd741884ab84, incorporating actual main923e59a01e20549965381a1e72a471762981db9dthrough merge828c6a09033860f880644f4c14a4c668f041c2a2. The seven previously reviewed PR files remain identical; only the approved plugin-help diagnostic is added. Existing Toast review, focused proof, screenshots, and Knip evidence are reused for those unchanged files and remain explicitly scoped to their tested heads. Against the actual merge base, eight files total +102/−48. The three production files go from 1,007 to 999 lines (−8); five test files go from 2,582 to 2,644 lines (+62). No dependencies or new abstractions are added.ci:fullcovers this shared overlay surface.Screenshots
The baseline is
eda41b03; the preserved production head is8e8d89b. Later changes repair reviewed fixtures and fragment replacement while preserving the same host, markup, CSS, and lazy view boundary. Main's native-span test conversion is superseded by the reviewed DocumentFragment identity/focus fixture; the canonical accepted-input assertion remains after the route and bridge readiness waits. Both pairs are synthetic-only and pixel-identical.Before provider error:

After provider error:

Before mobile recovery:

After mobile recovery:
