Skip to content

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

fix(context): remove unused context manager module

Steven Enamakel58c3b927c5f6
diff --git a/crates/openhuman-core/src/agent/context/manager.rs b/crates/openhuman-core/src/agent/context/manager.rs
index 97030c8a8d..b656bc6c9c 100644
--- a/crates/openhuman-core/src/agent/context/manager.rs
+++ b/crates/openhuman-core/src/agent/context/manager.rs
@@ -148,11 +148,6 @@ impl ContextManager {
self.stats_state.record_usage(usage);
}
- /// Bump the session-memory turn counter (called once per user turn).
- pub fn tick_turn(&mut self) {
- self.stats_state.tick_turn();
- }
-
// ─── Prompt building ───────────────────────────────────────────
/// Assemble the opening system prompt for a session using the
diff --git a/crates/openhuman-core/src/agent/context/mod.rs b/crates/openhuman-core/src/agent/context/mod.rs
index 4ec8d3576d..19cf16ae9c 100644
--- a/crates/openhuman-core/src/agent/context/mod.rs
+++ b/crates/openhuman-core/src/agent/context/mod.rs
@@ -21,14 +21,9 @@
pub mod channels_prompt;
pub mod manager;
-pub mod session_memory;
pub mod stats;
pub use manager::{ContextManager, ContextStats};
-pub use session_memory::{
- SessionMemoryConfig, SessionMemoryState, ARCHIVIST_EXTRACTION_PROMPT, DEFAULT_MIN_TOKEN_GROWTH,
- DEFAULT_MIN_TOOL_CALLS, DEFAULT_MIN_TURNS_BETWEEN,
-};
/// Default per-tool-result budget. The live TinyAgents tool-output middleware
/// and action-workspace artifact previews enforce this outside the legacy
/// context reducer modules.