Skip to content

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

style: reformat long expressions and comments

Steven Enamakel9db0049a54ee
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
index cfbfc18b88..3af005e3d7 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -339,14 +339,15 @@ impl OpenHumanSessionHost {
// `with_defaults()` branch only fires when the registry is
// unavailable (pre-startup, tests). `PromptSource::Dynamic`
// agents install a [`DynamicPromptSection`] that re-runs the
- // builder against the live [`PromptContext`] at
- // `build_system_prompt` time, so `connected_integrations`
- // fetched asynchronously on session start land in the prompt.
+ // builder against the live [`PromptContext`] at `build_system_prompt`
+ // time, so late `connected_integrations` land in the prompt.
// `Inline`/`File` sources still resolve to just the archetype
// body and get wrapped by [`SystemPromptBuilder::for_subagent`].
let prompt_builder = match target_def {
Some(def) => match &def.system_prompt {
- PromptSource::Dynamic(()) => SystemPromptBuilder::from_dynamic(dynamic_prompt_builder(def)?),
+ PromptSource::Dynamic(()) => {
+ SystemPromptBuilder::from_dynamic(dynamic_prompt_builder(def)?)
+ }
PromptSource::Verbatim(text) => SystemPromptBuilder::verbatim(text.clone()),
PromptSource::Inline(text) => SystemPromptBuilder::for_subagent(
text.clone(),
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index 5672be8c9d..c31fadf3dd 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -944,9 +944,10 @@ async fn run_typed_mode(
// provenance), distinguishing delegated spend from the parent's
// own channel in per-thread usage reads.
"subagent",
- // Agent-level TokenJuice profile → sub-agent context middleware
- // (#4466), so sub-agent tool outputs compact like the chat path.
- definition.extensions.effective_tokenjuice_compression(&definition.model),
+ // Agent TokenJuice profile → sub-agent context middleware (#4466).
+ definition
+ .extensions
+ .effective_tokenjuice_compression(&definition.model),
// The spawn-wide config snapshot supplies the `[context]`
// knobs the graph used to load for itself.
config.as_ref().ok().map(|c| c.as_ref()),