Skip to content

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

feat(threads): add prefix_reset field and JsonSchema to turn state types

Steven Enamakelcaa4a1bf6ce7
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/transcript.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/transcript.rs
index 13e5445f6f..3e9583a59d 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/transcript.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/transcript.rs
@@ -62,6 +62,7 @@ impl OpenHumanSessionHost {
.session
.as_ref()
.and_then(|session| session.parent_session_id()),
+ prefix_reset: false,
}
}
}
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
index e8ce3e9ad8..0e167f48bc 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
@@ -172,6 +172,7 @@ pub(super) fn persist_subagent_transcript(
charged_amount_usd: usage.cost.known_usd,
thread_id: thread_id.map(str::to_owned),
task_id: Some(task_id.to_string()),
+ prefix_reset: false,
};
let handle = match transcripts.open_stem(transcript_stem, meta.clone()) {
Ok(handle) => handle,
diff --git a/crates/openhuman-core/src/threads/turn_state/rpc_types.rs b/crates/openhuman-core/src/threads/turn_state/rpc_types.rs
index a1043a7c6d..ef76b4993c 100644
--- a/crates/openhuman-core/src/threads/turn_state/rpc_types.rs
+++ b/crates/openhuman-core/src/threads/turn_state/rpc_types.rs
@@ -50,7 +50,7 @@ pub struct ClearTurnStateRequest {
}
/// Response payload for `openhuman.threads_turn_state_clear`.
-#[derive(Debug, Clone, Serialize, Deserialize)]
+#[derive(Debug, Clone, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct ClearTurnStateResponse {
pub cleared: bool,