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 subagent prompt rendering gracefully

Steven Enamakel88ff42fc284f
diff --git a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs
index 39ed2ea9a1..0391928a3d 100644
--- a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs
+++ b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs
@@ -198,8 +198,8 @@ pub fn render_subagent_system_prompt_with_format(
out.push_str("\nUse the provided tools to accomplish the task. Reply with a concise, dense final answer when you have one — the parent agent will weave it back into the user-visible response.\n\n");
// 3b. Optional safety preamble. Definitions that do work with real
- // side-effects set `omit_safety_preamble = false` so the narrow renderer used to
- // silently drop that instruction — we now honour the flag.
+ // side-effects set `omit_safety_preamble = false`, which the narrow
+ // renderer used to silently drop — we now honour the flag.
// Byte-identical to `SafetySection::build`.
if options.include_safety_preamble {
out.push_str(