Skip to content

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

chore(agent): remove unused build module

Steven Enamakel12412496bd1e
diff --git a/crates/openhuman-embed/src/agent/build.rs b/crates/openhuman-embed/src/agent/build.rs
index b45d155e37..79a153af19 100644
--- a/crates/openhuman-embed/src/agent/build.rs
+++ b/crates/openhuman-embed/src/agent/build.rs
@@ -32,7 +32,13 @@ pub(crate) fn instantiate(runtime: &Runtime, spec: AgentSpec) -> Result<AgentInn
// ── config ───────────────────────────────────────────────────────────
let mut config = base.clone();
- let action_dir = parts.action_dir.unwrap_or_else(|| {
+ // Modeled default; `config.action_dir` is the field every later step
+ // (including the `config_fn` escape hatch below) actually reads and can
+ // override, so the directory we create and the layout we resolve are
+ // taken from it again below, after every step has had a chance to touch
+ // it — not from this local, which would go stale the moment a caller's
+ // `config_fn` edits `config.action_dir`.
+ config.action_dir = parts.action_dir.unwrap_or_else(|| {
AgentLayout::default_action_dir(
&root_dir,
&base.action_dir,
@@ -40,11 +46,6 @@ pub(crate) fn instantiate(runtime: &Runtime, spec: AgentSpec) -> Result<AgentInn
&id,
)
});
- std::fs::create_dir_all(&action_dir).map_err(|source| AgentError::Workspace {
- what: "create the agent's action directory",
- source,
- })?;
- config.action_dir = action_dir.clone();
let mut access = parts
.access