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 `Config` struct from schema types

Steven Enamakel12216522f38f
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index 9e80960f27..589515d3d9 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -186,30 +186,13 @@ pub struct Config {
#[serde(default)]
pub scheduler: SchedulerConfig,
- /// Background-AI scheduler gate — throttles memory-tree digests,
- /// embeddings, and other LLM-bound background work based on power
+ /// Background-AI scheduler gate — throttles embeddings and other
+ /// LLM-bound background work based on power
/// state, CPU pressure, and deployment mode. See
/// [`crate::cron::scheduler_gate`].
#[serde(default)]
pub scheduler_gate: SchedulerGateConfig,
- /// Global memory-sync cadence applied to **all** opted-in memory
- /// sources, presented to the user like a backup schedule ("Sync
- /// every 4h / 12h / 24h", plus "Manual only"). See issue #3302.
- ///
- /// Semantics consumed by `memory_sync::composio::periodic`:
- /// - `None` — no explicit user choice; the effective cadence falls
- /// back to [`DEFAULT_MEMORY_SYNC_INTERVAL_SECS`] (24h).
- /// - `Some(0)` — **Manual only**: the periodic scheduler skips
- /// auto-sync entirely; manual `memory_sources_sync` still works.
- /// - `Some(n)` — sync every `n` seconds, applied per connection as
- /// `max(n, provider_default)` so it overrides the provider's own
- /// cadence while never syncing more often than the provider intends.
- ///
- /// Overridable via `OPENHUMAN_MEMORY_SYNC_INTERVAL_SECS` (`0` = manual).
- #[serde(default)]
- pub memory_sync_interval_secs: Option<u64>,
-
#[serde(default)]
pub agent: AgentConfig,
@@ -254,24 +237,6 @@ pub struct Config {
#[serde(default)]
pub memory: MemoryConfig,
- /// Phase 4 memory-tree embedding wiring (#710). Controls whether
- /// ingest/seal pass new chunks/summaries through an Ollama embedder,
- /// and whether missing endpoint config is fatal or warns and falls
- /// back to inert zero vectors.
- #[serde(default)]
- pub memory_tree: MemoryTreeConfig,
-
- #[serde(default)]
- pub storage: StorageConfig,
-
- /// `[subsystems.*]` — the uniform cross-subsystem driver-binding config
- /// (kernel.md §3.6 / plan-memory.md §4.5). Currently only `subsystems.memory` is
- /// populated; nothing reads this yet (zero behaviour change). The
- /// existing `[memory]`, `[memory_tree]`, `[[memory_sources]]` blocks
- /// above are unaffected.
- #[serde(default)]
- pub subsystems: SubsystemsConfig,
-
#[serde(default)]
pub composio: ComposioConfig,
@@ -330,11 +295,13 @@ pub struct Config {
#[serde(default)]
pub cost: CostConfig,
- /// User-configured memory sources — each `[[memory_sources]]` entry
- /// describes a data connector (Composio OAuth, local folder, GitHub
- /// repo, RSS feed, Twitter query, web page) that feeds memory.
- #[serde(default)]
- pub memory_sources: Vec<crate::memory::sources::types::MemorySourceEntry>,
+ /// Legacy v1 `[[memory_sources]]` entries, read only so they can be
+ /// migrated into `[[memory.sources]]` on load
+ /// (`config::ops::loader::normalize_loaded_config`). Each entry is kept as
+ /// raw JSON, so a kind this build no longer knows (`twitter_query`) never
+ /// fails the parse. Never written back.
+ #[serde(default, rename = "memory_sources", skip_serializing)]
+ pub legacy_memory_sources: Vec<serde_json::Value>,
/// User-facing agent registry — shipped default agents plus user-authored
/// custom agents and persisted enable/disable/tool-policy overrides.
@@ -484,9 +451,6 @@ pub struct Config {
#[serde(default)]
pub integrations: IntegrationsConfig,
- #[serde(default)]
- pub learning: LearningConfig,
-
#[serde(default)]
pub update: UpdateConfig,
@@ -514,17 +478,6 @@ pub struct Config {
#[serde(default)]
pub model_registry: Vec<ModelRegistryEntry>,
- /// Migration version guard for `apply_composio_source_caps_migration`.
- ///
- /// The migration runs whenever this is `< CURRENT_CAPS_MIGRATION_VERSION`
- /// (see `memory_sources::reconcile`), then is bumped to that version. Using a
- /// monotonic version (rather than a bool) lets an improved migration re-run
- /// once for installs that already ran an earlier revision. Defaults to `0`
- /// (`#[serde(default)]`); the retired `composio_source_caps_migrated` bool is
- /// silently ignored (Config does not `deny_unknown_fields`), so prior installs
- /// re-run the current migration exactly once.
- #[serde(default)]
- pub composio_source_caps_migration_version: u32,
}
/// Shared default so `#[serde(default)]` and `Config::default()` stay in sync.