fix(kanban-search): derive the too-long badge from the deferred query

The badge describes the board, so reading the live query made it flip a
frame before the filter it is describing.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinjing
2026-07-29 17:05:28 -07:00
co-authored by Orca
parent 7938f4af93
commit 5520363bea
@@ -74,7 +74,9 @@ export function useWorkspaceKanbanSearch(args: {
hasQuery: matchingWorktreeIds !== null,
// Why: whitespace-only text is also non-filtering, but it is self-evidently
// so. A discarded 2KB paste looks identical to a query that matched
// everything, so only that case earns an explanation.
isQueryTooLarge: isWorktreePaletteQueryTooLarge(query)
// everything, so only that case earns an explanation. Read the deferred
// query, not the live one — this describes the board, so it has to change
// on the same frame the board does.
isQueryTooLarge: isWorktreePaletteQueryTooLarge(deferredQuery)
}
}