mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 07:58:05 +01:00
The command palette hand-rolled its own debounce, abort and stale-answer drop. @bitbaum/searchkit/react's useSearchAsYouType does exactly that, and the org rule is that a package capability is used, not re-implemented. The local useSearch is gone; the palette keeps its cache (an earlier query answers without a request), its keyboard behaviour and its rows. What the reader sees: the last research results stay on screen while a newer query loads instead of blanking out, the "All N results" count only shows for the query actually answered, and a failed research search now says so on the last row instead of failing silently. package-plan.json binds CommandPalette.tsx to useSearchAsYouType under the search block; README describes the new behaviour. Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8 Co-authored-by: Claude <noreply@anthropic.com>