fix: inspect failed runs without checkpoints

This commit is contained in:
lda
2026-09-09 23:55:19 +07:00 Verified
parent 939eae85e7
commit d930116de2
2 changed files with 33 additions and 0 deletions
@@ -761,6 +761,11 @@ async def test_graceful_shutdown_cancel_leaves_executing_for_recovery(
and "external effects may already" in item.message
for item in record.diagnostics
)
inspected = await server_b.api.inspect_run(run_id=run_id)
assert inspected["status"] == "failed"
assert inspected["resume_readiness"] == "not_applicable"
assert inspected["error"] is not None
assert "external effects may already" in inspected["error"]
assert len(_entries(root, "hanging", "failed")) == 1
finally:
_gate_open.set()