Skip to content

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

fix(library_profile): inline worker_index call in mock

Steven Enamakel8c9860ffbe52
diff --git a/crates/openhuman-cli/src/bin/library_profile/mock.rs b/crates/openhuman-cli/src/bin/library_profile/mock.rs
index 9894c13cc3..0c45f8f6a4 100644
--- a/crates/openhuman-cli/src/bin/library_profile/mock.rs
+++ b/crates/openhuman-cli/src/bin/library_profile/mock.rs
@@ -296,9 +296,7 @@ impl SubagentMock {
fn reply_orchestrator_driven(&self, joined: &str) -> ChatResponse {
// agent_memory worker: return its finding.
if self.is_worker_turn(joined) {
- let i = self
- .worker_index(joined)
- .expect("worker turn has a marker");
+ let i = self.worker_index(joined).expect("worker turn has a marker");
return response(&finding_text(i));
}
// Orchestrator: fan out, then merge once every finding is back.