fix: isolate agent sessions and retain runtime resource ownership (#7149)

* fix: arbitrate subscription identity and restore workflow state

* fix: isolate agent sessions and retain runtime resource ownership

* test: preserve legacy empty-owner subscription transactions

* test: handle reaped terminal descendants during shutdown polling

* fix: align shared atomic configuration method with lifecycle prerequisite

* test: cover subagent cancellation and completion lifecycle boundaries

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
This commit is contained in:
Aqr-K
2026-10-23 08:20:59 +08:00
committed by GitHub
parent 951cdc5b27
commit 7584d4b9fc
33 changed files with 1345 additions and 88 deletions

View File

@@ -348,11 +348,9 @@ class ApplyPatchTool(MoviePilotTool):
f"错误:文件 {resolved_path} 在应用补丁期间被创建,拒绝覆盖。"
"请确认文件状态后重新应用补丁。"
)
await self.run_blocking(
"default", atomic_write_text, local_path, new_content, sha256
)
new_sha256 = await self.run_blocking(
"default", calculate_file_sha256, local_path
"default", atomic_write_text, local_path, new_content, sha256,
overwrite=file_patch.operation != "add",
)
verb = "新增" if file_patch.operation == "add" else "更新"
results.append(f"{verb} {resolved_path}(sha256={new_sha256})")