Skip to content

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

refactor(subagent_host): remove legacy terminal record loading

Steven Enamakel2a5d0d40f11f
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
index 66f682b2b4..b4c52de4bf 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
@@ -343,24 +343,6 @@ impl OpenHumanPersistence {
&self,
key: &SubagentTaskKey,
) -> Result<Option<TerminalRecord>, SubagentError> {
- if let Some(outcome) = legacy_terminal::owner_terminal(&self.checkpoint_dir, key)? {
- self.open_store(true)?
- .import_record(key, None, Some(outcome.clone()))?;
- return Ok(Some(TerminalRecord {
- agent_id: outcome
- .extensions
- .get("agent_id")
- .and_then(serde_json::Value::as_str)
- .unwrap_or_default()
- .to_owned(),
- elapsed_ms: outcome
- .extensions
- .get("elapsed_ms")
- .and_then(serde_json::Value::as_u64)
- .unwrap_or_default(),
- outcome,
- }));
- }
let raw = match std::fs::read_to_string(self.terminal_path(key)) {
Ok(raw) => raw,
Err(error) if error.kind() == std::io::ErrorKind::NotFound => return Ok(None),