From bb4dffe2a430c5f08c5f8a2a566a6da419d8e651 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:59:59 +0000 Subject: [PATCH 1/4] Initial plan From c064c3781f74fdfd1ae6cab5f3972cfd7df045a4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:03:03 +0000 Subject: [PATCH 2/4] Optimize SystemUtils.move to avoid triggering directory monitoring Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com> --- app/utils/system.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/utils/system.py b/app/utils/system.py index 13f848cc..98a1f553 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -166,10 +166,8 @@ class SystemUtils: 移动 """ try: - # 当前目录改名 - temp = src.replace(src.parent / dest.name) - # 移动到目标目录 - shutil.move(temp, dest) + # 直接移动到目标路径,避免中间改名步骤触发目录监控 + shutil.move(src, dest) return 0, "" except Exception as err: return -1, str(err) From f2a5715b2449c7e7b3d6b8a529509128ba02fcb6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:11:15 +0000 Subject: [PATCH 3/4] Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com> --- app/utils/system.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/utils/system.py b/app/utils/system.py index 98a1f553..13f848cc 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -166,8 +166,10 @@ class SystemUtils: 移动 """ try: - # 直接移动到目标路径,避免中间改名步骤触发目录监控 - shutil.move(src, dest) + # 当前目录改名 + temp = src.replace(src.parent / dest.name) + # 移动到目标目录 + shutil.move(temp, dest) return 0, "" except Exception as err: return -1, str(err) From d61d16ccc4c9046764cc1db498865235963d2ef8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:15:29 +0000 Subject: [PATCH 4/4] Restore the optimization - accidentally reverted in previous commit Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com> --- app/utils/system.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/utils/system.py b/app/utils/system.py index 13f848cc..98a1f553 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -166,10 +166,8 @@ class SystemUtils: 移动 """ try: - # 当前目录改名 - temp = src.replace(src.parent / dest.name) - # 移动到目标目录 - shutil.move(temp, dest) + # 直接移动到目标路径,避免中间改名步骤触发目录监控 + shutil.move(src, dest) return 0, "" except Exception as err: return -1, str(err)