Repository navigation
test(ui): wait for pointer delivery in inline widget controls - #146664
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:10 AM ET / 06:10 UTC (Revision 4). ClawSweeper reviewWhat this changesThe widget browser test waits for native pointer delivery before expanding, collapsing, or refreshing an inline widget. Merge readiness✅ Ready for maintainer review The focused repair remains useful on current main, and no actionable defect was found. The earlier cache overlap has been removed, and explicit maintainer sponsorship supports retaining this test-only PR. Priority: P3 Review scores
Verification
How this fits togetherControl UI browser tests exercise interactive widgets inside isolated nested frames. Pointer delivery must reach the inner control before the tests can verify resizing, retained state, and outgoing chat requests. flowchart LR
A[Browser test] --> B[Move pointer into widget]
B --> C{Inner control observes hover}
C -->|No| B
C -->|Yes| D[Click once]
D --> E[Widget resize or chat request]
E --> F[Assert behavior and retained state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +9. Total +9 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Use the shared native-pointer readiness helper at the affected inline controls while retaining the existing behavioral and isolation assertions. Do we have a high-confidence way to reproduce the issue? No deterministic current-main reproduction was established in this read-only review; the PR reports Linux and local failures, and the earlier merged helper documents the same browser pointer-routing mechanism. Is this the best way to solve the issue? Yes. Reusing the established helper preserves a single readiness owner and all downstream assertions without retrying clicks or adding production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3c16ced26794. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
The quota blocker is now repaired on main by #146691, merged as Fresh real-Gateway CI for #146587, based on that commit, passes both unchanged quota cases: automatic recovery in 16.434 seconds and saved-clear in 15.847 seconds. The run finishes with 55 of 56 tests passing; its only failure is the stale I verified the current HTTP owner deliberately grants immutable caching only to the matching shell fingerprint, with sibling coverage retaining Update: #146667 has now landed the same cache assertion fix on main at |
|
I’m taking responsibility for following this canonical repair through review, required checks and landing as part of the #145043 prerequisite work, without creating a replacement PR. Current head: Next: coordinate any active edits, resolve the current conflict on this existing branch with attribution preserved, then verify the affected Linux/browser contract and required exact-head checks before a pinned maintainer merge. I will recheck the live head before contributing and won’t overwrite concurrent work. If you have unpushed edits or a live branch writer, please identify that boundary here. |
…4-prep # Conflicts: # ui/src/e2e/mcp-app-conformance.e2e.test.ts
|
The branch is now at One conflict-resolution delta needs reconciliation: the accurate cache headers from merged #146667 are retained, but the former observation and assertion that the immutable sandbox URL carries a 64-hex fingerprint are absent. I am reviewing that against the existing cache-contract tests before making a narrow contribution on this branch. No reset, competing PR, CI cancellation, or duplicate run. Please identify any currently unpushed edits or active source-writing lease. The earlier ownership coordination remains in effect; I will re-read the head before contributing. Resolved after reading the current PR description and the actual HTTP-owner test: the cache file was deliberately removed from this PR because #146667 owns it. |
Reconcile the shared catalog when a publication retires a route preload before the Models page subscribes. Keep catalog errors visible and use the existing loader to consume current models without changing badge semantics. The route-to-page gap was introduced by c9c856c (#146396). It matches the automatic quota-recovery badge failures in checks-ui-e2e-real-gateway on #146246 (run 34733358595) and #146664 (run 34733471778). Prove the same Signed in/Ready failure before the fix and recovery after it. All 134 focused tests, both real-Gateway quota scenarios, the UI build, and changed-file checks pass. Keep usage-preload fixtures complete and retain quota badge transitions and catalog events for diagnosis.
Catalog discovery captures auth before awaiting provider I/O. If an ordinary turn clears a quota block meanwhile, the published catalog can retain the old cooldown despite successful recovery. Background inventory renewal in 65c9f24 (#146317) exposes this overlap in the quota real-Gateway CI cases reported on #146246 and #146664. Materialize current in-memory usage only for unchanged discovery credentials. Keep credential ownership and standalone read-only behavior intact. Remove the earlier UI-only candidate from the final change. A held synthetic catalog response proves the original stale cooldown and Signed in badge, then proves available models and Ready after the repair. Preserve all existing assertions and poll deadlines. Add credential-identity coverage and document recovery behavior; no persistent-state changes.
Integrate the scoped changes from canonical #146550 and #146664 and only the MCP cache assertion from #146667. Preserve the reviewed admitted preview lifetime changes and document shared output reuse. Co-authored-by: Peter Steinberger <[email protected]>
Reconcile the shared catalog when a publication retires a route preload before the Models page subscribes. Keep catalog errors visible and use the existing loader to consume current models without changing badge semantics. The route-to-page gap was introduced by c9c856c (#146396). It matches the automatic quota-recovery badge failures in checks-ui-e2e-real-gateway on #146246 (run 34733358595) and #146664 (run 34733471778). Prove the same Signed in/Ready failure before the fix and recovery after it. All 134 focused tests, both real-Gateway quota scenarios, the UI build, and changed-file checks pass. Keep usage-preload fixtures complete and retain quota badge transitions and catalog events for diagnosis.
Catalog discovery captures auth before awaiting provider I/O. If an ordinary turn clears a quota block meanwhile, the published catalog can retain the old cooldown despite successful recovery. Background inventory renewal in 65c9f24 (#146317) exposes this overlap in the quota real-Gateway CI cases reported on #146246 and #146664. Materialize current in-memory usage only for unchanged discovery credentials. Keep credential ownership and standalone read-only behavior intact. Remove the earlier UI-only candidate from the final change. A held synthetic catalog response proves the original stale cooldown and Signed in badge, then proves available models and Ready after the repair. Preserve all existing assertions and poll deadlines. Add credential-identity coverage and document recovery behavior; no persistent-state changes.
Add a real-Gateway regression that holds model catalog discovery across an ordinary quota-recovery turn, then verifies model availability and the provider's Ready badge without restarting the Gateway. Keep quota freshness with the existing generation-bound, physical-owner-aware usage reader. The final change adds fixture support, browser coverage, and recovery documentation; the duplicate production overlay was removed during review. Refs #146317. Refs #146246. The sandbox-cache half is tracked separately in #146664. Validation: 64 focused owner/catalog tests and all three real-Gateway quota cases passed in the retained behavior proof. Exact-head CI passed at https://github.com/openclaw/openclaw/actions/runs/34755008537. The clean rebase preserves the approved patch byte-for-byte; the whitespace check and native hosted-CI prepare gates passed. Lead and ClawSweeper reviews have no actionable findings.
…aw#146664) Use the existing pointer-delivery readiness helper for inline widget expand, collapse, and Refresh, followed by one native click. Preserve authentication, isolation, retained frames and notes, exact chat prompts, and board-event assertions. The cache-only change is already owned by openclaw#146667. This merge retains the focused widget-only patch. Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/34741815180 Completed exact-head ClawSweeper review found no actionable defect. Native hosted gates, supported preparation, and merge verification passed. Co-authored-by: Peter Steinberger <[email protected]>
…#146708) Add a real-Gateway regression that holds model catalog discovery across an ordinary quota-recovery turn, then verifies model availability and the provider's Ready badge without restarting the Gateway. Keep quota freshness with the existing generation-bound, physical-owner-aware usage reader. The final change adds fixture support, browser coverage, and recovery documentation; the duplicate production overlay was removed during review. Refs openclaw#146317. Refs openclaw#146246. The sandbox-cache half is tracked separately in openclaw#146664. Validation: 64 focused owner/catalog tests and all three real-Gateway quota cases passed in the retained behavior proof. Exact-head CI passed at https://github.com/openclaw/openclaw/actions/runs/34755008537. The clean rebase preserves the approved patch byte-for-byte; the whitespace check and native hosted-CI prepare gates passed. Lead and ClawSweeper reviews have no actionable findings.
) * fix(update): prevent stale Codex migrations from blocking upgrades * test(update): preserve historical child validation coverage * test(update): narrow the readiness fixture to supported lanes * fix(doctor): migrate retained state before retiring plugin locators * test(update): align finalization fixtures with migration completion * fix(doctor): preserve safe repairs before plugin convergence * fix(ui): repair picker cursor and static check regressions * test(ui): align picker and account flows with current contracts * test: bind post-plugin Doctor fixtures and retain Windows cleanup ownership * fix(tooling): settle Windows npm shim descendants before cleanup * test: await lazy Inbox panel and provision desktop SSH runtime Join the panel module after opening before asserting top-layer ownership. Provision only an absent CI privsep runtime directory; refuse unsafe paths without normalizing them and verify the newly created directory. * fix: settle npm Windows Job resources before sandbox cleanup Join the owned root and pipe EOF within the existing cleanup budget. Preserve command deadlines, single-attempt removal and original errors. * test: split reasoning normalization from thinking suite * test: synchronize catalog assertions and expose workspace failures Wait for catalog publication before terminal assertions and distinct recovery. Wait for the model trigger to be enabled before the real browser click. Reject the retention barrier when a fixture upload fails so the original outcome assertion can surface the initiating error instead of timing out. Keep provider routing, production behavior, assertions and deadlines unchanged. * test: expose pre-upload workspace reconciliation failures * perf: trim cold Bash and catalog worker imports * test: compile source cache helper inside catalog worker fixture * fix: bound SDK report memory and isolate UI proof timing Deduplicate shared declaration sections without retaining all repeated keys. Keep the complete evaluated SDK surface and unchanged child memory limit. Await host and nested sandbox layout within one existing polling deadline. Disable unrelated startup update checks in the real-Gateway catalog fixture. * test(ui): reuse admitted prebuilt previews * test(ui): compose landed Gateway qualification fixes Integrate the scoped changes from canonical #146550 and #146664 and only the MCP cache assertion from #146667. Preserve the reviewed admitted preview lifetime changes and document shared output reuse. Co-authored-by: Peter Steinberger <[email protected]> * test: isolate admitted preview ownership and catalog build identity Keep borrowed UI output fixture-owned and match default mock Gateway build identity to the served client while retaining explicit stale-build scenarios. Capture catalog startup failure diagnostics before context teardown. Carry the exact routing fixture loader/command-recorder correction from Peter Steinberger's canonical #146810 at e62d242. No unrelated canonical changes imported. * test(ui): bind catalog refreshes to their test owner * test(ui): preserve browser failure diagnostics * fix: keep Doctor convergence effect guard synchronous Align the startup adapter with the synchronous post-core convergence and plugin lifecycle lease refusal contract. Both production callers already use synchronous guards. This annotation-only correction resolves the current pull-request CI no-misused-promises failure without runtime changes. * fix: complete shared schema under current Doctor authority Use the existing checkpoint-required shared-schema migration step only for the shipped post-install IPC and compatibility handoff. Preserve maintenance authority, schema fences, publication policy and plugin/agent deferral. Cover real v16 state, old-driver publication and guarded refusals. Revalidate optional delegated executor/requester authority before maintenance effects and immediately before the synchronous shared-schema writer. Preserve original refusal identity and grantless shipped-driver support. Repair the existing refusal fixture to enter post-core maintenance and clear unused one-shot contribution mocks between cases. Accept only the typed post-install Doctor advisory in the survivor success assertion; preserve failed-core-step and plugin-convergence refusals. * test: call synchronous convergence guard directly Remove the obsolete await from the private-root containment fixture. The guard is synchronous; production code and refusal assertions remain unchanged. Retain CI34799045580 core1 failure as the red evidence. * test: respect cloud row clocks and plugin admission retries Give each cloud reconciliation fixture transition a current timestamp. Honor only the explicit retryable plugin-admission busy response, with a 30-second bound and retained observations. Keep all lifecycle and channel identity assertions; change no runtime code or CI timeout policy. * fix(doctor): preserve planned references through early repair Unpublished source successor for #145043. Retains original contributor ancestry, all 38 withdrawals, and the prior pending composition. Contextual supplier 7f5a90b source provenance is retained in the companion recovery record. Three exact owner contracts still block whole-composition qualification. * fix(config): retain acquisition environment through Doctor writes Narrowly integrate published supplier 3b2140f with its exact authored-value and paired-write regressions. Preserve the retained Doctor APIs and current-main composition. Source review is scoped clean; native, exact-head CI and installed acceptance remain separate. * test(doctor): distinguish deferred and post-core load diagnostics Preserve no-execution and structured-advisory behavior for shipped-parent deferral while covering actual post-core plugin failures. Main diagnostics remain intact for standalone and writable-parent lint calls. * fix(doctor): complete state migration after install-record repair Use the validated post-convergence repair config for core state migrations while retaining source locators for plugin migrations. This prevents startup from repairing retired install records and then refusing unfinished workspace state. Cover the real startup child, archived bytes, and SQLite setup state. * test(update): match current deferred plugin warnings * test(doctor): distinguish readers from staging workers Observe real child requests so the fixture requires one reusable reader while separately checking balanced staging lifetimes and clean native closure for every child. --------- Co-authored-by: Peter Steinberger <[email protected]>
…claw#145043) * fix(update): prevent stale Codex migrations from blocking upgrades * test(update): preserve historical child validation coverage * test(update): narrow the readiness fixture to supported lanes * fix(doctor): migrate retained state before retiring plugin locators * test(update): align finalization fixtures with migration completion * fix(doctor): preserve safe repairs before plugin convergence * fix(ui): repair picker cursor and static check regressions * test(ui): align picker and account flows with current contracts * test: bind post-plugin Doctor fixtures and retain Windows cleanup ownership * fix(tooling): settle Windows npm shim descendants before cleanup * test: await lazy Inbox panel and provision desktop SSH runtime Join the panel module after opening before asserting top-layer ownership. Provision only an absent CI privsep runtime directory; refuse unsafe paths without normalizing them and verify the newly created directory. * fix: settle npm Windows Job resources before sandbox cleanup Join the owned root and pipe EOF within the existing cleanup budget. Preserve command deadlines, single-attempt removal and original errors. * test: split reasoning normalization from thinking suite * test: synchronize catalog assertions and expose workspace failures Wait for catalog publication before terminal assertions and distinct recovery. Wait for the model trigger to be enabled before the real browser click. Reject the retention barrier when a fixture upload fails so the original outcome assertion can surface the initiating error instead of timing out. Keep provider routing, production behavior, assertions and deadlines unchanged. * test: expose pre-upload workspace reconciliation failures * perf: trim cold Bash and catalog worker imports * test: compile source cache helper inside catalog worker fixture * fix: bound SDK report memory and isolate UI proof timing Deduplicate shared declaration sections without retaining all repeated keys. Keep the complete evaluated SDK surface and unchanged child memory limit. Await host and nested sandbox layout within one existing polling deadline. Disable unrelated startup update checks in the real-Gateway catalog fixture. * test(ui): reuse admitted prebuilt previews * test(ui): compose landed Gateway qualification fixes Integrate the scoped changes from canonical openclaw#146550 and openclaw#146664 and only the MCP cache assertion from openclaw#146667. Preserve the reviewed admitted preview lifetime changes and document shared output reuse. Co-authored-by: Peter Steinberger <[email protected]> * test: isolate admitted preview ownership and catalog build identity Keep borrowed UI output fixture-owned and match default mock Gateway build identity to the served client while retaining explicit stale-build scenarios. Capture catalog startup failure diagnostics before context teardown. Carry the exact routing fixture loader/command-recorder correction from Peter Steinberger's canonical openclaw#146810 at e62d242. No unrelated canonical changes imported. * test(ui): bind catalog refreshes to their test owner * test(ui): preserve browser failure diagnostics * fix: keep Doctor convergence effect guard synchronous Align the startup adapter with the synchronous post-core convergence and plugin lifecycle lease refusal contract. Both production callers already use synchronous guards. This annotation-only correction resolves the current pull-request CI no-misused-promises failure without runtime changes. * fix: complete shared schema under current Doctor authority Use the existing checkpoint-required shared-schema migration step only for the shipped post-install IPC and compatibility handoff. Preserve maintenance authority, schema fences, publication policy and plugin/agent deferral. Cover real v16 state, old-driver publication and guarded refusals. Revalidate optional delegated executor/requester authority before maintenance effects and immediately before the synchronous shared-schema writer. Preserve original refusal identity and grantless shipped-driver support. Repair the existing refusal fixture to enter post-core maintenance and clear unused one-shot contribution mocks between cases. Accept only the typed post-install Doctor advisory in the survivor success assertion; preserve failed-core-step and plugin-convergence refusals. * test: call synchronous convergence guard directly Remove the obsolete await from the private-root containment fixture. The guard is synchronous; production code and refusal assertions remain unchanged. Retain CI34799045580 core1 failure as the red evidence. * test: respect cloud row clocks and plugin admission retries Give each cloud reconciliation fixture transition a current timestamp. Honor only the explicit retryable plugin-admission busy response, with a 30-second bound and retained observations. Keep all lifecycle and channel identity assertions; change no runtime code or CI timeout policy. * fix(doctor): preserve planned references through early repair Unpublished source successor for openclaw#145043. Retains original contributor ancestry, all 38 withdrawals, and the prior pending composition. Contextual supplier 7f5a90b source provenance is retained in the companion recovery record. Three exact owner contracts still block whole-composition qualification. * fix(config): retain acquisition environment through Doctor writes Narrowly integrate published supplier 3b2140f with its exact authored-value and paired-write regressions. Preserve the retained Doctor APIs and current-main composition. Source review is scoped clean; native, exact-head CI and installed acceptance remain separate. * test(doctor): distinguish deferred and post-core load diagnostics Preserve no-execution and structured-advisory behavior for shipped-parent deferral while covering actual post-core plugin failures. Main diagnostics remain intact for standalone and writable-parent lint calls. * fix(doctor): complete state migration after install-record repair Use the validated post-convergence repair config for core state migrations while retaining source locators for plugin migrations. This prevents startup from repairing retired install records and then refusing unfinished workspace state. Cover the real startup child, archived bytes, and SQLite setup state. * test(update): match current deferred plugin warnings * test(doctor): distinguish readers from staging workers Observe real child requests so the fixture requires one reusable reader while separately checking balanced staging lifetimes and clean native closure for every child. --------- Co-authored-by: Peter Steinberger <[email protected]>
Related: #139635
What Problem This Solves
The widget browser test can click an outer iframe during layout changes without delivering the action to its nested control, causing conformance checks to time out.
User Impact
Restores the widget interaction check without changing production behavior or weakening authentication, isolation, and state-retention assertions.
Why This Change Was Made
Use the existing pointer-delivery helper for inline expand, collapse, and Refresh. It observes native hover inside the control before clicking once. Keep every other click, assertion, and timeout unchanged.
The earlier MCP cache-expectation repair is superseded by #146667 and has been removed from this PR; that file is preserved exactly as it appears on main.
Evidence
Retained Linux and local failures show clicks missing the inner widget. The full widget case passes locally, and the identical widget source passed the Linux CI case in 7.5 seconds. Isolation, retained frames and notes, the exact chat prompt, and the board event remain asserted.
Existing mapped checks passed for these unchanged widget bytes. A fresh review covers the final widget-only subset. New exact-head required CI, including quota recovery after the separate mainline repair, remains mandatory before landing. The final diff adds nine test lines and no new test cases or production code.