fix(#2628): forge_notify falls back to default_agent_socket when hive_agent_socket unset (argus review)

This commit is contained in:
damocles 2026-07-22 00:01:12 +02:00
commit 7be37f388e

View file

@ -425,8 +425,10 @@ async fn serve_main<S: Surface>(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