状态{statusPill(detail.status)}
团队{detail.team_name || "—"}
模型{detail.model_name || "—"}
计价{pts(detail.estimated_cost)} → {pts(detail.actual_cost)} 积分{detail.cost_anomaly ? " ⚠" : ""}
平台成本{Number(detail.base_cost || 0) > 0 ? `¥${detail.base_cost} · 毛利 ${detail.margin_yuan != null ? `¥${detail.margin_yuan}` : "—"}` : "未知"}
+
模型调用{attempts.length ? `${attempts.length} 次 · ${fallbackUsed ? "发生 Fallback" : "未切换"}` : "旧任务 · 无尝试链"}
+ {finalAttempt &&
最终成功模型{finalAttempt.provider_display_name || finalAttempt.provider_name} / {finalAttempt.model_display_name || finalAttempt.model_name}
}
+ );
+ })()}
+ {detail.attempts?.length > 0 && (
+ <>
+
+ {detail.attempts.map((attempt) => (
+
+
+ // {String(attempt.sequence).padStart(2, "0")}
+ {statusPill(attempt.status)}
+ {attemptKind(attempt)}
+
+
+ {attempt.provider_display_name || attempt.provider_name}
+ /
+ {attempt.model_display_name || attempt.model_name}
+
+
+ {attempt.operation}
+ {attempt.duration_ms == null ? "耗时 —" : `耗时 ${attempt.duration_ms} ms`}
+ {Number(attempt.platform_cost || 0) > 0 ? `平台成本 ¥${attempt.platform_cost}` : "平台成本未知"}
+ {attempt.provider_task_id && Provider ID {attempt.provider_task_id}}
+
+ {(attempt.error_type || attempt.raw_error) && (
+
+ [{attempt.error_type || "unknown"}{attempt.provider_error_code ? ` · ${attempt.provider_error_code}` : ""}]
+ {attempt.raw_error || attempt.safe_error_summary}
+
+ )}
+
+ ))}
+
+ >
+ )}
{detail.error_message && (
<>