From 5adf96dc82b90474ab8455bcbba2dac072747863 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Thu, 31 Oct 2024 20:26:04 -0400 Subject: [PATCH] Fixes --- src/core/Cline.ts | 22 ++++++++++--------- .../src/components/settings/SettingsView.tsx | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 6e0a0db..c63a704 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -1032,16 +1032,18 @@ export class Cline { newContent = newContent.split("\n").slice(0, -1).join("\n").trim() } - // it seems not just llama models are doing this, but also gemini and potentially others - if ( - newContent.includes(">") || - newContent.includes("<") || - newContent.includes(""") - ) { - newContent = newContent - .replace(/>/g, ">") - .replace(/</g, "<") - .replace(/"/g, '"') + if (!this.api.getModel().id.includes("claude")) { + // it seems not just llama models are doing this, but also gemini and potentially others + if ( + newContent.includes(">") || + newContent.includes("<") || + newContent.includes(""") + ) { + newContent = newContent + .replace(/>/g, ">") + .replace(/</g, "<") + .replace(/"/g, '"') + } } const sharedMessageProps: ClineSayTool = { diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx index ca14435..ad7ff80 100644 --- a/webview-ui/src/components/settings/SettingsView.tsx +++ b/webview-ui/src/components/settings/SettingsView.tsx @@ -125,8 +125,8 @@ const SettingsView = ({ onDone }: SettingsViewProps) => { marginTop: "5px", color: "var(--vscode-descriptionForeground)", }}> - When enabled, Cline will automatically read files, view directories, and inspect sites without - requiring you to click the Approve button. + When enabled, Cline will automatically view directory contents and read files without requiring + you to click the Approve button.