fix(tui): prevent autocomplete search flicker (#38128)

This commit is contained in:
Dax
2026-07-21 10:41:36 -04:00
committed by GitHub
parent cf2c1bf425
commit 3304e79827
@@ -460,7 +460,7 @@ export function Autocomplete(props: {
// Files come from fff already fuzzy ranked and filtered
// it shouldn't be additionally sorted by fuzzysort as it will loose the results
const fileOptions: AutocompleteOption[] = store.visible === "@" && !files.loading ? fileSearch.options : []
const fileOptions: AutocompleteOption[] = store.visible === "@" ? fileSearch.options : []
const nonFileOptions: AutocompleteOption[] =
store.visible === "@" ? [...referenceAliasesValue, ...agentsValue, ...mcpResources()] : [...commandsValue]