Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

console: ⌘K / full-page search scope silently truncated to the first 8 nav objects #3047

Closed

Description

@baozhoutao

Symptom

⌘K global search (and the full-page search) can only find records in a subset of the app's objects. Searching an existing record code returns "no results", while the same query against GET /api/v1/search directly (with that object in objects, or with no objects param) matches — the backend index is fine; the UI truncates the scope it requests.

Root cause

useRecordSearch slices its candidate pool to maxObjectsQueried (default 8). That cap is meant to bound the per-object fanout fallback, but it was applied to the pool itself — so the objects whitelist sent to the single-request /api/v1/search only ever named the first 8 nav objects. Which sidebar group happens to come first decides which records are findable; in an app with 40+ searchable objects the rest are unsearchable no matter what the user types, and searchableFields configured on those views is dead weight.

Expected

The searchAll path must send the full app whitelist; the parallel-request cap applies only to the per-object fanout fallback.

Found via real-app dogfooding (os-tianshun-ehr platform defect registry PLAT-DEF-023, on 17.0.0-rc.0).

Activity

  1. self-assigned this
    on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions