Skip to content

fix(ci): await plugin status across reconnects - #144605

Merged
steipete merged 1 commit into
mainfrom
codex/plugin-settings-status-proof
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/plugin-settings-status-proof

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #144590

What Problem This Solves

The plugin-settings browser test can fail after a successful enable/disable operation. It first waits for the status message, then separately counts the row. The intentional post-mutation Gateway reconnect can temporarily replace that row with loading content between those observations, producing an expected-one/actual-zero failure.

This occurred in the plugin-settings E2E job for #144590 and predates that PR's disclosure refactor.

Why This Change Was Made

Poll one observation of the same row: accessible role=status, the existing “Disabled Workboard.” text, visibility, the .plugins-row-message class, and an exact count of one. Keep the existing timeout and mutation behavior.

This is a separate test repair: +2 test lines / +2 bytes, with no production or tooling changes.

User Impact

No production behavior change. The browser test retains its accessibility, visibility, text, and uniqueness checks while awaiting the expected reconnect/catalog transition.

Evidence

  • A deterministic browser reproduction used the existing deferred Gateway controls to expose the reconnect window. The original assertion observed [0] and failed; the repaired assertion observed [0,1], passed, and completed the remaining configuration-save and uninstall flow.
  • All six uninstrumented plugin-settings administration E2E scenarios passed.
  • The full changed-file gate passed against base d6997b6bbf2e269887f03bddae6a488d74908af2, including the UI-E2E test type graph, formatting, lint, i18n, dependency/coercion guards, and dead-export scans.
  • Managed Codex P2 review was scoped-clean with no actionable findings, using the actual mutation, reconnect, and rendering owners as context.
  • Fresh main was checked; the test and relevant production/harness contracts are unchanged. refactor(ui): share Markdown disclosure decisions #144590's source and head were left unchanged.

Observe the accessible status, visible plugin row, expected text, and exact count together so the post-mutation reconnect cannot invalidate a separate count assertion.
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 11, 2026
@steipete
steipete marked this pull request as ready for review September 11, 2026 02:57
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 11:05 PM ET / September 11, 2026, 03:05 UTC.

ClawSweeper review

What this changes

The plugin-settings browser test now polls for one visible, accessible success message so an expected Gateway reconnect cannot invalidate a separate row-count assertion.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused, useful test repair that current main still needs. No actionable correctness or security findings were identified.

Priority: P3
Reviewed head: b34a6c7671c069a1c73df82a6782dce956c49b22

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with a source-supported mechanism, relevant reported browser validation, and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a maintainer-authored test repair, so the external-contributor runtime gate does not apply; the reported browser reproduction exercises the changed assertion through plugin disable, reconnect, configuration save, and uninstall using the existing mocked Gateway.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a maintainer-authored test repair, so the external-contributor runtime gate does not apply; the reported browser reproduction exercises the changed assertion through plugin disable, reconnect, configuration save, and uninstall using the existing mocked Gateway.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff changes only the success-message assertion, combining role, text, visible row class, and count into one observation; mutation actions and subsequent configuration/uninstall checks remain intact.
Current main still contains the race: Fetched main still waits for the status and then separately counts matching rows. The relevant production owners and test are unchanged between the merge base and fetched main. The test path is absent from the supplied latest release, v2026.9.3; no released repair was established.
Intentional reconnect preserves the committed outcome: The mutation controller records success before refreshing the catalog and requesting a reconnect. The page preserves that message while clearing catalog/detail state, and the settings renderer displays loading content until the result returns. This supports awaiting the combined DOM condition.
Findings None None.
Security None None.

How this fits together

The Control UI plugin-settings test drives plugin administration through a browser and mocked Gateway responses. Successful mutations refresh the catalog and reconnect the UI, temporarily replacing plugin details with loading content.

flowchart TD
  A[Browser disables plugin] --> B[Mocked Gateway response]
  B --> C[UI records success message]
  C --> D[Catalog refresh and reconnect]
  D --> E[Plugin details render again]
  E --> F[Poll visible accessible status]
  F --> G[Continue configuration and uninstall checks]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 9 7 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 9 7 +2

Review metrics

None.

Technical review

Best possible solution:

Keep the intentional reconnect lifecycle and verify its eventual success message with one bounded browser observation.

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

Yes: current source permits the reconnect to clear rendered details between the original status wait and count, and the PR reports a deterministic deferred-Gateway reproduction. This review did not execute it.

Is this the best way to solve the issue?

Yes: polling the combined condition repairs the observation race while retaining the visible, accessible success-message check and exact count of one.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This narrowly repairs a browser-test race without changing product behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a maintainer-authored test repair, so the external-contributor runtime gate does not apply; the reported browser reproduction exercises the changed assertion through plugin disable, reconnect, configuration save, and uninstall using the existing mocked Gateway.

Label justifications:

  • P3: This narrowly repairs a browser-test race without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies a maintainer-authored test repair, so the external-contributor runtime gate does not apply; the reported browser reproduction exercises the changed assertion through plugin disable, reconnect, configuration save, and uninstall using the existing mocked Gateway.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff changes only the success-message assertion, combining role, text, visible row class, and count into one observation; mutation actions and subsequent configuration/uninstall checks remain intact. (ui/src/e2e/plugins-settings-admin.e2e.test.ts:586, b34a6c7671c0)
  • Current main still contains the race: Fetched main still waits for the status and then separately counts matching rows. The relevant production owners and test are unchanged between the merge base and fetched main. The test path is absent from the supplied latest release, v2026.9.3; no released repair was established. (ui/src/e2e/plugins-settings-admin.e2e.test.ts:586, e62272f04a3e)
  • Intentional reconnect preserves the committed outcome: The mutation controller records success before refreshing the catalog and requesting a reconnect. The page preserves that message while clearing catalog/detail state, and the settings renderer displays loading content until the result returns. This supports awaiting the combined DOM condition. (ui/src/pages/plugins/plugins-page.ts:132, b34a6c7671c0)
  • Bounded existing polling policy: The UI E2E configuration already supplies a 100 ms polling interval and 15-second polling timeout. The patch introduces no timeout override, test retry, fixture expansion, or production seam. (test/vitest/vitest.ui-e2e.config.ts, b34a6c7671c0)
  • Reported browser validation and related failure: The captured PR body reports an original [0] failure, repaired [0,1] success, completion of configuration-save/uninstall, and six passing uninstrumented scenarios. GitHub confirms the linked browser job failed on the separate Markdown-refactor head: https://github.com/openclaw/openclaw/actions/runs/34554762311/job/103125019521. These are reported validation results, not executions performed during this review.
  • Feature-history routing: Current-main file history identifies Patrick Erichsen across the plugin administration, discovery, and detail-tab changes. GitHub maps the detail-tab commit to Patrick-Erichsen and shows the configuration-tab transition added to this scenario. Local blame and deeper patch traversal could not complete because historical objects were unavailable; no causal introduction claim is made. (ui/src/e2e/plugins-settings-admin.e2e.test.ts:596, c80f434ab35b)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit ad6b267 into main Sep 11, 2026
131 checks passed
@steipete
steipete deleted the codex/plugin-settings-status-proof branch September 11, 2026 03:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
Observe the accessible status, visible plugin row, expected text, and exact count together so the post-mutation reconnect cannot invalidate a separate count assertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant