Skip to content

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

fix(subagent-runner): remove reason from hook-denied log

Steven Enamakel98797ebcea45
diff --git a/src/openhuman/agent/harness/subagent_runner/ops/runner.rs b/src/openhuman/agent/harness/subagent_runner/ops/runner.rs
index 1d9f8d2ac9..a727149f34 100644
--- a/src/openhuman/agent/harness/subagent_runner/ops/runner.rs
+++ b/src/openhuman/agent/harness/subagent_runner/ops/runner.rs
@@ -389,10 +389,14 @@ pub async fn run_subagent(
)
.await
{
+ // A denial reason is hook-supplied (`agent_message`/`user_message`),
+ // so it can carry arbitrary content. Log a fixed sentence with the
+ // task identity; the caller still surfaces the detailed reason back
+ // to the model through `SubagentRunError::HookDenied`.
tracing::info!(
agent_id = %definition.id,
task_id = %task_id,
- "[subagent_runner] spawn denied by a configured hook: {reason}"
+ "[subagent_runner] spawn denied by a configured hook"
);
return Err(SubagentRunError::HookDenied(reason));
}