Browse Source

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

Dax 3 weeks ago
parent
commit
3304e79827
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/tui/src/component/prompt/autocomplete.tsx

+ 1 - 1
packages/tui/src/component/prompt/autocomplete.tsx

@@ -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]