fix(app): more startup efficiency (#18985)

This commit is contained in:
Adam
2026-03-24 13:23:41 -05:00
committed by GitHub
parent 5e684c6e80
commit 98b3340cee
8 changed files with 240 additions and 128 deletions

View File

@@ -572,6 +572,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
const open = recent()
const seen = new Set(open)
const pinned: AtOption[] = open.map((path) => ({ type: "file", path, display: path, recent: true }))
if (!query.trim()) return [...agents, ...pinned]
const paths = await files.searchFilesAndDirectories(query)
const fileOptions: AtOption[] = paths
.filter((path) => !seen.has(path))