Skip to content

test: plugin-frame session navigation can miss its sandbox readiness deadline #159679

Closed as not planned

Description

@roboclaw-bot

Failure

The full native validation of PR #158136 hit a pre-existing Chromium fixture readiness failure in ui/src/pages/plugin/plugin-page.session-navigation.browser.test.ts.

  • Case: authenticated plugin-frame session navigation > routes a real sandbox-frame click with the canonical base path and ordered selection.
  • installClickDocument line 160 fails at await expect.poll(() => ready).toBe(true): expected true, received false; matcher did not succeed in time. Case duration: 1,200ms.
  • Original browser shard: test/vitest/vitest.ui-browser.config.ts, two workers, 111 files / 1,429 tests; one failing file/test, 110 files / 1,428 tests passed; shard duration 100.09s.
  • Exact candidate: c3dc1ecc834414864da1f8016d1df76c97377fbc, tree 098590dbd0a2b8abef61c5af057780bafbc6bf45. This browser test and its production owner are unchanged by the PR.
  • Allocation: https://github.com/openclaw/openclaw/actions/runs/36289828792 ; job 108537658988. The enclosing allocation eventually shows success after idle teardown. That is not a passing delegated test verdict. The local native verifier was later interrupted by SIGTERM from PID 1, separately from the already-recorded browser assertion failure.

Bounded investigation

The helper installs an opaque-origin sandboxed srcdoc document and waits for its one-shot test-click-ready message. Its source-window/data checks are in place before assigning srcdoc. The actual click/navigation assertions are not reached in the failing run. Installed Vitest 5.0.1 implements an unspecified expect.poll timeout as 1,000ms; the browser project has a separate 60-second whole-test timeout.

The current file history still ends at 1931baed2da39841678183c054d12cfe6bb9c213 (#154020). No owning fix was found in current main or the issue search. An unchanged replay of the original complete browser configuration, with two workers and the same Node 24 Testbox environment, is running as the first reproduction step: https://github.com/openclaw/openclaw/actions/runs/36324035306 .

The original run did not record iframe lifecycle/message timing, so delayed document boot, message delivery, or a replaced frame are hypotheses—not an established cause. The failure screenshot was not recovered before that lease ended. A passing replay would not prove a fix. No timeout, assertion, browser isolation, mock, retry policy, or product source has been changed. Preserve the real sandboxed-frame and ordered session-selection contract while identifying the failed readiness boundary.

Bounded reproduction results

  • Unchanged full browser configuration: 111 files / 1,429 tests passed, 103.25s command wall / 101.40s Vitest, exact original candidate tree.
  • With bounded failure diagnostics added, the full browser shard and its original 153-file agents-core neighbor both returned 0 (browser 121.958s, neighbor 239.142s). All 23 observed neighboring files from the failure window map to that selected native shard.
  • The original failure overlapped the sidebar stress file. A narrower sidebar/navigation pairing also passed, but logs showed browser execution could finish during agents-core preparation. A final bounded probe therefore waited for an actual neighboring testcase before launching the two browser files; both processes passed (browser 35.361s, neighbor 211.701s), and the real sandbox click case took 176ms. Relative timing is not claimed to reproduce the whole original run exactly.
  • The changed navigation file alone passed all seven cases in 2.50s one-worker command wall / 1.32s Vitest. The pinned-base static check and independent whole-candidate P0–P3 review passed. The diagnostic lease was stopped and verified completed.

No causal repair has been established. The original readiness deadline and all assertions remain unchanged; the candidate only adds a bounded frame-load/message-source timeline and failure-only DOM state, with listener cleanup. These passing replays do not close this issue or prove a fix. The full native validation is proceeding with those diagnostics so another failure can identify its missing lifecycle boundary rather than guessing or widening a deadline.

Activity

  1. added
    P2
    impact:other
    issue-rating: 🦪 silver shellfish
    on Sep 27, 2026
  2. clawsweeper commented on Sep 27, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open for explicit maintainer judgment under the collaborator-authored guard. A merged repair replaces the failing fixture setup and reports adverse-control and repeated browser proof, so another repair PR is not currently justified.

    Reproducibility: no. high-confidence current-main reproduction is established: the historical failure is concrete, but current source replaces its setup and the merged repair reports passing browser validation; this read-only review ran no tests.

    Maintainer decision needed

    • Question: Does the merged initial-navigation repair and its recorded adverse-control and Chromium validation satisfy the condition for resolving this maintainer-authored issue?
    • Recommendation: Accept the merged repair: Confirm that the retained sandbox contract and recorded causal browser evidence resolve the reported fixture failure.
    • Why: The previously proposed repair is now merged and retained on main, but automatic closure is barred by author association and no subsequent explicit resolution decision is recorded.

    Next step
    A maintainer should confirm whether the merged fixture repair satisfies the recorded resolution condition before commissioning further changes.

    Review details

    Best possible solution:

    Recognize the merged initial-document fixture repair if its recorded browser evidence satisfies the maintainer's resolution criterion.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence current-main reproduction is established: the historical failure is concrete, but current source replaces its setup and the merged repair reports passing browser validation; this read-only review ran no tests.

    Is this the best way to solve the issue?

    Preparing the intended document before frame mount addresses the fixture's navigation boundary while retaining the real sandbox click and ordered-selection assertions, making it preferable to another speculative timeout change.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The original concurrent failure lacked lifecycle diagnostics, so the merged adverse-control result does not establish every detail of that historical failure.

    Codex review notes: model internal, reasoning medium; reviewed against a640fff46b13.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P2: The recorded failure affects browser-validation reliability; no current user-facing navigation outage is established.
    • impact:other: The demonstrated impact is a flaky validation fixture rather than lost messages, session corruption, or a production security failure.
    Evidence reviewed

    What I checked:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 12, 2026, 1:02 PM ET / 17:02 UTC.

  3. VACInc commented on Sep 27, 2026

    @VACInc
    Member

    Status update: #158136 has merged, but its browser change adds failure-only readiness diagnostics, not a fix; it preserves the original ready-message wait and deadline, and the PR explicitly says it does not resolve this issue. #159549 has an open candidate change that prepares the intercepted click document before mounting the frame, but that separate proposed setup change has not merged; #158136 itself does not establish that it resolves the original failure. Please keep this issue open until a current-head repair passes the relevant browser validation and is merged.

  4. openclaw-barnacle commented on Oct 12, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. added
    stale
    on Oct 12, 2026
  6. openclaw-barnacle commented on Oct 20, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2impact:otherissue-rating: 🦪 silver shellfishstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions