Repository navigation
fix: keep plugin details responsive while inventory loads - #201792
Conversation
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8a35f8df-a36c-418f-850e-4dcdce53e159
|
🦞👀 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. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +3. Total +13 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 19, 2026, 7:00 AM ET / 12:00 UTC. |
…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]>
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
git diff --checkpassed. Both affected files are unchanged between the selected basedbf41b9173f6and inspected main8a23d7c11d37.createDeferredcandidate on basede001b58276a582e00955c7944d157b3960ba5cbfound no P0–P3 issues. The reviewed patch SHA-256 is08f9c95416533f9d2185662fe45424776d8a0a7461ba2105c23114819c1c2eca, 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.dbf41b9173f6c3eb128221387533a1096ab1c43athrough head04c0437d4f655164ff4388c0a4fde0ede8155955: 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.Clean before/after comparison
Before: plugin details stay on the route skeleton while inventory is held.
After: Matrix details render, with Install disabled and “Loading plugins…” visible.
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
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.