Skip to content

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

refactor(session_host): move usage module declaration to runtime_session

Steven Enamakel722872fae1f2
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index c0fcbea1a0..c7bbeae10b 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -9,6 +9,9 @@ mod post_commit;
mod prelude;
#[path = "runtime_session/prompt_surface.rs"]
mod prompt_surface;
+#[path = "runtime_session_usage.rs"]
+mod usage;
+pub(super) use usage::{account_committed_turn_against_goal, holistic_last_turn_usage};
#[path = "../../memory/lifecycle/session_hooks.rs"]
mod session_hooks;
mod tool_rules;
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
index 4fd98e0af2..d208dec0c6 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
@@ -343,8 +343,3 @@ impl OpenHumanTurnPrelude {
self.memory_post_turn(receipt);
}
}
-
-#[path = "runtime_session_usage.rs"]
-mod usage;
-pub(super) use usage::{account_committed_turn_against_goal, holistic_last_turn_usage};
-