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

This reverts commit 98b3340cee.
This commit is contained in:
Adam
2026-03-24 18:36:25 -05:00
parent 50f6aa3763
commit cbe1337f24
8 changed files with 128 additions and 240 deletions

View File

@@ -572,7 +572,6 @@ 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))