auto-sync: 2026-05-21 23:05:05
This commit is contained in:
@@ -177,7 +177,7 @@ TERMINAL_STATUSES = frozenset() # v3.1: 无终态,全靠 VALID_TRANSITIONS
|
||||
MANUAL_STATUSES = frozenset({"cancelled", "paused"})
|
||||
|
||||
VALID_TRANSITIONS = {
|
||||
"pending": {"claimed", "paused", "cancelled"},
|
||||
"pending": {"claimed", "paused", "blocked", "cancelled"},
|
||||
"claimed": {"working", "paused", "pending", "cancelled"},
|
||||
"working": {"review", "blocked", "failed", "paused", "escalated", "waiting_human", "cancelled"},
|
||||
"paused": {"working", "claimed", "review", "escalated", "waiting_human", "cancelled"}, # 恢复到 resumed_from 记录的状态
|
||||
|
||||
@@ -24,7 +24,7 @@ const STATUS_META: Record<string, { color: string; label: string }> = {
|
||||
};
|
||||
|
||||
const VALID_TRANSITIONS: Record<string, string[]> = {
|
||||
pending: ['claimed', 'paused', 'cancelled'],
|
||||
pending: ['claimed', 'paused', 'blocked', 'cancelled'],
|
||||
claimed: ['working', 'pending', 'paused', 'cancelled'],
|
||||
working: ['review', 'blocked', 'failed', 'paused', 'escalated', 'waiting_human', 'cancelled'],
|
||||
paused: ['working', 'claimed', 'review', 'escalated', 'waiting_human', 'cancelled'],
|
||||
|
||||
Reference in New Issue
Block a user