auto-sync: 2026-05-26 14:39:55
This commit is contained in:
@@ -99,10 +99,14 @@ daemon:
|
||||
|
||||
### A0:stdout 为空(进程异常终止)
|
||||
|
||||
> 注意:A0 在判定顺序上位于 A4 之后。exit=0 + stdout 为空 + task_status=done/review
|
||||
> 会被 A4/A1 兜住,不会走到 A0。
|
||||
|
||||
```
|
||||
现象:
|
||||
- 进程退出(exit=0 或 exit≠0)
|
||||
- 进程退出,exit_code ≠ 0
|
||||
- stdout 完全为空(没有 JSON 输出)
|
||||
- status 解析为 None
|
||||
|
||||
原因:进程被异常终止(被 kill、崩溃等),没有走到 writeRuntimeJson
|
||||
|
||||
@@ -114,6 +118,22 @@ daemon:
|
||||
- 等 ticker 重新 dispatch
|
||||
```
|
||||
|
||||
### A0b:stdout 为空但 exit=0
|
||||
|
||||
```
|
||||
现象:
|
||||
- 进程退出,exit_code = 0
|
||||
- stdout 完全为空(没有 JSON 输出)
|
||||
- status 解析为 None
|
||||
|
||||
原因:openclaw agent --json 在某些情况下不输出 JSON(已知行为)
|
||||
|
||||
处理:
|
||||
- 查任务 DB 状态
|
||||
- done/review → outcome = "completed"(正常完成)
|
||||
- 其他 → outcome = "agent_error"(不续杯,等 ticker)
|
||||
```
|
||||
|
||||
### A1:status="ok" + summary="completed" + fallbackUsed=false
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user