Skip to content

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

chore(agent): add debug impl for deferred turn terminal

Steven Enamakeledb7970249cb
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index f5981f2cc8..10cfd307c8 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -401,7 +401,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
// second history or transcript. The runtime only reads it from
// `after_commit`, so a failed/cancelled turn cannot publish its usage
// or tool outcomes as if they had become durable.
- let (terminal_stop, terminal_turn) = {
+ let terminal_stop = {
// Always billed: a repair that timed out after its call answered
// still recorded that call here.
let repair_usage = Some(&repair_usage);
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs b/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs
index 13ad7e5bc2..3a4f582f0e 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs
@@ -14,6 +14,14 @@ pub(crate) struct DeferredTurnTerminal {
pub(crate) journal: Option<crate::agent::tinyagents::journal::TurnJournal>,
}
+impl std::fmt::Debug for DeferredTurnTerminal {
+ fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ formatter
+ .debug_struct("DeferredTurnTerminal")
+ .finish_non_exhaustive()
+ }
+}
+
impl DeferredTurnTerminal {
pub(crate) async fn finish(
self,