Skip to content

Start the hosted search request alongside the local one, and show search loading states - #2135

Closed
joepio wants to merge 1 commit into
developfrom
claude/project-thread-xp08py-search-parallel
Closed

joepio wants to merge 1 commit into
developfrom
claude/project-thread-xp08py-search-parallel

Conversation

@joepio

@joepio joepio commented Oct 8, 2026

Copy link
Copy Markdown
Member

Requested by Joep · project thread

Before: Store.search awaited the local OPFS index before it sent the hosted /search request, so on a large drive the request started late. The cmd+k panel and the @-resource list showed no clear loading state.

After: the local and hosted searches start together. Local hits show immediately through a new onPartial callback while the hosted answer is pending. cmd+k shows a spinner and skeleton rows, and the @-list shows "Searching..." instead of "No results found".

How: Store.search runs both searches concurrently and keeps the merge, dedupe and destroyed filtering. A failing local index no longer fails a search the server can answer. Two new tests in store-search-server.test.ts.

Screenshots of the loading states are still to come (the sandbox had no browser).

🤖 Generated with Claude Code

https://claude.ai/code/session_0154iW1qSbFvWBajyADNezRi


Generated by Claude Code

Store.search used to await the local OPFS index before firing the hosted
/search request, so the two ran back to back. Start both at once, keep the
merge/dedupe/destroyed filtering, and fall back to server results when the
local search fails. New SearchOpts.onPartial reports local hits early;
useServerSearch uses it to show them while loading stays true.

The cmd+k overlay now shows a spinner and skeleton rows while searching,
and the RTE @-suggestion list shows a Searching... row while items load.
@joepio joepio self-assigned this Oct 8, 2026
joepio added a commit that referenced this pull request Oct 8, 2026
Combines #2123, #2127, #2133, #2134, #2135, #2136, #2138, #2140, #2141, #2142, #2143, #2147, #2149, #2132, #2121, #2129, #2146 and #1870. Includes fixes for the combination: Dagger mount for the form validation cases, drive mapping list without the flush sentinel, web_time in search, sidebar resize test at the touch bar height.

joepio commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Landed on develop through the batch #2153 (d102056), with this PR's head unchanged. Closing as merged.


Generated by Claude Code

@joepio joepio closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant