auto-sync: 2026-05-26 20:29:32

This commit is contained in:
cfdaily
2026-05-26 20:29:32 +08:00
parent cd6d770365
commit 65b0beeb10
+1 -1
View File
@@ -764,7 +764,7 @@ curl -X POST http://{api_host}:{api_port}/api/projects/{project_id}/tasks/{task_
"""
# ── 关键:手动 release counter(进程退出 = agent 空闲)──
if self.counter:
self.counter.release(agent_id)
self.counter.release(agent_id, session_id or "main")
# 旧 wrapped_on_complete 含 counter.release,不再使用,防止 double release
on_complete = None