Skip to content

bug(platform): the ⌘K search palette says "no results" when its searches fail #4890

Closed

Description

@yannickmonney

Problem

The sidebar search palette (⌘K) reports "no results" when its searches fail, so during an outage a chat or project that exists looks missing. In the "Everything" scope, a partly failed search also drops whole groups without a word. Paths at main c94f1fd84, under services/platform/app/.

  • components/layout/app-sidebar/platform-search-source.ts:137-147 reports only 'loading' or 'ready', never 'error', for the combined projects, tasks, chats, documents and contacts sources.
  • The chat source maps a failed backend to an empty result on purpose (features/chat/data/chat-search-source.ts:55-60): "An unavailable backend reads as 'no results' rather than an error banner — the palette is a navigation aid, not a health surface."
  • The palette has an error state ready: SearchStatus includes 'error', and SearchSourceState carries error (packages/ui/src/components/search/types.ts:5, :56-57).
  • The app's own rule for reads (lib/backend/read-state.ts:1-4) is that "a failed read is the screen's to name and retry, never a silent empty list (bug(platform): a failed project folder read silently hides files that loaded successfully #3736, Bug: failed knowledge-entry reads look like an empty library or missing history #3777)".

Effect: someone searching for a chat during a backend blip is told it doesn't exist. They may start a new one, or conclude data was lost. Nothing suggests trying again.

Expected

  • Report status: 'error' when every queried source failed, and show the palette's error title and hint with a retry.
  • When only some groups failed, keep the results that loaded and add one line saying some results couldn't load.
  • If the "navigation aid" exception is meant to stay, record it as an explicit product decision in the read-state rule.

Regression: a platform-search-source test where the chat source's read rejects. The state is 'error', not 'ready' with no results. On c94f1fd84 it's 'ready'.

Severity and owner

  • Severity: low-medium. It misleads, but only during failures.
  • Owner: platform (shell, search).
  • Found by: Review A (TALE-358), 2026-10-12 20:15 Zurich occurrence, oldest-due shell.search-palette UX-CLARITY slice. This is static reading at c94f1fd84, verified at the cited lines. I didn't run it, because Review A's stack is BLOCKED.

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    68f581f
  3. added a commit that references this issue on Oct 30, 2026
    c51b374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions