Skip to content

fix(ui): preserve plugin category navigation while searching - #144661

Merged
steipete merged 1 commit into
mainfrom
codex/fix-plugin-search-category-navigation
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-plugin-search-category-navigation

Conversation

@steipete

@steipete steipete commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The original controller failed the new request-order regression while ten existing controls passed.
  • The real Plugins page reproduces the same order through the mock Gateway: select Channels, type a search, resolve the category request before debounce, then resolve a distinct search result. Before the fix, all 12 category chips disappear; afterward all 15 original navigation labels remain.
  • Final proof passed 42 distinct tests: 24 controller/catalog-renderer cases and all 18 Plugins browser cases. All 20 selected changed-file checks passed.
  • The two full-page captures below use identical final browser-test bytes and synthetic catalog/profile data. They show the completed search before and after the fix.
  • Independent review completed two clean passes through P2 on this final source.

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.

Before: completed search loses category navigation

After: completed search retains all category navigation

@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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui labels Sep 11, 2026
@steipete
steipete marked this pull request as ready for review September 11, 2026 04:36
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. 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 11, 2026, 3:44 AM ET / 07:44 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: ea82b79c5776dfa17df9e6c473e108c5c6abdd20

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful ordering regressions and directly inspected visual evidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.
Evidence reviewed 8 items Current-main defect remains: Current main classifies completed responses using mutable selection state. updateQuery clears the category immediately but delays committedQuery by 250 ms, allowing a pending category response to clear categories and shelves.
Repair stays with the existing owner: The controller captures overview status before awaiting the response and consumes that fact on completion. Request parameters, debounce timing, pagination, and authorization remain unchanged.
Gateway and renderer contracts: The Gateway supplies categories only for an unfiltered, cursor-free overview. The page view forwards controller categories to the renderer, which displays category chips during searches. This is OpenClaw UI state handling and establishes no Codex dependency.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +7, Tests +124, Docs 0. Total +131 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 11 4 +7
Tests 2 126 2 +124
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 138 7 +131

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This fixes a bounded Plugins navigation race; search results remain available and core workflows are unaffected.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.

Label justifications:

  • P2: This fixes a bounded Plugins navigation race; search results remain available and core workflows are unaffected.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before-and-after captures show the actual Plugins page retaining category navigation after the controlled debounce race. The browser scenario exercises the changed controller through a mocked Gateway; it proves the visible UI outcome, without claiming live ClawHub or Gateway coverage.

Evidence

What I checked:

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 1b9331f into main Sep 11, 2026
288 of 290 checks passed
@steipete
steipete deleted the codex/fix-plugin-search-category-navigation branch September 11, 2026 07:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 docs Improvements or additions to documentation maintainer Maintainer-authored PR 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: S 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