Repository navigation
fix(ui): palette hides chat search failures beside navigation results - #140662
Conversation
|
🦞👀 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: blocked before merge. Reviewed September 6, 2026, 10:41 PM ET / September 7, 2026, 02:41 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +1. Total -1 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest 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. 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.
|
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
pluginsleft 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/pluginsboth 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:changedpass. 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:
After: