mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 22:58:58 +08:00
autonomy M1 phase4: expose last pause reason/time in task queue API and task detail view
This commit is contained in:
@@ -13,6 +13,8 @@ type TaskAuditItem = {
|
||||
source?: string;
|
||||
idle_run?: boolean;
|
||||
block_reason?: string;
|
||||
last_pause_reason?: string;
|
||||
last_pause_at?: string;
|
||||
duration_ms?: number;
|
||||
retry_count?: number;
|
||||
error?: string;
|
||||
@@ -115,6 +117,17 @@ const TaskAudit: React.FC = () => {
|
||||
<div className="p-2 rounded bg-zinc-950/60 border border-zinc-800 whitespace-pre-wrap text-amber-200">{selected.block_reason || '-'}</div>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-3">
|
||||
<div>
|
||||
<div className="text-zinc-500 text-xs mb-1">{t('lastPauseReason')}</div>
|
||||
<div className="p-2 rounded bg-zinc-950/60 border border-zinc-800 whitespace-pre-wrap text-zinc-200">{selected.last_pause_reason || '-'}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className="text-zinc-500 text-xs mb-1">{t('lastPauseAt')}</div>
|
||||
<div className="p-2 rounded bg-zinc-950/60 border border-zinc-800 whitespace-pre-wrap text-zinc-200">{selected.last_pause_at || '-'}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div className="text-zinc-500 text-xs mb-1">{t('taskLogs')}</div>
|
||||
<div className="p-2 rounded bg-zinc-950/60 border border-zinc-800 whitespace-pre-wrap text-zinc-200">{Array.isArray(selected.logs) && selected.logs.length ? selected.logs.join('\n') : '-'}</div>
|
||||
|
||||
Reference in New Issue
Block a user