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
fix(threads): handle empty todo list in run execution\n\nWhen a thread's todo list is empty, the run execution now correctly returns early instead of attempting to process nonexistent items, preventing a potential panic or undefined behavior.\n\nAuto-committed-on: dragonfly\n
Steven Enamakele6f4363b5f5a
diff --git a/src/openhuman/threads/todos/runs.rs b/src/openhuman/threads/todos/runs.rsindex eafdae2315..ab504d12be 100644--- a/src/openhuman/threads/todos/runs.rs+++ b/src/openhuman/threads/todos/runs.rs@@ -185,13 +185,13 @@ pub async fn migrate_legacy_task_runs(Ok(body) => match serde_json::from_str(&body) {Ok(runs) => runs,Err(error) => {- tracing::debug!(path = %path.display(), %error, "skip invalid legacy run ledger");+ tracing::warn!(path = %path.display(), %error, "skip invalid legacy run ledger");report.skipped += 1;continue;}},Err(error) => {- tracing::debug!(path = %path.display(), %error, "skip unreadable legacy run ledger");+ tracing::warn!(path = %path.display(), %error, "skip unreadable legacy run ledger");report.skipped += 1;continue;}