fix: cockpit v1 diagnose 心跳超时判定 10→20 分钟(对齐 LLM 重试最坏时长)

This commit is contained in:
ymq 2026-08-15 00:46:31 +08:00
parent 13b0aa5de5
commit d5ce25e553

View File

@ -447,7 +447,7 @@ async def _exec_tool(sor, tool, params, ctx, uid, org_id):
except Exception:
pass
cb = (getattr(t,'claimed_by','') or '')[:8]
flag = f"⚠️心跳超时{m}分钟(疑似僵尸)" if m >= 10 else f"已运行{m}分钟"
flag = f"⚠️心跳超时{m}分钟(疑似僵尸)" if m >= 20 else f"已运行{m}分钟"
lines.append(f" [{t.role}] {t.title[:50]} | {flag} | claimed={cb}")
if review:
lines.append(f"\n👀 待审核({len(review)}个):")