From 7be37f388e0d882ee7e1ead154601f8898311506 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 22 Jul 2026 00:01:12 +0200 Subject: [PATCH] fix(#2628): forge_notify falls back to default_agent_socket when hive_agent_socket unset (argus review) --- hive-agent/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hive-agent/src/main.rs b/hive-agent/src/main.rs index f6275c61..f167da3c 100644 --- a/hive-agent/src/main.rs +++ b/hive-agent/src/main.rs @@ -425,8 +425,10 @@ async fn serve_main(socket: &Path, poll_ms: u64) -> Result<()> { // socket (loose-ends v2), not direct wakes — so it dials // `HIVE_AGENT_SOCKET`, not the host mcp.sock. tokio::spawn(crate::forge_notify::run( - std::env::var_os("HIVE_AGENT_SOCKET") - .map_or_else(std::path::PathBuf::new, std::path::PathBuf::from), + std::env::var_os("HIVE_AGENT_SOCKET").map_or_else( + || std::path::PathBuf::from(hive_agent_sock::DEFAULT_AGENT_SOCKET), + std::path::PathBuf::from, + ), )); // Agent-side cleanup of this agent's own harness artifacts (completed // bash-task files + verbose event rows). Runs here, not host-side in