Recover incomplete session exports through durable runtime jobs

This commit is contained in:
2026-10-20 16:28:14 +01:00
parent 6841cdd2a4
commit a049b552f6
14 changed files with 960 additions and 20 deletions
+2
View File
@@ -1294,6 +1294,8 @@ function artifactAction(kind, label, disabled, onclick) {
function renderSessionExport(step) {
const file = sessionExportArtifact(step);
const wrap = h("div", { class: "session-export" });
const recovery = step?.session_export_recovery;
if (recovery) wrap.append(h("div", { class: "muted", text: `Automatic export recovery: ${recovery.status} · ${recovery.attempts}/3 attempts. ${recovery.diagnostic || ""}` }));
for (const repair of step?.session_export_repairs || []) {
const row = h("div", { class: "session-export-repair" });
row.append(h("span", { text: `Repair: ${repair.status || "partial"} · ${repair.messages || 0} messages. ${repair.diagnostic || ""}` }));