Skip to content

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

fix(orchestration): use distinct record id for awaiting-input pauses

Steven Enamakel193a07a8e9e6
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index 6f90f15087..4e1f37c05e 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -382,7 +382,7 @@ pub(crate) async fn record_awaiting_input(
// A pause is deliverable to the parent, but it is not the task's final
// completion. Use an independent key for every pause so resumed work can
// pause again and still eventually record under the original task id.
- let pause_record_id = task_id.clone(); // regression proof: shared completion key
+ let pause_record_id = awaiting_input_record_id(&task_id);
let summary = crate::agent::orchestration::tools::awaiting_user::awaiting_user_envelope(
&task_id,
&agent_id,