Skip to content

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

refactor(session_host): drop unused fallback model parameter

Steven Enamakel6bebe7991e14
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rs
index aefd8aa03b..3f1c85ed0c 100644
--- a/crates/openhuman-core/src/agent/session_host/driver.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver.rs
@@ -213,7 +213,6 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {
&snapshot,
&sidecar,
started.elapsed(),
- &self.model_name,
));
}
};
@@ -523,7 +522,6 @@ fn driver_error_with_snapshot(
std::sync::Mutex<crate::agent::tinyagents::host::run_context::SessionTurnSidecar>,
>,
elapsed: std::time::Duration,
- fallback_model: &str,
) -> DriverFailure {
// Classify from the typed harness error when the chain carries one, rather
// than matching on its rendered text.
diff --git a/crates/openhuman-core/src/agent/session_host/driver_tests.rs b/crates/openhuman-core/src/agent/session_host/driver_tests.rs
index 0ade713d73..89b5d0ce4d 100644
--- a/crates/openhuman-core/src/agent/session_host/driver_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver_tests.rs
@@ -27,7 +27,6 @@ fn graph_failure_persists_only_accepted_snapshot_history() {
&snapshot,
&sidecar(),
std::time::Duration::from_millis(1),
- "chat-v1",
);
let partial = failure.partial.expect("snapshot should produce a partial");
assert_eq!(partial.history.len(), 2);
@@ -63,7 +62,6 @@ fn stalled_model_stream_reports_completed_evidence_instead_of_its_narration() {
&snapshot,
&sidecar(),
std::time::Duration::from_millis(1),
- "chat-v1",
);
let terminal = failure.outcome.as_ref().expect("typed terminal outcome");
assert_eq!(
@@ -117,7 +115,6 @@ fn graph_failure_copies_snapshot_usage_and_failed_tool_outcome_to_sidecar() {
&snapshot,
&sidecar,
std::time::Duration::from_millis(25),
- "chat-v1",
);
let partial = failure.partial.expect("recoverable snapshot partial");
assert_eq!(partial.history, vec![Message::user("request")]);
@@ -193,7 +190,6 @@ fn empty_snapshot_failure_still_carries_the_typed_terminal_outcome() {
&snapshot,
&sidecar(),
std::time::Duration::from_millis(1),
- "chat-v1",
);
assert!(typed.partial.is_none());
let terminal = typed.outcome.expect("typed outcome on the empty branch");
@@ -207,7 +203,6 @@ fn empty_snapshot_failure_still_carries_the_typed_terminal_outcome() {
&snapshot,
&sidecar(),
std::time::Duration::from_millis(1),
- "chat-v1",
);
assert!(untyped.outcome.is_none());
}