소스 검색

chore: generate

GitHub Action 2 달 전
부모
커밋
f242541ef3
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

+ 1 - 3
packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

@@ -160,9 +160,7 @@ export function Autocomplete(props: {
 
     props.setPrompt((draft) => {
       if (part.type === "file") {
-        const existingIndex = draft.parts.findIndex(
-          (p) => p.type === "file" && "url" in p && p.url === part.url,
-        )
+        const existingIndex = draft.parts.findIndex((p) => p.type === "file" && "url" in p && p.url === part.url)
         if (existingIndex !== -1) {
           const existing = draft.parts[existingIndex]
           if (