From a866a1c2711a3a79efd065062b49d91f11e5afd3 Mon Sep 17 00:00:00 2001 From: Sam Hoang Van Date: Mon, 24 Mar 2025 01:31:15 +0700 Subject: [PATCH 1/6] fix add line wrong index (#1927) --- src/core/Cline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 262c2233b4..cdc9b5d6ec 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -2333,7 +2333,7 @@ export class Cline extends EventEmitter { } else { content = addLineNumbers( await readLines(absolutePath, endLine, startLine), - startLine, + startLine + 1, ) } } else if (!isBinary && totalLines > maxReadFileLine) { From f07c7e6f0c17fc7d05cec58dc8f958c1885b87a3 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 23 Mar 2025 22:37:56 -0400 Subject: [PATCH 2/6] Fix question display logic when not streaming (#1931) --- webview-ui/src/components/chat/ChatRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 3f7d174b49..99c773873f 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -252,7 +252,7 @@ export const ChatRowContent = ({ }, [message.ask, message.say, message.text]) const followUpData = useMemo(() => { - if (message.type === "ask" && message.ask === "followup" && message.partial === false) { + if (message.type === "ask" && message.ask === "followup" && !message.partial) { return JSON.parse(message.text || "{}") } return null From 29d784670114092d3e019587f4df4aa6ee3d5577 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sun, 23 Mar 2025 23:15:00 -0400 Subject: [PATCH 3/6] Update suggestion button variant to make it work in all themes (#1932) --- webview-ui/src/components/chat/FollowUpSuggest.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/FollowUpSuggest.tsx b/webview-ui/src/components/chat/FollowUpSuggest.tsx index 76aa32c7fb..24dc42ca7d 100644 --- a/webview-ui/src/components/chat/FollowUpSuggest.tsx +++ b/webview-ui/src/components/chat/FollowUpSuggest.tsx @@ -28,7 +28,7 @@ const FollowUpSuggest = ({ suggestions = [], onSuggestionClick, ts = 1 }: Follow {suggestions.map((suggestion) => (