docs: 更新 AGENTS/README 平台架构说明与月度总结,运行日志视图支持已取消状态

This commit is contained in:
2026-10-31 17:55:25 +08:00
parent e1b4097573
commit b976b80d9d
201 changed files with 11049 additions and 7398 deletions
+2 -1
View File
@@ -431,7 +431,8 @@ function watchRun(scheduleId, runId) {
if (timer) clearTimeout(timer);
const target = _schedules.find((x) => x.id === scheduleId);
if (!target) return; // 任务已被删除
target.last_status = ev.ok ? "ok" : "error";
// 用户强制停止 / 排队取消记为 cancelled:计划视图显示「已取消」,不混进失败
target.last_status = ev.ok ? "ok" : (ev.status === "cancelled" ? "cancelled" : "error");
target.last_duration = parseInt(ev.duration_sec, 10) || 0;
target.last_error = ev.ok ? "" : ev.error || "";
persist();