Skip to content

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

Merge main into remove-subconscious

Steven Enamakel19ecb792f685
diff --cc Cargo.lock
index 3733963da8,333b11fbe3..a1cb0d07f3
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -6663,8 -6677,11 +6677,11 @@@ dependencies =
[[package]]
name = "tinymcp"
-version = "0.3.5"
+version = "0.3.4"
dependencies = [
+ "anyhow",
+ "async-trait",
+ "axum",
"base64 0.23.1",
"dirs 7.0.0",
"futures-util",
diff --cc app/src/overlay/OverlayApp.tsx
index df4a2f36cc,428091d9fa..64e1c3ab4d
--- a/app/src/overlay/OverlayApp.tsx
+++ b/app/src/overlay/OverlayApp.tsx
@@@ -15,10 -15,10 +15,10 @@@
* overlay into STT mode; "released" (or the final transcription)
* dismisses it.
*
- * 2. **Attention message** — when the core (subconscious loop, heartbeat,
- * …) publishes an `OverlayAttentionEvent` via
+ * 2. **Attention message** — when the core (a scheduled cron job, a
+ * proactive notification, …) publishes an `OverlayAttentionEvent` via
* `openhuman::overlay::publish_attention(...)`. The bridge in
- * `core::socketio` forwards this as an `overlay:attention` event.
+ * `openhuman_rpc::server::socketio` forwards this as an `overlay:attention` event.
* The bubble auto-dismisses after its ttl.
*
* There is **no** demo loop — the overlay is entirely event-driven.
diff --cc crates/openhuman-app/Cargo.lock
index 54dd59fdc3,8f414aef50..0a83def3bd
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@@ -7581,8 -7591,11 +7591,11 @@@ dependencies =
[[package]]
name = "tinymcp"
-version = "0.3.5"
+version = "0.3.4"
dependencies = [
+ "anyhow",
+ "async-trait",
+ "axum",
"base64 0.23.1",
"dirs 7.0.0",
"futures-util",
diff --cc crates/openhuman-core/Cargo.toml
index b2de8dd7cb,d43dfb864e..7ce37dde6e
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@@ -797,9 -794,9 +794,9 @@@ default = ["media", "skills", "flows",
# `/schema`; the `memory_diff` agent tool is absent from the tool list; the
# embedded driver stops advertising `Capability::Diff` and `as_diff()` returns
# `None`; and the three `ops` entry points always-on code calls return a
-# build-fact error, so a post-sync snapshot or a subconscious diff is logged and
+# build-fact error, so a post-sync snapshot or diff is logged and
# skipped rather than silently reported as "nothing changed".
- http-server = ["dep:axum", "dep:socketioxide"]
+ http-server = ["dep:axum", "tinymcp/server-http"]
# Local audio-device access: the `cpal` capture stack behind voice recording
# and the accessibility microphone-permission probe. Default-ON. Slim /
# headless builds opt out via `--no-default-features --features "<explicit list
diff --cc crates/openhuman-core/src/config/mod.rs
index 225fe4a7db,3a25aa56f9..52d16dde6c
--- a/crates/openhuman-core/src/config/mod.rs
+++ b/crates/openhuman-core/src/config/mod.rs
@@@ -46,19 -46,20 +46,19 @@@ pub use schema::
ComposioConfig, ComputerConfig, Config, ContextConfig, CostConfig, CronConfig, CurlConfig,
DashboardConfig, DecisionModel, DelegateAgentConfig, DiagramViewerConfig,
DictationActivationMode, DictationConfig, DiscordConfig, DockerRuntimeConfig, EmailConfig,
- EmbeddingRouteConfig, GitbooksConfig, HeartbeatConfig, HttpHeader, HttpRequestConfig,
- IMessageConfig, IntegrationToggle, IntegrationsConfig, LarkConfig, LearningConfig,
- LegacySearchInputs, LinqConfig, LlmBackend, LocalAiConfig, MatrixConfig, McpAuthConfig,
- McpClientConfig, McpClientIdentityConfig, McpServerConfig, McpToolExposure, MemoryConfig,
- MemoryTreeConfig, ModelRouteConfig, MultimodalConfig, MultimodalFileConfig,
- ObservabilityConfig, OrchestratorModelConfig, PrivacyConfig, PrivacyMode, ProxyConfig,
- ProxyScope, ReflectionSource, ReliabilityConfig, ResourceLimitsConfig, RuntimeConfig,
- RuntimePoolConfig, RuntimePoolLangConfig, SandboxBackend, SandboxConfig, SchedulerConfig,
- SchedulerGateConfig, SchedulerGateMode, SearchConfig, SearchEngineCredentials,
- SearchPresentation, SearchProviderSettings, SearchRoute, SearxngConfig, SecretsConfig,
- SecurityConfig, ShellConfig, SlackConfig, StorageConfig, StorageProviderConfig,
- StorageProviderSection, StreamMode, SttEngine, TeamModelConfig, TelegramConfig,
- TokenjuiceConfig, UpdateConfig, UpdateRestartStrategy, VoiceActivationMode, VoiceServerConfig,
- WebSearchConfig, WebhookConfig, YuanbaoConfig, DEFAULT_CLOUD_LLM_MODEL,
+ EmbeddingRouteConfig, GitbooksConfig, HttpHeader, HttpRequestConfig, IMessageConfig,
+ IntegrationToggle, IntegrationsConfig, LarkConfig, LearningConfig, LegacySearchInputs,
+ LinqConfig, LlmBackend, LocalAiConfig, MatrixConfig, McpAuthConfig, McpClientConfig,
- McpClientIdentityConfig, McpServerConfig, MemoryConfig, MemoryTreeConfig, ModelRouteConfig,
++ McpClientIdentityConfig, McpServerConfig, McpToolExposure, MemoryConfig, MemoryTreeConfig, ModelRouteConfig,
+ MultimodalConfig, MultimodalFileConfig, ObservabilityConfig, OrchestratorModelConfig,
+ PrivacyConfig, PrivacyMode, ProxyConfig, ProxyScope, ReflectionSource, ReliabilityConfig,
+ ResourceLimitsConfig, RuntimeConfig, RuntimePoolConfig, RuntimePoolLangConfig, SandboxBackend,
+ SandboxConfig, SchedulerConfig, SchedulerGateConfig, SchedulerGateMode, SearchConfig,
+ SearchEngineCredentials, SearchPresentation, SearchProviderSettings, SearchRoute,
+ SearxngConfig, SecretsConfig, SecurityConfig, ShellConfig, SlackConfig, StorageConfig,
+ StorageProviderConfig, StorageProviderSection, StreamMode, SttEngine, TeamModelConfig,
+ TelegramConfig, TokenjuiceConfig, UpdateConfig, UpdateRestartStrategy, VoiceActivationMode,
+ VoiceServerConfig, WebSearchConfig, WebhookConfig, YuanbaoConfig, DEFAULT_CLOUD_LLM_MODEL,
DEFAULT_MEMORY_SYNC_INTERVAL_SECS, DEFAULT_MODEL, LEGACY_TIER_MODELS,
MANAGED_MULTIMODAL_MODELS, MANAGED_SEARCH_PROVIDERS, MEMORY_SYNC_INTERVAL_PRESETS_SECS,
MODEL_IMAGE_GENERATION_AGENT, MODEL_MANAGED_DEFAULT, MODEL_MEDIA_UNDERSTANDING,
diff --cc crates/openhuman-core/src/config/workspace/README.md
index a19830332e,8124b41e49..f88269ca17
--- a/crates/openhuman-core/src/config/workspace/README.md
+++ b/crates/openhuman-core/src/config/workspace/README.md
@@@ -57,8 -57,9 +57,8 @@@ The editable surface is restricted to t
- `crate::config::rpc`: loads `Config` (timeout-bounded) to resolve `workspace_dir` and `config_path` in both `ops.rs` and `schemas.rs`.
- `crate::skills::init_skills_dir`: seeds the `skills/` directory README during `init_workspace`.
-- `crate::subconscious::heartbeat::engine::HeartbeatEngine::ensure_heartbeat_file`: ensures `HEARTBEAT.md` during `init_workspace`.
- `crate::core::all` (`ControllerFuture`, `RegisteredController`) and `crate::core::{ControllerSchema, FieldSchema, TypeSchema}`: controller registry types.
- - `crate::rpc::RpcOutcome`: uniform RPC return type.
+ - `crate::core::Outcome`: uniform RPC return type.
- Bundled prompt assets via `include_str!("../../agent/prompts/SOUL.md" | "IDENTITY.md")`.
- `tinytools` (`PermissionLevel`, `Tool`, `ToolResult`) for the agent tools in `tools.rs`.
- `rusqlite` for `state.rs`'s watcher-state database.
diff --cc crates/openhuman-core/src/core/runtime/builder.rs
index a8ee9b4511,04a4f6593d..701499ef1e
--- a/crates/openhuman-core/src/core/runtime/builder.rs
+++ b/crates/openhuman-core/src/core/runtime/builder.rs
@@@ -1000,18 -803,19 +803,19 @@@ impl CoreRuntime
);
}
}
-
- served?;
- Ok(())
}
- /// Spawn each selected background service. Selection is by [`ServiceSet`];
- /// each service keeps its own runtime config gate.
- async fn start_selected_services(&self) {
+ /// Spawn each selected background service.
+ ///
+ /// A transport calls this once its listener is bound, so a failed bind
+ /// never leaves pollers, one-shot jobs, MCP processes or socket
+ /// reconnect work running without a live runtime. A runtime with no
+ /// transport calls it directly.
+ pub async fn start_services(&self) {
use crate::core::runtime::services;
- jsonrpc::start_core_runtime_services(self.services, self.config.as_ref()).await;
+ super::bootstrap::start_core_runtime_services(self.services, self.config.as_ref()).await;
- if self.services.heartbeat {
+ if self.services.login_gated {
services::spawn_login_gated_services(self.ctx.host_kind().is_desktop_shell());
}
if self.services.update_scheduler {
diff --cc crates/openhuman-core/src/cron/scheduler_gate/README.md
index d55c4757d5,56474743ce..6b36520fe5
--- a/crates/openhuman-core/src/cron/scheduler_gate/README.md
+++ b/crates/openhuman-core/src/cron/scheduler_gate/README.md
@@@ -56,10 -56,10 +56,10 @@@ No dependency on any other `openhuman`
Consumed in-process across the codebase (discoverable via `grep scheduler_gate`):
-- Background workers / pipelines: `memory/schema.rs`, `memory_queue/worker.rs`, `memory_tree/tree/rpc.rs`, `memory_sync/composio/periodic.rs`, `subconscious/engine.rs`, `learning/reflection.rs`, `autocomplete/core/engine.rs`, `task_sources/route.rs`, `agent/triage/evaluator.rs`.
+- Background workers / pipelines: `memory/schema.rs`, `memory_queue/worker.rs`, `memory_tree/tree/rpc.rs`, `memory_sync/composio/periodic.rs`, `learning/reflection.rs`, `autocomplete/core/engine.rs`, `task_sources/route.rs`, `agent/triage/evaluator.rs`.
- Inference layer: `inference/provider/openhuman_backend.rs`, `inference/provider/factory.rs`, `inference/local/service/{vision_embed.rs,public_infer.rs}`, `inference/voice/postprocess.rs`.
- Credentials lifecycle (signed-out kill switch): `credentials/ops.rs`, `credentials/bus.rs`.
- - Bootstrap / transport: `core/jsonrpc.rs` (calls `init_global` during server bootstrap), `core/observability.rs`, plus the domain wiring in `openhuman/mod.rs` and config schema in `config/schema/scheduler_gate.rs`.
+ - Bootstrap / transport: `core/runtime/subscribers.rs` (calls `init_global` during server bootstrap), `core/observability.rs`, plus the domain wiring in `openhuman/mod.rs` and config schema in `config/schema/scheduler_gate.rs`.
## Notes / gotchas
diff --cc crates/openhuman-core/src/tools/impl/browser/browser.rs
index 8b582f3426,b2c488a8f2..e02bdf772a
--- a/crates/openhuman-core/src/tools/impl/browser/browser.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser.rs
@@@ -1,8 -1,8 +1,10 @@@
//! Agent-facing browser backed by the TinyComputer module's browser and task members.
+#[path = "browser_drop.rs"]
+mod browser_drop;
#[path = "browser_session_pool.rs"]
mod session_pool;
+ #[path = "browser_task_actions.rs"]
+ mod task_actions;
use crate::modules::browser::BrowserClient;
use crate::security::approval::{ApprovalGate, GateOutcome};