feat(#2626): migrate forge_notify to the in-agent todo socket (per-thread todos, not wakes)
This commit is contained in:
parent
ade7be46c2
commit
1e1ca50da3
2 changed files with 36 additions and 21 deletions
|
|
@ -421,7 +421,13 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
|
|||
for failure in plugins::install_configured().await {
|
||||
S::send_to_parent(socket, failure).await;
|
||||
}
|
||||
tokio::spawn(crate::forge_notify::run(socket.to_path_buf()));
|
||||
// forge_notify pushes forge notifications as todos on the in-agent
|
||||
// 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),
|
||||
));
|
||||
// Agent-side cleanup of this agent's own harness artifacts (completed
|
||||
// bash-task files + verbose event rows). Runs here, not host-side in
|
||||
// hive-c0re, because the files are agent-owned — see `vacuum` module docs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue