Skip to content

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

fix(config): remove unused dictation context configuration

Steven Enamakela3ef9f9c59aa
diff --git a/crates/openhuman-core/src/agent/context/manager.rs b/crates/openhuman-core/src/agent/context/manager.rs
index 99d96138d5..98c091f311 100644
--- a/crates/openhuman-core/src/agent/context/manager.rs
+++ b/crates/openhuman-core/src/agent/context/manager.rs
@@ -92,7 +92,7 @@ pub struct ContextManager {
compaction_trigger_tokens: Option<u64>,
/// `[context].compaction_strategy`. See
/// [`ContextConfig::compaction_strategy`].
- compaction_strategy: crate::openhuman::config::schema::CompactionStrategy,
+ compaction_strategy: crate::config::CompactionStrategy,
}
impl ContextManager {
@@ -173,7 +173,7 @@ impl ContextManager {
}
/// How compaction writes its checkpoint.
- pub fn compaction_strategy(&self) -> crate::openhuman::config::schema::CompactionStrategy {
+ pub fn compaction_strategy(&self) -> crate::config::CompactionStrategy {
self.compaction_strategy
}
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs
index 93da7f1869..ca71278965 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs
@@ -60,7 +60,7 @@ pub(crate) struct TurnContextMiddleware {
/// window is unknown. `None` (the default) keeps 90% of the window.
pub(crate) compaction_trigger_tokens: Option<u64>,
/// `[context].compaction_strategy`: how compaction writes its checkpoint.
- pub(crate) compaction_strategy: crate::openhuman::config::schema::CompactionStrategy,
+ pub(crate) compaction_strategy: crate::config::CompactionStrategy,
/// Live transcript snapshot sink (#4466). When set, a
/// [`TranscriptSnapshotMiddleware`] mirrors the running conversation into
/// this shared buffer before every model call, so an erroring run can still
diff --git a/crates/openhuman-core/src/config/mod.rs b/crates/openhuman-core/src/config/mod.rs
index b8b42c0db7..3ca834bd6e 100644
--- a/crates/openhuman-core/src/config/mod.rs
+++ b/crates/openhuman-core/src/config/mod.rs
@@ -43,7 +43,7 @@ pub use schema::{
set_runtime_proxy_config, AgentConfig, AuditConfig, AutonomyConfig, BrowserComputerUseConfig,
BrowserConfig, CapabilityProviderConfig, CapabilityProviderTrustState, ChannelsConfig,
ComposioConfig, ComposioDirectBaseUrls, ComposioHostCredential, ComputerConfig, Config,
- ContextConfig, CostConfig, CronConfig, CurlConfig, DashboardConfig, DecisionModel,
+ CompactionStrategy, ContextConfig, CostConfig, CronConfig, CurlConfig, DashboardConfig, DecisionModel,
DelegateAgentConfig, DiagramViewerConfig, DictationActivationMode, DictationConfig,
DiscordConfig, DockerRuntimeConfig, EmailConfig, EmbeddingRouteConfig, GitbooksConfig,
HttpHeader, HttpRequestConfig, IMessageConfig, IntegrationToggle, IntegrationsConfig,
diff --git a/crates/openhuman-core/src/config/schema/load/env_overlay/dictation_context.rs b/crates/openhuman-core/src/config/schema/load/env_overlay/dictation_context.rs
index f087348883..df098c3ba0 100644
--- a/crates/openhuman-core/src/config/schema/load/env_overlay/dictation_context.rs
+++ b/crates/openhuman-core/src/config/schema/load/env_overlay/dictation_context.rs
@@ -85,7 +85,7 @@ impl Config {
}
}
if let Some(val) = env.get("OPENHUMAN_COMPACTION_STRATEGY") {
- match crate::openhuman::config::schema::CompactionStrategy::parse(&val) {
+ match crate::config::CompactionStrategy::parse(&val) {
Some(strategy) => self.context.compaction_strategy = strategy,
None if val.trim().is_empty() => {}
None => tracing::warn!(