mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Fixes
This commit is contained in:
parent
4658e5cead
commit
5adf96dc82
2 changed files with 14 additions and 12 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue