Skip to content

fix: keep plugin details responsive while inventory loads - #201792

Merged
RomneyDa merged 2 commits into
mainfrom
openclaw/ci-pr-sidebar-inventory-nov19
Nov 19, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
openclaw/ci-pr-sidebar-inventory-nov19

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Related: #201551

What Problem This Solves

Opening plugin details can remain stuck on the page skeleton while the sidebar waits for plugin inventory. That inventory supplies optional shortcuts and should not hold navigation to otherwise available content.

User Impact

Plugin details can render while inventory is loading. Install remains disabled with its loading explanation until inventory arrives. No configuration changes or migration are required.

Why This Change Was Made

Use a deferred computation for the sidebar inventory so refreshes can retain the last available shortcuts without blocking route updates. Existing connection, capability, generation, loading, and error handling remain in place.

The pending-inventory browser test opts out of the fixture’s initial-readiness wait while retaining every loading, disabled-Install, inventory-release, and enabled-Install assertion. This includes the fixture correction proposed in #201551, but also fixes the production sidebar dependency: the fixture-only change still reproduces the failure.

Evidence

  • The exact pending-inventory browser case failed before the fix and still failed with only the fixture correction; it passed with the deferred sidebar inventory.
  • The focused plugin and sidebar suites passed all 18 cases.
  • Targeted formatting, type-aware lint, production UI typechecking, and UI test/editor typechecking passed on the integrated candidate. These unchanged-file results were retained rather than rerunning the same expensive checks during packaging.
  • Packaging verification: exact two-file patch applied cleanly, reverse-apply check passed, and git diff --check passed. Both affected files are unchanged between the selected base dbf41b9173f6 and inspected main 8a23d7c11d37.
  • Fresh independent OpenAI narrative review of the two-file createDeferred candidate on base de001b58276a582e00955c7944d157b3960ba5cb found no P0–P3 issues. The reviewed patch SHA-256 is 08f9c95416533f9d2185662fe45424776d8a0a7461ba2105c23114819c1c2eca, identical to this candidate. The reviewer checked the Solid contract, connection/generation/admission lifecycle, and preserved assertions; browser proof was author-run, not independently rerun.
  • Canonical autoreview completed for base dbf41b9173f6c3eb128221387533a1096ab1c43a through head 04c0437d4f655164ff4388c0a4fde0ede8155955: P0–P3 coverage, scoped-clean, report produced, exit 0, no findings. Engine: OpenClaw; effective model: openai/gpt-6.1-sol. This review was limited to the supplied diff, without surrounding implementation or test execution, and supplements the independent full-context review and focused proof above. Local ClawSweeper was unavailable; the selected fallback is canonical autoreview plus one hosted review when ready.
  • Source/simplification inspection found no additional state owner, effect, permission change, or unrelated repair. Production delta is +12/-2 lines (mostly import formatting); test delta is +4/-1.

Clean before/after comparison

Before: plugin details stay on the route skeleton while inventory is held.

Before: plugin details remain a loading skeleton

After: Matrix details render, with Install disabled and “Loading plugins…” visible.

After: Matrix details render while plugin inventory remains pending

Captured during the held-inventory regression in real Chromium with the Control UI and a mocked Gateway, synthetic Matrix catalog, light theme, and matching 1440 × 1000-pixel frames. The recorded capture source base is de001b58276a582e00955c7944d157b3960ba5cb; the after candidate adds the exact two-file patch identified above. A separate commit stamp for each image was not retained.

Annotated before/after comparison

Before: arrow identifies the held plugin-detail skeleton

After: arrow identifies Install, which remains disabled while details render

Annotations explain the same clean captures above; they do not add timing or backend proof.

Limitations: this is not a new live-Gateway run. Broad PR CI is not yet verified. The existing fixture-only PR’s review does not constitute review of this additional production change.

RomneyDa and others added 2 commits November 19, 2026 11:34
@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.

@RomneyDa
RomneyDa marked this pull request as ready for review November 19, 2026 11:44
@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. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. 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 defers optional sidebar inventory updates and lets the existing browser regression inspect navigation before inventory finishes loading.

Example: Open the Matrix plugin detail while plugins.list remains pending.

  • Before: The detail page can remain a loading skeleton.
  • After: Matrix details render while Install stays disabled with the loading explanation.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair supported by inspected browser evidence, preserved regression assertions, and a passing exact-head gate.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected clean and annotated Chromium screenshots exercise the actual Control UI Matrix detail route with plugins.list held by the synthetic Gateway: details render after the change while Install remains disabled and its loading explanation remains visible; the supplied regression run also reports successful inventory release and enablement.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Opening plugin details can leave the content stuck on a skeleton while optional sidebar inventory loads.
Reason: The change restores the documented independent-loading intent with a narrow repair, and its maintainer-authored direction requires no additional product decision.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a current sidebar dependency that can stall plugin details, preserves installation gating, and introduces no actionable code defect.

Priority: P2
Reviewed head: 04c0437d4f655164ff4388c0a4fde0ede8155955

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI Customize sidebar reads Gateway plugin inventory to display shortcuts, while the plugin page independently owns detail rendering and installation readiness.

flowchart TD
  A[Gateway connection and plugin generation] --> B[Sidebar inventory read]
  B --> C[Deferred shortcut presentation]
  C --> D[Customize sidebar]
  E[Plugin route] --> F[Plugin detail page]
  A --> G[Page inventory owner]
  G --> F
Loading

Technical review

Best possible solution:

Keep the existing sidebar inventory owner and boundaries, using createDeferred for its optional presentation and the existing readiness opt-out for the regression.

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

Current main retains the responsible async memo, and the supplied before/after browser captures and reported fixture-only negative control establish the pending-inventory scenario; no target code was executed during this review.

Is this the best way to solve the issue?

The invariant is that optional sidebar shortcuts must not hold otherwise available route content, and this focused primitive replacement restores it without moving installation authority or adding state machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Exact introduced production change: The production hunk replaces createMemo with createDeferred while retaining the existing capability check, connection revision, plugin generation, request, error handling, and loading boundary. (ui/src/components/app-sidebar-customize.tsx:180, 04c0437d4f65)
  • Current main still needs the repair: The affected files on fetched main match the introduction base, which still uses the blocking inventory memo and lacks the test readiness opt-out. (ui/src/components/app-sidebar-customize.tsx:170, 7af6c4fc31b6)
  • Installation authority remains separate: The plugin page requires authoritative inventory mutationAllowed before enabling mutations; its detail view retains the inventory-loading explanation and feeds canMutate into Install availability. (ui/src/pages/plugins/plugins-page.ts:210, 04c0437d4f65)
  • Pinned deferred-read contract: The patch imports createDeferred from solid-js, making its runtime contract directly relevant; published 2.0.0-rc.18 metadata identifies this commit, whose implementation retains committed values during refetch without holding consumers. (packages/signals/src/deferred.ts:94, 225014bf8757)
  • Browser evidence inspected: All four supplied PNGs were inspected: the clean and annotated before frames show the skeleton, and the after frames show Matrix details, a disabled Install button, and Loading plugins… in real Chromium with synthetic Gateway data. (04c0437d4f65)
  • Related fixture repair: fix(test): allow pending plugin inventory during navigation #201551 proposes the identical readiness opt-out but changes no production code; this PR retains every pending-state and inventory-release assertion while also repairing the sidebar. (ui/src/pages/plugins/plugins.e2e.test.ts:69, c6b1b9a7eca3)

PR surface

Source +10, Tests +3. Total +13 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 12 2 +10
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 2 16 3 +13

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:

  • add P2: Pending optional inventory can stall plugin detail navigation, with impact limited to the Customize UI.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Pending optional inventory can stall plugin detail navigation, with impact limited to the Customize UI.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 19, 2026, 7:00 AM ET / 12:00 UTC.

@RomneyDa
RomneyDa merged commit ea74900 into main Nov 19, 2026
181 of 182 checks passed
@RomneyDa
RomneyDa deleted the openclaw/ci-pr-sidebar-inventory-nov19 branch November 19, 2026 12:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
…01792)

* fix: keep plugin details responsive while inventory loads

Co-authored-by: RomneyDa <[email protected]>

* fix: keep plugin details responsive while inventory loads

OpenClaw-Publication: 8a35f8df-a36c-418f-850e-4dcdce53e159

---------

Co-authored-by: RomneyDa <[email protected]>
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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