The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(artifacts): surface persisted error on regeneration failure
Steven Enamakelcdb535a12c15
diff --git a/crates/openhuman-core/src/artifacts/ops_tests.rs b/crates/openhuman-core/src/artifacts/ops_tests.rsindex d8f55de0cb..bdd585d019 100644--- a/crates/openhuman-core/src/artifacts/ops_tests.rs+++ b/crates/openhuman-core/src/artifacts/ops_tests.rs@@ -348,13 +348,16 @@ async fn regenerate_reruns_producer_and_reuses_id() {let value = outcome.into_cli_compatible_json().unwrap();assert_eq!(value["artifact_id"], meta.id);assert_eq!(value["regenerated"], true);+ // Read the producer's persisted failure before asserting the thin RPC+ // result so a failed re-dispatch reports the underlying reason.+ let got = get_artifact(tmp.path(), &meta.id).await.unwrap();assert_eq!(value["is_error"], false,- "regeneration unexpectedly returned a tool error: {value}"+ "regeneration unexpectedly returned a tool error: {value}; artifact error: {:?}",+ got.error);// Same id reused in place; the re-run drove it to Ready.- let got = get_artifact(tmp.path(), &meta.id).await.unwrap();assert_eq!(got.id, meta.id);assert_eq!(got.status, ArtifactStatus::Ready);}