Repository navigation
fix(ui): preserve plugin category navigation while searching - #144661
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 3:44 AM ET / 07:44 UTC. ClawSweeper reviewWhat this changesThe Plugins page classifies catalog responses using their original request arguments so pending category results cannot erase navigation while a search starts, with regression coverage and documentation. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix for a source-confirmed race on current main. No introduced correctness or security defects were found, and the inspected captures support the visible improvement. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI’s plugin discovery controller turns category selections and search text into Gateway catalog requests. It supplies results, category navigation, and home shelves to the Plugins page. flowchart LR
A[Category selection or search] --> B[Plugin discovery controller]
B --> C[Capture request classification]
C --> D[Gateway catalog request]
D --> E[Response completion]
E --> F[Update search results]
E --> G[Update home navigation only for overview]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +7, Tests +124, Docs 0. Total +131 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep overview-cache updates tied to captured request scope within the existing discovery controller. Do we have a high-confidence way to reproduce the issue? Yes: load the overview, select a category, start typing, and resolve the category request before the 250 ms debounce expires. Current-main source establishes the failure; this review did not execute it. Is this the best way to solve the issue? Yes: capturing the existing overview predicate with request arguments repairs the incorrect cache update without adding another state owner or changing the Gateway contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e9391f65dc3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where the Plugins catalog could lose its category navigation when a category response arrived while the user was starting a search. Search results still appeared, but the category chips and saved home shelves stayed empty until the overview was loaded again.
Why This Change Was Made
Typing a search clears the selected category immediately, while the query is committed after a 250 ms debounce. Completion previously used that mutable UI state to decide whether a response was an overview. A pending category response could therefore overwrite home categories and shelves with values it never contained.
The existing task result now carries its overview classification from the captured request arguments. Completion consumes that fact, using the same existing predicate as the current view. The obsolete hydration-invalidation comment was removed. This adds seven production lines without changing the request protocol or debounce behavior.
User Impact
Previously loaded catalog categories and home shelves remain available while searching, even when responses arrive during the debounce window. Home loading, filtered reconnects, and pagination keep their existing behavior.
Evidence
Local proof and captures are bound to
ae94766f288b54ec7ac840cc4e1479232405949b. Subsequent main changes to category icons, category fixtures, a sibling browser case, and a Boolean-reader alias were inspected separately. The controller and Gateway overview predicate are unchanged; the new regression derives its expected labels from the actual loaded categories. No live Gateway, ClawHub, provider, or channel request was used.