Add reliable execution reporting and coordinated dashboard views

This commit is contained in:
aiagent
2026-10-19 04:29:33 -07:00
parent 547f62fa53
commit c2dfe311f7
41 changed files with 3867 additions and 107 deletions
+3 -1
View File
@@ -119,7 +119,9 @@ def run_queued(cfg,message,thread_id,renew,on_thread,on_receipt=lambda value:Non
terminal_failure=None
# A separate history reader can transiently classify an active desktop
# turn as interrupted. Require a stable error before publishing failure.
stable_failure=terminal_failure is not None and time.monotonic()-terminal_failure[1]>=10
stable_failure=(terminal_failure is not None and time.monotonic()-terminal_failure[1]>=10
and turn['status']=='failed' and bool(turn.get('error'))
and turn.get('completedAt') is not None)
if (texts and turn['status']=='completed') or stable_failure:
success=turn['status']=='completed' and bool(texts)
return {'text':redact('\n\n'.join(texts)) if texts else '同一会话本轮未产生可确认的最终回复。',