Skip to content

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

fix(agent): handle missing library entries gracefully

Steven Enamakel5c51e359aa41
diff --git a/crates/openhuman-core/src/agent/library/ops.rs b/crates/openhuman-core/src/agent/library/ops.rs
index d5ab2b4b69..2879b7c5ba 100644
--- a/crates/openhuman-core/src/agent/library/ops.rs
+++ b/crates/openhuman-core/src/agent/library/ops.rs
@@ -52,8 +52,6 @@ pub fn metadata_from_definition(def: &AgentDefinition) -> AgentDefinitionDisplay
direct_tool_names,
uses_wildcard_tools,
subagent_ids,
- includes_profile: !def.omit_profile,
- includes_memory_md: !def.omit_memory_md,
includes_memory_context: !def.omit_memory_context,
can_run_as_user_facing_worker,
write_capable: is_write_capable(def),
diff --git a/crates/openhuman-core/src/agent/library/types.rs b/crates/openhuman-core/src/agent/library/types.rs
index 7b6e860de7..d08923e8ca 100644
--- a/crates/openhuman-core/src/agent/library/types.rs
+++ b/crates/openhuman-core/src/agent/library/types.rs
@@ -28,8 +28,6 @@ pub struct AgentDefinitionDisplay {
pub direct_tool_names: Vec<String>,
pub uses_wildcard_tools: bool,
pub subagent_ids: Vec<String>,
- pub includes_profile: bool,
- pub includes_memory_md: bool,
pub includes_memory_context: bool,
pub can_run_as_user_facing_worker: bool,
pub write_capable: bool,
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index aad99f19bb..796e9dfd88 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -756,8 +756,6 @@ async fn run_typed_mode(
let render_options = SubagentRenderOptions::from_definition_flags(
definition.omit_identity,
definition.omit_safety_preamble,
- definition.omit_profile,
- definition.omit_memory_md,
);
let connected_integrations_for_prompt: Vec<crate::agent::prompts::ConnectedIntegration> =
diff --git a/crates/openhuman-core/src/channels/system_prompt.rs b/crates/openhuman-core/src/channels/system_prompt.rs
index 020c418054..91f75e62de 100644
--- a/crates/openhuman-core/src/channels/system_prompt.rs
+++ b/crates/openhuman-core/src/channels/system_prompt.rs
@@ -195,10 +195,7 @@ fn render(inputs: &ChannelPromptInputs, _identity: &ChannelIdentity) -> String {
.iter()
.map(|(name, desc)| (name.as_str(), desc.as_str()))
.collect();
- let identity_override = PromptIdentityOverride {
- soul_md: None,
- memory_md: None,
- };
+ let identity_override = PromptIdentityOverride { soul_md: None };
// `channel_name = None`: the runtime wires up several providers at once,
// so the capability block keeps its platform-agnostic phrasing.
let mut prompt = build_system_prompt_with_identity(
diff --git a/crates/openhuman-core/src/security/credentials/ops/user_scope.rs b/crates/openhuman-core/src/security/credentials/ops/user_scope.rs
index 4623700437..4a4bf8ba0e 100644
--- a/crates/openhuman-core/src/security/credentials/ops/user_scope.rs
+++ b/crates/openhuman-core/src/security/credentials/ops/user_scope.rs
@@ -126,11 +126,11 @@ pub(super) fn rebind_after_credential_change(
) -> Result<Vec<String>, String> {
let mut logs = Vec::new();
crate::cron::seed::prune_retired_jobs(config).map_err(|error| error.to_string())?;
- crate::core::runtime::context::CoreContext::rebind_default_workspace(
- &config.workspace_dir,
- config.subsystems.memory.clone(),
- )
- .map_err(|error| error.to_string())?;
+ crate::core::runtime::context::CoreContext::rebind_default_workspace(&config.workspace_dir)
+ .map_err(|error| error.to_string())?;
+ if let Err(error) = crate::cron::system_jobs::ensure_memory_jobs(config) {
+ logs.push(format!("memory cron jobs not seeded: {error}"));
+ }
logs.push(format!(
"core context bound to workspace {}",
config.workspace_dir.display()