Skip to content

fix(ui): palette hides chat search failures beside navigation results - #140662

Merged
steipete merged 1 commit into
mainfrom
codex/qa2-03-palette-search-20260907
Sep 7, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa2-03-palette-search-20260907

Conversation

@steipete

@steipete steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Related: #124648

Additional instructions

This branch is in the main repository and remains editable by maintainers.

What Problem This Solves

Fixes an issue where users searching chats in the command palette would see no failure notice when chat search failed and the query also matched navigation or catalog entries. For example, searching for plugins left the Plugins destination visible but silently omitted the failed Chats search.

Why This Change Was Made

Render the recorded chat-search failure in the existing search-status region, alongside partial and incomplete transcript-search notices. Remove the empty-state-only failure branch and reuse the existing translated message. Successful results remain available, and failed empty searches do not display a contradictory “No results” message.

User Impact

Users can distinguish a failed chat search from a successful search with no matching chats, while continuing to use navigation and catalog results. Editing the query clears the failure and retries normally.

Evidence

The existing failure-and-retry regression now covers both an unmatched query and plugins. Before the fix, the matching-query case fails because the error is absent; afterward, all 44 palette and catalog tests pass.

Synthetic Chromium runs through the real Control UI with a mocked Gateway confirm the error changes from absent to visible. Clicking Plugins reaches /settings/plugins both before and after the fix. These runs used isolated browser contexts and a source-mode UI server, without a live provider or operator Gateway.

Owning UI test types, full-file lint/format/style checks, and check:changed pass. Independent P2 review found no actionable issues. Integration onto current main is patch-identical, with no upstream changes to the palette owner, its tests, or search helpers.

Production: 8 added / 10 removed lines (net −2). Tests: 5 added / 4 removed lines (net +1).

Before:

Failed chat search hidden behind navigation and catalog results

After:

Chat search failure visible above usable navigation and catalog results

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 7, 2026
@steipete
steipete marked this pull request as ready for review September 7, 2026 02:35
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 6, 2026, 10:41 PM ET / September 7, 2026, 02:41 UTC.

ClawSweeper review

What this changes

The command palette shows chat-search failures alongside usable navigation and catalog results, with regression coverage for matching and unmatched queries.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, focused fix: current main still hides chat-search failures when other results match. No actionable introduced defect was found.

Priority: P2
Reviewed head: 10ca2af64a7a21a90e019b0a204268d2f0b22c38

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with useful regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Its body reports the changed palette rendering exercised in Chromium with a mocked Gateway and preserved Plugins navigation; linked captures could not be retrieved for independent visual inspection.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Its body reports the changed palette rendering exercised in Chromium with a mocked Gateway and preserved Plugins navigation; linked captures could not be retrieved for independent visual inspection.
Evidence reviewed 7 items Verified introduced change: The merge-base-to-head diff matches the supplied introduction evidence and changes only the failure presentation and its existing regression test.
Current main still has the defect: Current main renders searchFailed only inside grouped.length === 0; a matching Plugins destination prevents that branch from rendering.
Existing lifecycle remains intact: Query changes clear failure state and invalidate earlier requests; rejected session searches record failure. Selection and navigation handlers are unchanged, and the new notice reuses the existing translated message.
Findings None None.
Security None None.

How this fits together

The Control UI command palette combines navigation destinations, catalog entries, and Gateway-backed chat searches. Its renderer turns search outcomes into selectable results and status messages.

flowchart TD
  A[Palette query] --> B[Navigation and catalog matches]
  A --> C[Gateway chat search]
  C --> D[Chat results or failure]
  B --> E[Palette renderer]
  D --> E
  E --> F[Selectable results and search notice]
Loading

Before merge

  • Resolve merge risk (P1) - The attached before/after captures could not be retrieved in this review environment, so visual appearance was not independently checked.
Agent review details

Security

None.

PR surface

Source -2, Tests +1. Total -1 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 8 10 -2
Tests 1 5 4 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 13 14 -1

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one shared search-status region that exposes chat failures while preserving usable results and query-driven recovery.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one shared search-status region that exposes chat failures while preserving usable results and query-driven recovery.

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

Yes, from source: reject session listing while searching for plugins, and current main suppresses the failure notice because navigation results exist. This review did not execute the scenario.

Is this the best way to solve the issue?

Yes. Moving the existing failure message into the existing status region fixes the rendering condition without changing search, navigation, configuration, or persistence.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs misleading search feedback with limited blast radius; navigation remains available.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Its body reports the changed palette rendering exercised in Chromium with a mocked Gateway and preserved Plugins navigation; linked captures could not be retrieved for independent visual inspection.

Label justifications:

  • P2: This repairs misleading search feedback with limited blast radius; navigation remains available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Its body reports the changed palette rendering exercised in Chromium with a mocked Gateway and preserved Plugins navigation; linked captures could not be retrieved for independent visual inspection.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: 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 3b61084 into main Sep 7, 2026
277 of 279 checks passed
@steipete
steipete deleted the codex/qa2-03-palette-search-20260907 branch September 7, 2026 04:51
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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