From 67b3fcb31ad25a9d9eb6f791e7062f8f0fae7b9f Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Sat, 13 Dec 2025 19:50:32 -0600 Subject: [PATCH] chore: cleanup --- packages/desktop/src/components/prompt-input.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index c97c6b6fc..e51a9a0f1 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -152,6 +152,8 @@ export const PromptInput: Component = (props) => { const [placeholder, setPlaceholder] = createSignal(Math.floor(Math.random() * PLACEHOLDERS.length)) createEffect(() => { + session.id + editorRef.focus() if (session.id) return const interval = setInterval(() => { setPlaceholder((prev) => (prev + 1) % PLACEHOLDERS.length) @@ -159,11 +161,6 @@ export const PromptInput: Component = (props) => { onCleanup(() => clearInterval(interval)) }) - createEffect(() => { - session.id - editorRef.focus() - }) - const isFocused = createFocusSignal(() => editorRef) const handlePaste = (event: ClipboardEvent) => { @@ -194,17 +191,12 @@ export const PromptInput: Component = (props) => { addPart({ type: "file", path, content: "@" + path, start: 0, end: 0 }) } - const { flat, active, onInput, onKeyDown, refetch } = useFilteredList({ + const { flat, active, onInput, onKeyDown } = useFilteredList({ items: local.file.searchFilesAndDirectories, key: (x) => x, onSelect: handleFileSelect, }) - createEffect(() => { - local.model.recent() - refetch() - }) - createEffect( on( () => session.prompt.current(),