Sfoglia il codice sorgente

wip(desktop): progress

Adam 4 mesi fa
parent
commit
62cbed57cc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/desktop/src/components/prompt-input.tsx

+ 1 - 1
packages/desktop/src/components/prompt-input.tsx

@@ -68,7 +68,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
 
 
   const handleFileSelect = (path: string | undefined) => {
   const handleFileSelect = (path: string | undefined) => {
     if (!path) return
     if (!path) return
-    addPart({ type: "file", path, content: "@" + getFilename(path), start: 0, end: 0 })
+    addPart({ type: "file", path, content: "@" + path, start: 0, end: 0 })
   }
   }
 
 
   const { flat, active, onInput, onKeyDown, refetch } = useFilteredList<string>({
   const { flat, active, onInput, onKeyDown, refetch } = useFilteredList<string>({