From a0d9d6307fa05b2b70fbf98b0e3db2da2ca8d691 Mon Sep 17 00:00:00 2001 From: WEC Date: Mon, 14 Apr 2025 20:07:03 +0800 Subject: [PATCH 1/7] fix:recently edited files change ignore bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit function shouldIgnore return promise,if dont await,nothing can set in recentlyEditedFilesCache --- core/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.ts b/core/core.ts index 68aa605ac..14c45727c 100644 --- a/core/core.ts +++ b/core/core.ts @@ -642,7 +642,7 @@ export class Core { on("didChangeActiveTextEditor", async ({ data: { filepath } }) => { try { - const ignore = shouldIgnore(filepath, this.ide); + const ignore = await shouldIgnore(filepath, this.ide); if (!ignore) { recentlyEditedFilesCache.set(filepath, filepath); } From 31cb0e657df9dfd22d02760ee1cea8df42aa5b64 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 16 Apr 2025 16:27:16 +0530 Subject: [PATCH 2/7] show not allowed cursor when enter button is disabled --- gui/src/components/mainInput/InputToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index f243f5ac4..a58090bfd 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -65,7 +65,7 @@ const EnterButton = styled.button<{ isPrimary?: boolean }>` cursor: pointer; :disabled { - cursor: wait; + cursor: not-allowed; } `; From 3fe57c13aa3b834d8f9125b0108ed6913d1e728a Mon Sep 17 00:00:00 2001 From: Keerthana Panyam Date: Wed, 16 Apr 2025 13:04:45 -0400 Subject: [PATCH 3/7] edit prompt hint text ellipsized by default the edit prompt hint text was too long to fit into the default side bar width. This is shorter (35 characters compared to 55), and the format is consistent with the hint text. --- gui/src/components/mainInput/ContinueInputBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index 14777acb6..1bcbb3c8c 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -100,7 +100,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) { const historyKey = props.isEditMode ? "edit" : "chat"; const placeholder = props.isEditMode - ? "Describe how to modify the code - use '#' to add files" + ? "Describe changes, '#' to add files" : undefined; const toolbarOptions: ToolbarOptions = props.isEditMode From e0a432ed363f9697791560ed7ad267d29c652f67 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 17 Apr 2025 11:05:00 +0530 Subject: [PATCH 4/7] refactor AddFileCombobox to update selectedFiles based on codeToEdit changes --- gui/src/components/CodeToEditCard/AddFileCombobox.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx index d096f90a2..da77492ae 100644 --- a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx +++ b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx @@ -39,6 +39,17 @@ export default function AddFileCombobox({ } }, []); + useEffect(() => { + // update selectedFiles showing only the files that are in codeToEdit + setSelectedFiles( + (prevSelectedFiles) => + prevSelectedFiles.filter( + (file) => + codeToEdit.findIndex((code) => code.filepath === file.id) !== -1, + ), + ); + }, [codeToEdit]); + const filteredFiles = query === "" ? remainingFiles From 3d243045d03e8d4688bc84ec23147747bcdbb95d Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 17 Apr 2025 11:24:11 +0530 Subject: [PATCH 5/7] reset query state after file selection in AddFileCombobox --- gui/src/components/CodeToEditCard/AddFileCombobox.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx index d096f90a2..f801ac9c7 100644 --- a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx +++ b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx @@ -55,12 +55,14 @@ export default function AddFileCombobox({ setSelectedFiles(files); void onSelect(files.map((file) => file.id)); buttonRef.current?.click(); + setQuery(""); }} > {({ open }) => (
{ if (!open) { From a0dc7ab7c139a68a3542578c0b9529d9295355bf Mon Sep 17 00:00:00 2001 From: erweixin <2991552132@qq.com> Date: Mon, 21 Apr 2025 18:14:18 +0800 Subject: [PATCH 6/7] style: set whitespace-nowrap on dropdown items --- gui/src/components/mainInput/AtMentionDropdown/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/AtMentionDropdown/index.tsx b/gui/src/components/mainInput/AtMentionDropdown/index.tsx index 9d5a10bec..d8c7d5316 100644 --- a/gui/src/components/mainInput/AtMentionDropdown/index.tsx +++ b/gui/src/components/mainInput/AtMentionDropdown/index.tsx @@ -515,7 +515,7 @@ const AtMentionDropdown = forwardRef((props: AtMentionDropdownProps, ref) => { ) : ( )} - {item.title} + {item.title} {" "}
{ ); }) ) : ( - No results + No results )} )} From 1d1f978b709a79f111d62432d2043ebb1ba13b1c Mon Sep 17 00:00:00 2001 From: bright-ren Date: Tue, 22 Apr 2025 09:26:53 +0800 Subject: [PATCH 7/7] fix function.arguments empty issue when use tools call with Qwen2.5 vllm --- core/llm/openaiTypeConverters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/openaiTypeConverters.ts b/core/llm/openaiTypeConverters.ts index 8e0acef56..a3a6ad895 100644 --- a/core/llm/openaiTypeConverters.ts +++ b/core/llm/openaiTypeConverters.ts @@ -51,7 +51,7 @@ export function toChatMessage( type: toolCall.type!, function: { name: toolCall.function?.name!, - arguments: toolCall.function?.arguments!, + arguments: toolCall.function?.arguments! || "{}", }, })); }