mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-22 02:36:12 +00:00
fix(tui): prevent autocomplete search flicker (#38128)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user