Skip to content

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

fix(agent): correct subagent session type field name

Steven Enamakelf85d978f6cb5
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs
index e1584918f5..96567f52d3 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/types.rs
@@ -62,6 +62,7 @@ pub struct DurableSubagentSession {
pub current_task_id: Option<String>,
pub status: DurableSubagentStatus,
pub reusable: bool,
+ #[serde(default, with = "crate::agent::messages::history_wire::option")]
pub latest_history: Option<Vec<TranscriptMessage>>,
pub latest_error: Option<String>,
pub created_at: String,
diff --git a/crates/openhuman-core/src/agent/subagent_host/types.rs b/crates/openhuman-core/src/agent/subagent_host/types.rs
index f36aaf4061..147d93659b 100644
--- a/crates/openhuman-core/src/agent/subagent_host/types.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/types.rs
@@ -229,6 +229,7 @@ pub struct SubagentCheckpointData {
pub task_id: String,
pub agent_id: String,
pub worker_thread_id: Option<String>,
+ #[serde(with = "crate::agent::messages::history_wire")]
pub history: Vec<TranscriptMessage>,
pub question: String,
pub options: Option<Vec<String>>,