Skip to content

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

feat(harness): add mcp cleanup error variant

Steven Enamakel0c858656c4e7
diff --git a/crates/openhuman-embed/src/harness/error.rs b/crates/openhuman-embed/src/harness/error.rs
index 3c4a2f2823..e704279357 100644
--- a/crates/openhuman-embed/src/harness/error.rs
+++ b/crates/openhuman-embed/src/harness/error.rs
@@ -51,6 +51,10 @@ pub enum HarnessError {
)]
AlreadyRunning,
+ /// Removing an agent failed to confirm cleanup of its captured MCP owner.
+ #[error("MCP cleanup remains pending: {0}")]
+ McpCleanup(#[source] openhuman_core::modules::client::ModuleCallError),
+
/// A builder input could not be honoured.
#[error("{0}")]
Invalid(String),
@@ -90,6 +94,7 @@ impl From<crate::AgentError> for HarnessError {
use crate::AgentError as A;
match err {
A::Call(e) => Self::Call(e),
+ A::McpCleanup(e) => Self::McpCleanup(e),
A::Workspace { what, source } => Self::Workspace { what, source },
A::DuplicateId(_)
| A::InvalidId { .. }