Revert "Fix dollar sign replacement bug in file editing (#7703)" (#7823)

This commit is contained in:
Gal Zahavi
2025-09-05 13:34:02 -07:00
committed by GitHub
parent 70188c72a5
commit ce485f213a
6 changed files with 23 additions and 68 deletions

View File

@@ -509,8 +509,7 @@ export class Task {
if (oldString === '' && !isNewFile) {
return currentContent;
}
// Use split/join to ensure replacement
return currentContent.split(oldString).join(newString);
return currentContent.replaceAll(oldString, newString);
}
async scheduleToolCalls(