Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(runtime): improve error handling for native media staging cleanup

Steven Enamakel91b3ed0fd0c3
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs
index 4fdc3d6a51..57c3fa542c 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs
@@ -614,10 +614,12 @@ pub(crate) async fn run(
);
let result = runner_result.map_err(|error| error.to_string());
if !queued && result.is_err() {
- if let Some(staged_lease) = staged_lease.as_ref()
- && staged_lease.discard().await.is_err()
- {
- tracing::warn!("[channels::dispatch] failed to clean rejected native media staging");
+ if let Some(staged_lease) = staged_lease.as_ref() {
+ if staged_lease.discard().await.is_err() {
+ tracing::warn!(
+ "[channels::dispatch] failed to clean rejected native media staging"
+ );
+ }
}
}
if queued {