Repository navigation
fix(ui): surface command-palette chat search failures - #124648
Merged
Merged
Conversation
The palette's session search swallowed every gateway error and rendered the plain "No results" empty state — a failed search (e.g. sessions.list rejecting with a store-needs-doctor migration error) was indistinguishable from a successful search with zero matches. Silent failure on a default path is the worst bug class in this repo. Track a sessionSearchFailed flag (set only for the current request id while the palette is open, cleared on every new query/clear), and render "Chat search failed — check the gateway logs and retry" in the empty state instead. Navigation commands stay usable throughout.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 16, 2026 14:48
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 17, 2026
The palette's session search swallowed every gateway error and rendered the plain "No results" empty state — a failed search (e.g. sessions.list rejecting with a store-needs-doctor migration error) was indistinguishable from a successful search with zero matches. Silent failure on a default path is the worst bug class in this repo. Track a sessionSearchFailed flag (set only for the current request id while the palette is open, cleared on every new query/clear), and render "Chat search failed — check the gateway logs and retry" in the empty state instead. Navigation commands stay usable throughout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Found by live Control UI QA: opening the command palette and typing any chat query rendered "No results" even when every visible session title matched. The gateway was actually rejecting
sessions.list(store pending a doctor canonical-key migration), but the palette'ssearchSessionscatch swallowed the error and the empty state rendered as if the search succeeded with zero matches — a silent failure on a default path, the worst bug class per the repo doctrine.Why This Change Was Made
A failed search and an empty search are different facts and must render differently. The palette now records the failure (
sessionSearchFailed, scoped to the current request id while open, cleared on every new query) and the empty state says "Chat search failed — check the gateway logs and retry" instead of "No results". Navigation commands stay usable throughout — the search remains best-effort.User Impact
Operators with a broken session store (or any gateway-side search failure) now see that search is failing instead of concluding their chats are gone.
Evidence
sessions.listrejected withSessionCanonicalKeyMigrationRequiredErrorwhile the palette showed plain "No results" (gateway log confirms 6 consecutive rejections).node scripts/run-vitest.mjs run ui/src/components/command-palette.test.ts— 8/8 pass.pnpm ui:i18n:baseline+pnpm ui:i18n:verifyclean (newpalette.searchFailedkey, English source only per ui/AGENTS.md).