This commit is contained in:
Saoud Rizwan
2024-10-31 20:26:04 -04:00
parent 4658e5cead
commit 5adf96dc82
2 changed files with 14 additions and 12 deletions

View File

@@ -1032,6 +1032,7 @@ export class Cline {
newContent = newContent.split("\n").slice(0, -1).join("\n").trim() newContent = newContent.split("\n").slice(0, -1).join("\n").trim()
} }
if (!this.api.getModel().id.includes("claude")) {
// it seems not just llama models are doing this, but also gemini and potentially others // it seems not just llama models are doing this, but also gemini and potentially others
if ( if (
newContent.includes(">") || newContent.includes(">") ||
@@ -1043,6 +1044,7 @@ export class Cline {
.replace(/&lt;/g, "<") .replace(/&lt;/g, "<")
.replace(/&quot;/g, '"') .replace(/&quot;/g, '"')
} }
}
const sharedMessageProps: ClineSayTool = { const sharedMessageProps: ClineSayTool = {
tool: fileExists ? "editedExistingFile" : "newFileCreated", tool: fileExists ? "editedExistingFile" : "newFileCreated",

View File

@@ -125,8 +125,8 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
marginTop: "5px", marginTop: "5px",
color: "var(--vscode-descriptionForeground)", color: "var(--vscode-descriptionForeground)",
}}> }}>
When enabled, Cline will automatically read files, view directories, and inspect sites without When enabled, Cline will automatically view directory contents and read files without requiring
requiring you to click the Approve button. you to click the Approve button.
</p> </p>
</div> </div>