Skip to content

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

fix(bench): make max_iterations sed pattern accept any numeric value

Steven Enamakel0498b0fed858
diff --git a/bench/harnesses/bundles/Dockerfile.openhuman b/bench/harnesses/bundles/Dockerfile.openhuman
index cf47514a04..a633b4d77e 100644
--- a/bench/harnesses/bundles/Dockerfile.openhuman
+++ b/bench/harnesses/bundles/Dockerfile.openhuman
@@ -21,7 +21,7 @@ ARG CARGO_PROFILE=release
# reproduce the shipped behaviour. The sed must change the file or the build fails.
ARG OH_MAX_ITERATIONS=200
RUN f=crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml \
- && sed -i "s/^max_iterations = 15\$/max_iterations = ${OH_MAX_ITERATIONS}/" "$f" \
+ && sed -i "s/^max_iterations = [0-9]*\$/max_iterations = ${OH_MAX_ITERATIONS}/" "$f" \
&& grep -q "^max_iterations = ${OH_MAX_ITERATIONS}\$" "$f"
RUN --mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/build/target \