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 runner part file gracefully

Steven Enamakelc7686286ccdb
diff --git a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/runner_part_01.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/ops/runner_part_01.rs
deleted file mode 100644
index a44f442e8b..0000000000
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/ops/runner_part_01.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-async fn filter_cached_toolkit_actions_with_current_scope(
- agent_id: &str,
- toolkit: &str,
- config: &crate::config::Config,
- actions: &[crate::agent::context::prompt::ConnectedIntegrationTool],
-) -> Vec<crate::agent::context::prompt::ConnectedIntegrationTool> {
- let pref =
- crate::integrations::composio::ops::load_user_scope_pref(config, toolkit).await;
- let before = actions.len();
- let filtered: Vec<_> = actions
- .iter()
- .filter(|action| {
- crate::integrations::composio::providers::is_action_visible_with_pref(
- &action.name,
- &pref,
- )
- })
- .cloned()
- .collect();
- tracing::debug!(
- agent_id = %agent_id,
- toolkit = %toolkit,
- cached_actions = before,
- visible_actions = filtered.len(),
- hidden_actions = before.saturating_sub(filtered.len()),
- read = pref.read,
- write = pref.write,
- admin = pref.admin,
- "[subagent_runner:typed] re-filtered cached toolkit catalogue with current user scope"
- );
- filtered
-}