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
+5
View File
@@ -31,6 +31,11 @@ Audit additions (2026-10-20): **partial** — explicit run Report format selecto
empty/failed/partial explanations. Unit-tested; browser captures missing under
the audit's no-live-runs constraint. Existing captured states below are unchanged.
Automatic session export recovery additionally shows pending/running/complete/
exhausted job status and its bounded attempt count in the visit pane. Backend
recovery is fixture-tested; this new status line remains **partial**, without a
browser capture (no live runs were authorized).
## Transport and connection
| # | Feature (Android counterpart) | Protocol | Status |
| --- | --- | --- | --- |
+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 || ""}` }));