The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(config): rename agent memory window test file
Steven Enamakelec857124f14a
diff --git a/crates/openhuman-core/src/agent/harness/fork_context.rs b/crates/openhuman-core/src/agent/harness/fork_context.rsindex 16155556bb..334581962f 100644--- a/crates/openhuman-core/src/agent/harness/fork_context.rs+++ b/crates/openhuman-core/src/agent/harness/fork_context.rs@@ -91,7 +91,7 @@ pub struct ParentExecutionContext {/// through this task-local.pub workspace_descriptor: Option<WorkspaceDescriptor>,- /// Parent's agent config (for `max_tool_iterations`, `max_memory_context_chars`,+ /// Parent's agent config (for `max_tool_iterations`,/// dispatcher choice, …).pub agent_config: AgentConfig,diff --git a/crates/openhuman-core/src/agent/tinyagents/config.rs b/crates/openhuman-core/src/agent/tinyagents/config.rsindex fd93bedcf6..bf1d330f42 100644--- a/crates/openhuman-core/src/agent/tinyagents/config.rs+++ b/crates/openhuman-core/src/agent/tinyagents/config.rs@@ -4,9 +4,7 @@//! This is the host half of `docs/specs/plan-agents.md` Phase 3. The agent//! runtime is being made generic over its host, so it cannot read//! [`Config`] — instead the crate declares what it needs and this module is the-//! single place OpenHuman's schema meets it. Mirrors the established-//! `tinycortex::config::memory_config_from` precedent.-//!+//! single place OpenHuman's schema meets it. //!//! # Why the mapping is split into three functions//!//! OpenHuman's model pins are not global. `Config::teams` is keyed by team name@@ -18,7 +16,7 @@//! resolves them: team pins first, then the specific delegate's overrides.use tinyagents_harness::config::{- MemoryLimits, RequiredOutput, SessionConfig, ToolConfig, ToolDispatcher, TurnConfig,+ RequiredOutput, SessionConfig, ToolConfig, ToolDispatcher, TurnConfig,};use crate::config::{@@ -86,7 +84,6 @@ pub fn apply_agent_config(session: &mut SessionConfig, agent: &AgentConfig) {session.agents_md_enabled = agent.agents_md_enabled;session.turn = turn_config_from(agent);session.tools = tool_config_from(agent);- session.memory = memory_limits_from(agent);}/// Maps the per-turn limits out of an [`AgentConfig`].@@ -111,20 +108,6 @@ pub fn tool_config_from(agent: &AgentConfig) -> ToolConfig {}}-/// Maps memory character budgets out of an [`AgentConfig`].-///-/// Reads through `resolved_memory_limits()` rather than the legacy-/// `max_memory_context_chars` scalar: that helper is what applies the-/// `memory_window` preset and the hard ceiling, and bypassing it drops both.-pub fn memory_limits_from(agent: &AgentConfig) -> MemoryLimits {- let limits = agent.resolved_memory_limits();- MemoryLimits {- max_memory_context_chars: limits.max_memory_context_chars,- per_namespace_max_chars: limits.per_namespace_max_chars,- total_tree_max_chars: limits.total_tree_max_chars,- }-}-/// Converts the host's structured-output contract into the crate's.////// The two types are field-identical by design; this is the one place thatdiff --git a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs b/crates/openhuman-core/src/agent/tinyagents/config_tests.rsindex ac2185d350..4e232a5d6e 100644--- a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/config_tests.rs@@ -60,7 +60,6 @@ fn default_config_maps_to_the_crate_defaults() {// dialect: python-style calls mis-parse on too many models.assert_eq!(s.tools.dispatcher, ToolDispatcher::Auto);assert_eq!(s.tools, ToolConfig::default());- assert_eq!(s.memory.max_memory_context_chars, 2000);}#[test]@@ -82,24 +81,6 @@ fn every_dispatcher_spelling_maps_and_unknown_falls_back_to_auto() {}}-#[test]-fn memory_limits_come_from_resolved_limits_not_the_legacy_field() {- let mut c = base();- c.agent.memory_window = Some(crate::config::schema::MemoryContextWindow::Maximum);- // The legacy scalar is deliberately set low; the preset must win.- c.agent.max_memory_context_chars = 1;-- let want = c.agent.resolved_memory_limits();- let got = session_config_from(&c).memory;- assert_eq!(got.max_memory_context_chars, want.max_memory_context_chars);- assert!(- got.max_memory_context_chars > 1,- "preset must override the legacy scalar"- );- assert_eq!(got.per_namespace_max_chars, want.per_namespace_max_chars);- assert_eq!(got.total_tree_max_chars, want.total_tree_max_chars);-}-#[test]fn required_output_contract_is_carried_across() {let mut c = base();diff --git a/crates/openhuman-core/src/config/ops/model.rs b/crates/openhuman-core/src/config/ops/model.rsindex 5a65f3135d..980a8d2845 100644--- a/crates/openhuman-core/src/config/ops/model.rs+++ b/crates/openhuman-core/src/config/ops/model.rs@@ -46,12 +46,6 @@ pub struct MemorySettingsPatch {pub embedding_provider: Option<String>,pub embedding_model: Option<String>,pub embedding_dimensions: Option<usize>,- /// Stepped user-facing memory-context window preset (see- /// [`crate::config::schema::agent::MemoryContextWindow`]).- /// Accepts `"minimal" | "balanced" | "extended" | "maximum"`.- /// Unknown values are silently ignored so old clients can keep- /// posting partial patches.- pub memory_window: Option<String>,}#[derive(Debug, Clone, Default)]@@ -436,17 +430,6 @@ pub async fn apply_memory_settings(if let Some(dimensions) = update.embedding_dimensions {config.memory.embedding_dimensions = dimensions;}- if let Some(window_label) = update.memory_window.as_deref() {- if let Some(window) = crate::config::schema::MemoryContextWindow::from_str_opt(window_label)- {- config.agent.memory_window = Some(window);- } else {- tracing::warn!(- requested = window_label,- "[config] unknown memory_window preset — leaving existing setting unchanged"- );- }- }config.save().await.map_err(|e| e.to_string())?;let snapshot = snapshot_config_json(config)?;Ok(Outcome::new(diff --git a/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs b/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rsindex c2b811ff71..2fa5efc3cc 100644--- a/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs+++ b/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs@@ -323,16 +323,11 @@ async fn apply_memory_settings_updates_all_provided_fields() {embedding_provider: Some("ollama".into()),embedding_model: Some("nomic".into()),embedding_dimensions: Some(768),- memory_window: Some("extended".into()),};let _ = apply_memory_settings(&mut cfg, patch).await.expect("apply");assert_eq!(cfg.memory.embedding_provider, "ollama");assert_eq!(cfg.memory.embedding_model, "nomic");assert_eq!(cfg.memory.embedding_dimensions, 768);- assert_eq!(- cfg.agent.memory_window,- Some(crate::config::schema::MemoryContextWindow::Extended)- );}#[tokio::test]diff --git a/crates/openhuman-core/src/config/schema/agent.rs b/crates/openhuman-core/src/config/schema/agent.rsindex a2f059be0e..e2eb4d288e 100644--- a/crates/openhuman-core/src/config/schema/agent.rs+++ b/crates/openhuman-core/src/config/schema/agent.rs@@ -47,98 +47,6 @@ impl TeamModelConfig {}}-/// User-facing memory-context window preset.-///-/// Each preset maps deterministically (via [`MemoryContextWindow::limits`])-/// to the actual character budgets used by the agent harness when-/// injecting recalled memory and the long-term memory summary tree into-/// new agent / orchestrator sessions. The mapping is the single source-/// of truth — the frontend never decides budgets directly. Presets are-/// bounded (`Maximum` ≈ 8 000 chars of recall + ≈ 128 000 chars of root-/// summary, ≈ 32k tokens) so users cannot accidentally blow up prompts.-///-/// See `gitbooks/developing/memory-context-window.md` for the user-facing tradeoff-/// guidance and the per-preset numbers.-#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, JsonSchema, Default)]-#[serde(rename_all = "lowercase")]-pub enum MemoryContextWindow {- /// Cheapest, lightest. Tight recall + tree-summary budget.- Minimal,- /// Sensible default — current behaviour.- #[default]- Balanced,- /// More continuity at the cost of more tokens per run.- Extended,- /// Maximum allowed continuity — meaningfully larger token bill.- Maximum,-}--/// Concrete character budgets resolved from a [`MemoryContextWindow`]-/// preset. All three caps are bounded to keep prompt growth safe.-#[derive(Debug, Clone, Copy, PartialEq, Eq)]-pub struct MemoryWindowLimits {- /// Cap for `[Memory context]` + `[User working memory]` injection- /// produced by `DefaultMemoryLoader`.- pub max_memory_context_chars: usize,- /// Per-namespace cap when collecting tree-summarizer root summaries- /// for the system prompt (first turn only).- pub per_namespace_max_chars: usize,- /// Hard ceiling across all namespaces for the tree-summary block.- pub total_tree_max_chars: usize,-}--impl MemoryContextWindow {- /// Return the canonical budgets for this preset. The mapping is- /// intentionally stepped (no continuous slider) so the UI and core- /// stay aligned and impact is predictable.- pub fn limits(self) -> MemoryWindowLimits {- match self {- MemoryContextWindow::Minimal => MemoryWindowLimits {- max_memory_context_chars: 800,- per_namespace_max_chars: 2_000,- total_tree_max_chars: 8_000,- },- MemoryContextWindow::Balanced => MemoryWindowLimits {- max_memory_context_chars: 2_000,- per_namespace_max_chars: 8_000,- total_tree_max_chars: 32_000,- },- MemoryContextWindow::Extended => MemoryWindowLimits {- max_memory_context_chars: 4_000,- per_namespace_max_chars: 16_000,- total_tree_max_chars: 64_000,- },- MemoryContextWindow::Maximum => MemoryWindowLimits {- max_memory_context_chars: 8_000,- per_namespace_max_chars: 32_000,- total_tree_max_chars: 128_000,- },- }- }-- /// Stable lowercase label for serialization across CLI / RPC / UI.- pub fn as_str(self) -> &'static str {- match self {- MemoryContextWindow::Minimal => "minimal",- MemoryContextWindow::Balanced => "balanced",- MemoryContextWindow::Extended => "extended",- MemoryContextWindow::Maximum => "maximum",- }- }-- /// Parse from the lowercase label produced by [`Self::as_str`].- /// Returns `None` for unknown inputs so callers can fall back.- pub fn from_str_opt(s: &str) -> Option<Self> {- match s.trim().to_ascii_lowercase().as_str() {- "minimal" => Some(Self::Minimal),- "balanced" => Some(Self::Balanced),- "extended" => Some(Self::Extended),- "maximum" => Some(Self::Maximum),- _ => None,- }- }-}-/// Configuration for a delegate sub-agent used by the `delegate` tool.#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]pub struct DelegateAgentConfig {@@ -278,25 +186,6 @@ pub struct AgentConfig {/// field for one launch.#[serde(default = "default_agent_tool_dispatcher")]pub tool_dispatcher: String,- /// **Legacy** — maximum characters of memory context to inject per- /// turn. Prefer [`AgentConfig::memory_window`]; this field is only- /// honoured for unmigrated configs (those that have never set the- /// preset). Once a preset is explicitly chosen, the preset is- /// authoritative and this value is ignored.- #[serde(default = "default_max_memory_context_chars")]- pub max_memory_context_chars: usize,- /// Stepped user-facing preset that maps to the actual memory- /// injection budgets. See [`MemoryContextWindow`].- ///- /// `None` means "no preset has been chosen yet" (e.g. a config- /// upgraded from a build that predates this setting). In that- /// case [`AgentConfig::resolved_memory_limits`] honours the legacy- /// raw `max_memory_context_chars` field for backward compatibility.- /// Once the user picks a preset (or any caller writes one) it- /// becomes authoritative — the raw field is then ignored, so the- /// UI control is the single source of truth from that point on.- #[serde(default)]- pub memory_window: Option<MemoryContextWindow>,/// Per-channel maximum permission level for tool execution./// Keys are channel names (e.g., "telegram", "discord", "web", "cli")./// Values are permission levels: "none", "readonly" (or "read_only"),@@ -516,10 +405,6 @@ fn default_agent_tool_dispatcher() -> String {"auto".into()}-fn default_max_memory_context_chars() -> usize {- 2000-}-impl AgentConfig {/// Seed legacy installs whose channel-permissions map is empty and/// that already have at least one non-web channel configured,@@ -574,37 +459,6 @@ impl AgentConfig {);true}-- /// Resolve the active memory-context budgets for this agent config.- ///- /// Two cases:- ///- /// 1. **Preset chosen** (`memory_window = Some(_)`) — the preset is- /// authoritative. The legacy raw `max_memory_context_chars`- /// field is ignored entirely. This is the steady-state path: the- /// UI control is the single source of truth.- ///- /// 2. **Unmigrated config** (`memory_window = None`) — fall back to- /// the legacy raw `max_memory_context_chars` for the recall cap- /// so a config upgraded from an older build keeps its previous- /// recall behaviour. The raw value is still bounded by the- /// `Maximum` preset's recall cap so safety limits are preserved.- /// Tree-summary caps come from the `Balanced` baseline because- /// older builds had no notion of a per-namespace tree cap on- /// this code path.- pub fn resolved_memory_limits(&self) -> MemoryWindowLimits {- match self.memory_window {- Some(window) => window.limits(),- None => {- let mut limits = MemoryContextWindow::Balanced.limits();- let hard_cap = MemoryContextWindow::Maximum- .limits()- .max_memory_context_chars;- limits.max_memory_context_chars = self.max_memory_context_chars.min(hard_cap);- limits- }- }- }}impl Default for AgentConfig {@@ -617,8 +471,6 @@ impl Default for AgentConfig {parallel_tools: false,max_parallel_tools: default_max_parallel_tools(),tool_dispatcher: default_agent_tool_dispatcher(),- max_memory_context_chars: default_max_memory_context_chars(),- memory_window: None,channel_permissions: std::collections::HashMap::new(),tool_result_budget_bytes: default_tool_result_budget_bytes(),agent_timeout_secs: default_agent_timeout_secs(),@@ -631,6 +483,3 @@ impl Default for AgentConfig {}}-#[cfg(test)]-#[path = "agent_memory_window_tests_tests.rs"]-mod memory_window_tests;diff --git a/crates/openhuman-core/src/config/schema/agent_memory_window_tests_tests.rs b/crates/openhuman-core/src/config/schema/agent_memory_window_tests_tests.rsdeleted file mode 100644index ad4958840d..0000000000--- a/crates/openhuman-core/src/config/schema/agent_memory_window_tests_tests.rs+++ /dev/null@@ -1,215 +0,0 @@-use super::*;--#[test]-fn presets_are_strictly_ordered_and_bounded() {- let m = MemoryContextWindow::Minimal.limits();- let b = MemoryContextWindow::Balanced.limits();- let e = MemoryContextWindow::Extended.limits();- let max = MemoryContextWindow::Maximum.limits();-- // Recall cap grows monotonically with preset size.- assert!(m.max_memory_context_chars < b.max_memory_context_chars);- assert!(b.max_memory_context_chars < e.max_memory_context_chars);- assert!(e.max_memory_context_chars < max.max_memory_context_chars);-- // Tree summary caps grow monotonically too.- assert!(m.per_namespace_max_chars < b.per_namespace_max_chars);- assert!(b.per_namespace_max_chars < e.per_namespace_max_chars);- assert!(e.per_namespace_max_chars < max.per_namespace_max_chars);- assert!(m.total_tree_max_chars < max.total_tree_max_chars);-- // Hard ceiling is bounded — Maximum still leaves headroom in a- // typical 200k-token context window.- assert!(max.total_tree_max_chars <= 128_000);-}--#[test]-fn balanced_matches_legacy_defaults() {- // Balanced preset must keep historical behaviour: 2 000 char- // recall budget and 32 000 char total tree-summary cap (used to- // be hard-coded constants in `agent/prompts/types.rs`).- let b = MemoryContextWindow::Balanced.limits();- assert_eq!(b.max_memory_context_chars, 2_000);- assert_eq!(b.per_namespace_max_chars, 8_000);- assert_eq!(b.total_tree_max_chars, 32_000);-}--#[test]-fn default_agent_config_is_unmigrated_and_resolves_to_balanced_caps() {- // Default = `memory_window: None` (unmigrated). The recall cap- // falls back to the legacy `max_memory_context_chars` default- // (2 000), which matches Balanced — so the resolved limits are- // byte-identical to the historical behaviour.- let cfg = AgentConfig::default();- assert_eq!(cfg.memory_window, None);- assert_eq!(- cfg.resolved_memory_limits(),- MemoryContextWindow::Balanced.limits()- );-}--#[test]-fn explicit_preset_is_authoritative_and_ignores_legacy_raw_field() {- // Once Minimal is chosen, the preset's recall cap (800) is what- // the harness sees — even if the legacy raw field still holds a- // wider value from before the user picked a preset. Without- // this, switching to `Minimal` in the UI would silently fail to- // shrink the recall budget.- let cfg = AgentConfig {- memory_window: Some(MemoryContextWindow::Minimal),- max_memory_context_chars: 4_000,- ..AgentConfig::default()- };- assert_eq!(- cfg.resolved_memory_limits(),- MemoryContextWindow::Minimal.limits(),- "explicit preset must override legacy raw field"- );-}--#[test]-fn unmigrated_config_honours_legacy_raw_field_within_safety_ceiling() {- // Unmigrated power-user config with a legacy override of 4 000- // keeps that recall cap on upgrade so behaviour doesn't shrink- // silently. Tree caps come from the Balanced baseline because- // older builds had no per-namespace cap on this code path.- let cfg = AgentConfig {- memory_window: None,- max_memory_context_chars: 4_000,- ..AgentConfig::default()- };- let limits = cfg.resolved_memory_limits();- assert_eq!(limits.max_memory_context_chars, 4_000);- assert_eq!(- limits.per_namespace_max_chars,- MemoryContextWindow::Balanced- .limits()- .per_namespace_max_chars- );-- // An unbounded legacy value is clamped to the Maximum preset's- // recall cap so on-disk overrides can't blow up prompts.- let runaway = AgentConfig {- memory_window: None,- max_memory_context_chars: 1_000_000,- ..AgentConfig::default()- };- assert_eq!(- runaway.resolved_memory_limits().max_memory_context_chars,- MemoryContextWindow::Maximum- .limits()- .max_memory_context_chars- );-}--#[test]-fn switching_preset_can_shrink_recall_below_legacy_value() {- // Regression for the CodeRabbit concern: an unmigrated config- // with a wide legacy override that then explicitly picks- // `Minimal` in the UI must end up with the Minimal recall cap,- // not the legacy value.- let mut cfg = AgentConfig {- memory_window: None,- max_memory_context_chars: 4_000,- ..AgentConfig::default()- };- assert_eq!(cfg.resolved_memory_limits().max_memory_context_chars, 4_000);- cfg.memory_window = Some(MemoryContextWindow::Minimal);- assert_eq!(- cfg.resolved_memory_limits().max_memory_context_chars,- MemoryContextWindow::Minimal- .limits()- .max_memory_context_chars- );-}--#[test]-fn from_str_opt_round_trips() {- for window in [- MemoryContextWindow::Minimal,- MemoryContextWindow::Balanced,- MemoryContextWindow::Extended,- MemoryContextWindow::Maximum,- ] {- assert_eq!(- MemoryContextWindow::from_str_opt(window.as_str()),- Some(window)- );- }- assert_eq!(- MemoryContextWindow::from_str_opt("MAXIMUM"),- Some(MemoryContextWindow::Maximum)- );- assert_eq!(MemoryContextWindow::from_str_opt("nonsense"), None);-}--#[test]-fn enum_serializes_as_lowercase_string() {- let json = serde_json::to_string(&MemoryContextWindow::Extended).unwrap();- assert_eq!(json, "\"extended\"");- let back: MemoryContextWindow = serde_json::from_str("\"minimal\"").unwrap();- assert_eq!(back, MemoryContextWindow::Minimal);-}--#[test]-fn empty_channel_permissions_with_existing_channels_migrates_to_execute() {- // Legacy install: channel_permissions empty but the user has two- // channels configured. The migration seeds web + each existing- // channel = execute so the new fail-closed default doesn't- // regress them.- let mut cfg = AgentConfig::default();- assert!(cfg.channel_permissions.is_empty());-- let known = vec!["telegram".to_string(), "discord".to_string()];- let migrated = cfg.migrate_channel_permissions_if_legacy(known.iter());-- assert!(migrated, "legacy install must migrate");- assert_eq!(cfg.channel_permissions.len(), 3);- for ch in ["web", "telegram", "discord"] {- assert_eq!(- cfg.channel_permissions.get(ch).map(String::as_str),- Some("execute"),- "expected execute for channel {ch}"- );- }-}--#[test]-fn migrate_channel_permissions_idempotent() {- let mut cfg = AgentConfig::default();- cfg.migrate_channel_permissions_if_legacy(vec!["telegram".to_string()].iter());- let again = cfg.migrate_channel_permissions_if_legacy(vec!["telegram".to_string()].iter());- assert!(!again, "second migration call must be a no-op");-}--#[test]-fn migrate_channel_permissions_with_no_channels_is_noop() {- // Fresh install with no configured channels and an empty map —- // no migration needed (the engine fails closed on lookup).- let mut cfg = AgentConfig::default();- let migrated = cfg.migrate_channel_permissions_if_legacy(Vec::<String>::new());- assert!(!migrated);- assert!(cfg.channel_permissions.is_empty());-}--#[test]-fn agents_md_enabled_defaults_to_true() {- assert!(- AgentConfig::default().agents_md_enabled,- "AGENTS.md loading must be on by default"- );-}--#[test]-fn agents_md_enabled_defaults_true_when_field_omitted() {- // A config that predates the field must deserialize with the feature on- // (matches the `#[serde(default = ...)]` contract).- let cfg: AgentConfig = serde_json::from_str("{}").unwrap();- assert!(cfg.agents_md_enabled);-}--#[test]-fn agents_md_enabled_roundtrips_when_disabled() {- let cfg: AgentConfig = serde_json::from_str(r#"{"agents_md_enabled": false}"#).unwrap();- assert!(!cfg.agents_md_enabled);-}diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rsindex 292aefc3f0..99ee0c2935 100644--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@ -72,8 +72,7 @@ mod update;mod web_chat_config;pub use agent::{- AgentConfig, DelegateAgentConfig, MemoryContextWindow, MemoryWindowLimits,- OrchestratorModelConfig, RequiredOutputContract, TeamModelConfig, ToolSearchConfig,+ AgentConfig, DelegateAgentConfig, OrchestratorModelConfig, RequiredOutputContract, TeamModelConfig, ToolSearchConfig,};pub use autonomy::AutonomyConfig;pub use capability_providers::{CapabilityProviderConfig, CapabilityProviderTrustState};diff --git a/crates/openhuman-core/src/config/schemas/controllers/inference.rs b/crates/openhuman-core/src/config/schemas/controllers/inference.rsindex 7169156b65..b90f6d8549 100644--- a/crates/openhuman-core/src/config/schemas/controllers/inference.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/inference.rs@@ -153,7 +153,6 @@ pub(super) fn handle_update_memory_settings(params: Map<String, Value>) -> Contrembedding_provider: update.embedding_provider,embedding_model: update.embedding_model,embedding_dimensions: update.embedding_dimensions,- memory_window: update.memory_window,};to_json(config_rpc::load_and_apply_memory_settings(patch).await?)})diff --git a/crates/openhuman-core/src/config/schemas/helpers.rs b/crates/openhuman-core/src/config/schemas/helpers.rsindex dd1b49fe3d..97230629c6 100644--- a/crates/openhuman-core/src/config/schemas/helpers.rs+++ b/crates/openhuman-core/src/config/schemas/helpers.rs@@ -76,8 +76,6 @@ pub(super) struct MemorySettingsUpdate {pub(super) embedding_provider: Option<String>,pub(super) embedding_model: Option<String>,pub(super) embedding_dimensions: Option<usize>,- /// One of `"minimal" | "balanced" | "extended" | "maximum"`.- pub(super) memory_window: Option<String>,}#[derive(Debug, Deserialize)]diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rsindex 93aa2d9bb6..fd08dcf316 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs@@ -113,10 +113,6 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {comment: "Embedding dimensions.",required: false,},- optional_string(- "memory_window",- "Stepped long-term memory window preset: minimal | balanced | extended | maximum.",- ),],outputs: vec![json_output("snapshot", "Updated config snapshot.")],}),