Skip to content

fix(test): allow pending plugin inventory during navigation - #201551

Closed
vincentkoc wants to merge 1 commit into
mainfrom
fix-plugin-inventory-loading-fixture-20261119
Closed

vincentkoc wants to merge 1 commit into
mainfrom
fix-plugin-inventory-loading-fixture-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The plugin-inventory loading test stalls during navigation before it can inspect the disabled Install button. It deliberately holds the inventory response, while the default navigation helper waits for the page to finish becoming ready.

User Impact

No production behavior changes. The test can inspect the pending inventory state and then release it.

Why This Change Was Made

Use the existing per-test awaitInitialRoster: false option for this intentional pending state. Keep every loading, Install, and completion assertion unchanged.

Evidence

  • Scheduled UI7 failure: the navigation readiness wait times out before the first assertion.
  • Formatter and diff checks passed.
  • Local ClawSweeper reviewed the complete d0fc73b3..c6b1b9a7 range: no findings (0.96).
  • Exact-case browser baseline/candidate and scoped static checks remain pending on the isolated native checkout. This PR stays draft until that proof completes.

Related: #201396

Superseded on main

PR #201792 landed this correction in ea749009. The entire named browser test is byte-identical on this branch, that commit and main 37550994. It still holds plugins.list, checks that Install is disabled, releases the pending response and then checks that Install is enabled. Closing this duplicate preserves the original evidence.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR disables the automatic readiness wait for the browser test that deliberately holds plugin inventory pending.

Example: Open the Matrix catalog detail while plugins.list is held pending.

  • Before: Navigation waits for readiness before the test can inspect Install or release inventory.
  • After: Navigation can finish so the test checks disabled Install and its loading explanation, releases inventory, and checks completion.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and source-consistent, but its repaired test has no supplied candidate execution result and the exact-head browser checks were skipped.
Proof confidence 🦪 silver shellfish (2/6) This PR changes only browser-test setup and requires no shipped-entry-point demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A browser regression stalls before checking the loading explanation and disabled Install button.
Reason: Restoring execution of an existing behavioral regression is useful, narrowly scoped, and consistent with its original intent; the maintainer-authored direction needs no additional product decision.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the maintainer-authored test repair uses the existing navigation opt-out without weakening assertions, and no introduced defect was found.

Priority: P3
Reviewed head: c6b1b9a7eca3dfa63f7eb6799f85b0d5f21a46a5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI browser fixture installs a mocked Gateway and optionally wraps navigation with a readiness wait; this test needs to inspect the intermediate state before inventory resolves.

flowchart TD
  A[Plugin browser test] --> B[Existing mock Gateway setup]
  B --> C[Navigation without readiness wait]
  B --> D[Held plugin inventory]
  C --> E[Assert loading and disabled Install]
  E --> F[Release inventory and assert completion]
  D --> F
Loading

Technical review

Best possible solution:

Use the existing per-test readiness opt-out while retaining the held inventory response and every pending-state and completion assertion.

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

Source confirms that this held-method scenario installs the readiness wrapper and that the explicit false option bypasses it; no baseline or candidate execution was performed, and the scheduled failure's detailed log was inaccessible.

Is this the best way to solve the issue?

This is the smallest complete fixture repair: it uses the existing option at the intentional pending-state call site and preserves the observable contract without changing shared readiness policy.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e24f297 adds ui/src/test-helpers/control-ui-mock-request-gates.ts:49 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e24f297c3d13; files: ui/src/test-helpers/control-ui-mock-request-gates.ts)
  • Patrick Erichsen: Raw commit 61cc8af adds ui/src/pages/plugins/plugins.e2e.test.ts:30 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 61cc8af2f915; files: ui/src/pages/plugins/plugins.e2e.test.ts)

PR surface

Tests +3. Total +3 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 1 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 4 1 +3

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This repairs a browser-test setup stall without changing production behavior.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the planned focused browser baseline/candidate run, confirming navigation reaches the assertions and inventory release completes the unchanged test.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 18, 2026, 8:21 PM ET / November 19, 2026, 01:21 UTC.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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