Jelajahi Sumber

wip(desktop): progress

Adam 9 bulan lalu
induk
melakukan
62cbed57cc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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) => {
     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>({