Skip to content

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

feat(agent): add state synchronization to queued turn

Steven Enamakelcefdc4cf4d94
diff --git a/crates/openhuman-core/src/agent/queued_turn.rs b/crates/openhuman-core/src/agent/queued_turn.rs
index 31c1f60c0f..536aeeb65d 100644
--- a/crates/openhuman-core/src/agent/queued_turn.rs
+++ b/crates/openhuman-core/src/agent/queued_turn.rs
@@ -88,6 +88,15 @@ impl RequeuePayload for QueuedPayload {
if self.trusted_turn.is_none() {
self.trusted_turn.clone_from(&running.trusted_turn);
}
+ self.deferred_user_message |= running.deferred_user_message;
+ if self.pending_attachments.is_none() {
+ self.pending_attachments
+ .clone_from(&running.pending_attachments);
+ }
+ if self.stored_attachments.is_none() {
+ self.stored_attachments
+ .clone_from(&running.stored_attachments);
+ }
if self.client_id.is_empty() {
self.client_id.clone_from(&running.client_id);
self.model_override.clone_from(&running.model_override);