The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(agent): correct prompt builder to handle missing optional fields\n\nThe prompt builder was failing when optional fields were absent from the configuration, causing the agent to crash during initialization. This change adds proper default handling for those fields so the builder gracefully falls back to sensible defaults instead of panicking.\n\nAuto-committed-on: macbook\n
Steven Enamakelc98fd329664e
diff --git a/src/openhuman/agent/prompts/builder.rs b/src/openhuman/agent/prompts/builder.rsindex 09c7d4fa9e..701f28e540 100644--- a/src/openhuman/agent/prompts/builder.rs+++ b/src/openhuman/agent/prompts/builder.rs@@ -295,8 +295,16 @@ impl SystemPromptBuilder {// to splice it in individually. Single source of truth: GROUNDING_BODY.// Placed near the tail (just before the output-style rules) so it reads// as a closing contract; byte-stable, so it stays cache-friendly.- output.push_str(GROUNDING_BODY);- output.push_str("\n\n");+ // Skipped when the agent's own prompt already carries the contract.+ // The orchestrator folds grounding into its merged `## Rules` section+ // (#5701) so the rules read as one list rather than two that repeat+ // each other; appending here as well would ship it twice. Matching on+ // the heading keeps this self-maintaining: an agent that stops+ // carrying its own copy silently gets the global one back.+ if !output.contains(GROUNDING_HEADING) {+ output.push_str(GROUNDING_BODY);+ output.push_str("\n\n");+ }output.push_str(global_style_block(ctx.workspace_dir).trim_end());output.push('\n');Ok(output)