Search failure is indistinguishable from the empty pre-query state #107
Labels
No labels
bug
duplicate
enhancement
future
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/TeaLeaves#107
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium · Confidence: High · Effort: XS · Category: ui
Evidence
app/src/pages/Search/SearchPage.tsx:139-153-catch { setResults(null); };:511-519- renders the same "Type to search." empty state whenresultsis null.Problem
If
/api/searcherrors (500, timeout, embedding backend down for semantic search), the UI reverts to the exact pre-query empty state. A user who searched sees no indication the request failed.Impact
A user concludes their content isn't there rather than that search errored - especially damaging for semantic search when the AI backend is down.
Fix
Add a distinct
errorstate and render "Search failed - try again."Acceptance criteria
/api/searchshows an error message, not the empty prompt.Filed from the 2026-07-15 codebase audit. Full report:
docs/.internal/report-2026-07-15.md(gitignored)./api/searchfailures (500, timeout, embedding backend down) now render a distinct 'Search failed — try again.' state instead of reverting to the identical 'Type to search' empty prompt.Shipped in
59e4fdd(test fix6561f9a), part of the v7.3.0 milestone. Verified on dev (v7.2.1-3-g6561f9a): app suite 65/65 and api suite 268/268 green on the dev server; the one CI red was the known runner flake (iac#159), not this change.