Skip to content

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

refactor(security): collapse workspace snapshot match arm

Steven Enamakelcb9b6d7df640
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rs
index 9916d2303d..03b1937ebb 100644
--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs
+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs
@@ -530,9 +530,7 @@ impl ApprovalGate {
// user, whereas not publishing recreates the silent deadlock this
// bridge exists to fix.
let workspace = match crate::config::active_workspace_snapshot().await {
- Ok((dir, revision)) => {
- Some((crate::config::workspace_handle(&dir), revision))
- }
+ Ok((dir, revision)) => Some((crate::config::workspace_handle(&dir), revision)),
Err(error) => {
tracing::warn!(
request_id = %request_id,