Skip to content

fix(search): the dependency group appears when the feed lands after the query was typed - #925

Merged
runyourempire merged 1 commit into
mainfrom
fix/palette-deps-late-feed
Oct 11, 2026
Merged

runyourempire merged 1 commit into
mainfrom
fix/palette-deps-late-feed

Conversation

@runyourempire

Copy link
Copy Markdown
Collaborator

Follow-up to #919, found during its live check in the founder's app.

Problem: if the query was set before the Preemption feed loaded, "Your dependencies" stayed empty until the next keystroke. That happens with a pasted query, or when the first feed load is slow. The provider is sync and reads the store's feed. Opening the field starts the load, but results only recompute on input.

Fix: CommandSearch re-runs the current query when preemptionFeed changes while the field is open and non-empty. The intelligence tier answers from its LRU cache, so this adds no extra backend search.

Verified:

  • New CommandSearch.test.tsx stages "typed first, feed later" with a manually released get_preemption_alerts. It fails without the effect and passes with it.
  • A feed that lands on an empty field adds no rows.
  • Search suite 34/34; tsc and eslint are clean; the pre-push gate passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CY6KandRe2fYACyoAHwRPe

…he query was typed

Live check of #919 in the founder's app (2026-10-11): with the query set in
the same tick the field opened, "Your dependencies" stayed empty until the
next keystroke. The provider is sync and reads the store's Preemption feed;
opening the field starts that load, and results are only recomputed on input.
A pasted query, or a slow first load, therefore missed the group.

CommandSearch now re-runs the current query when `preemptionFeed` changes
while the field is open and non-empty (the intelligence tier answers from
its LRU cache, so no extra backend search).

Test: CommandSearch.test.tsx stages "typed first, feed later" with a
manually released get_preemption_alerts promise. It fails without the
effect (group absent) and passes with it; a feed landing on an empty field
adds no rows. Search suite 34/34, tsc and eslint clean.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CY6KandRe2fYACyoAHwRPe
@runyourempire
runyourempire added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit 560eb5c Oct 11, 2026
18 checks passed
@runyourempire
runyourempire deleted the fix/palette-deps-late-feed branch October 11, 2026 12:47
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