From fb5b632684d8a44d1d722c1383ac803d2171189f Mon Sep 17 00:00:00 2001 From: Chickenlj Date: Thu, 11 Jun 2026 10:36:47 +0800 Subject: [PATCH 1/2] bump to 2.0.0-RC3 --- agentscope-dependencies-bom/pom.xml | 2 +- agentscope-distribution/agentscope-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agentscope-dependencies-bom/pom.xml b/agentscope-dependencies-bom/pom.xml index 00732bb042..a188311ffb 100644 --- a/agentscope-dependencies-bom/pom.xml +++ b/agentscope-dependencies-bom/pom.xml @@ -60,7 +60,7 @@ - 2.0.0-SNAPSHOT + 2.0.0-RC3 UTF-8 UTF-8 17 diff --git a/agentscope-distribution/agentscope-bom/pom.xml b/agentscope-distribution/agentscope-bom/pom.xml index 55eddcd899..85b9efbffb 100644 --- a/agentscope-distribution/agentscope-bom/pom.xml +++ b/agentscope-distribution/agentscope-bom/pom.xml @@ -59,7 +59,7 @@ - 2.0.0-SNAPSHOT + 2.0.0-RC3 UTF-8 UTF-8 17 diff --git a/pom.xml b/pom.xml index 4fce3c9449..d612e96444 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ AgentScope Java - Parent - 2.0.0-SNAPSHOT + 2.0.0-RC3 UTF-8 UTF-8 17 From a6c91b232e395e9e28022eb29dc4281100df0baf Mon Sep 17 00:00:00 2001 From: markyuclaw Date: Sat, 27 Jun 2026 14:31:17 +0800 Subject: [PATCH 2/2] Normalize \r\n to \n for file content in LocalFilesystem.edit() --- .../harness/agent/filesystem/local/LocalFilesystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agentscope-harness/src/main/java/io/agentscope/harness/agent/filesystem/local/LocalFilesystem.java b/agentscope-harness/src/main/java/io/agentscope/harness/agent/filesystem/local/LocalFilesystem.java index 243e17940a..fe8b580de1 100644 --- a/agentscope-harness/src/main/java/io/agentscope/harness/agent/filesystem/local/LocalFilesystem.java +++ b/agentscope-harness/src/main/java/io/agentscope/harness/agent/filesystem/local/LocalFilesystem.java @@ -359,7 +359,8 @@ public EditResult edit( ReentrantLock lock = fileLocks.computeIfAbsent(lockKey, k -> new ReentrantLock()); lock.lock(); try { - String content = Files.readString(resolved, StandardCharsets.UTF_8); + String content = Files.readString(resolved, StandardCharsets.UTF_8) + .replace("\r\n", "\n").replace("\r", "\n"); String normalizedOld = oldString.replace("\r\n", "\n").replace("\r", "\n"); String normalizedNew = newString.replace("\r\n", "\n").replace("\r", "\n");