From 788175d66d9ed384c8610a2bebcf6ee43fe35d53 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 21 May 2026 20:46:22 +0800 Subject: [PATCH] auto-sync: 2026-05-21 20:46:22 --- src/frontend/src/components/TaskModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/TaskModal.tsx b/src/frontend/src/components/TaskModal.tsx index 6a59c90..99c7419 100644 --- a/src/frontend/src/components/TaskModal.tsx +++ b/src/frontend/src/components/TaskModal.tsx @@ -27,7 +27,7 @@ const VALID_TRANSITIONS: Record = { pending: ['claimed', 'paused', 'cancelled'], claimed: ['working', 'pending', 'paused', 'cancelled'], working: ['review', 'blocked', 'failed', 'paused', 'escalated', 'waiting_human', 'cancelled'], - paused: ['pending', 'cancelled'], + paused: ['working', 'cancelled'], review: ['done', 'pending', 'failed', 'paused', 'escalated', 'waiting_human', 'cancelled'], escalated: ['working', 'pending', 'paused', 'cancelled'], waiting_human: ['working', 'done', 'paused', 'cancelled'], @@ -117,7 +117,7 @@ function StatusButtons({ status, taskId, onAction }: { status: string; taskId: s { target: 'cancelled', label: '取消', icon: '🚫', bg: '#6b728022', color: '#6b7280', border: '#6b728044' }, ], paused: [ - { target: 'pending', label: '恢复', icon: '▶', bg: '#2ecc8a22', color: '#2ecc8a', border: '#2ecc8a44' }, + { target: 'working', label: '恢复', icon: '▶', bg: '#2ecc8a22', color: '#2ecc8a', border: '#2ecc8a44' }, { target: 'cancelled', label: '取消', icon: '🚫', bg: '#6b728022', color: '#6b7280', border: '#6b728044' }, ], review: [