Skip to content

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

refactor(worktree): remove workspace domain event publishing

Steven Enamakelfe0c3336aabb
diff --git a/crates/openhuman-core/src/agent/orchestration/worktree.rs b/crates/openhuman-core/src/agent/orchestration/worktree.rs
index 81520e9c3d..e6d31953bf 100644
--- a/crates/openhuman-core/src/agent/orchestration/worktree.rs
+++ b/crates/openhuman-core/src/agent/orchestration/worktree.rs
@@ -142,10 +142,6 @@ impl WorkspaceIsolation for OpenHumanWorktreeIsolation {
policy_id = %descriptor.policy_id,
"[workspace] workspace_prepared_emit"
);
- let _ = BUS.publish(DomainEvent::WorkspacePrepared {
- policy_id: descriptor.policy_id.clone(),
- root: descriptor.root.display().to_string(),
- });
Ok(descriptor)
}
@@ -167,10 +163,6 @@ impl WorkspaceIsolation for OpenHumanWorktreeIsolation {
policy_id = %descriptor.policy_id,
"[workspace] workspace_cleanup_emit_ok"
);
- let _ = BUS.publish(DomainEvent::WorkspaceCleanup {
- policy_id: descriptor.policy_id.clone(),
- error: None,
- });
Ok(())
}
Err(err) => {
@@ -186,10 +178,6 @@ impl WorkspaceIsolation for OpenHumanWorktreeIsolation {
error = %message,
"[workspace] workspace_cleanup_emit_err"
);
- let _ = BUS.publish(DomainEvent::WorkspaceCleanup {
- policy_id: descriptor.policy_id.clone(),
- error: Some(message),
- });
Err(err)
}
}