rebuild re-registers agent; preserve /run/hyperhive across restarts

This commit is contained in:
müde 2026-05-14 22:13:00 +02:00
parent 746132d41e
commit af464e27f4
3 changed files with 5 additions and 1 deletions

View file

@ -77,7 +77,7 @@ async fn dispatch(req: &HostRequest, agent_flake: &str, coord: &Coordinator) ->
}
HostRequest::Rebuild { name } => {
tracing::info!(%name, "rebuild");
let agent_dir = Coordinator::agent_dir(name);
let agent_dir = coord.register_agent(name).await?;
lifecycle::rebuild(name, agent_flake, &agent_dir).await?;
HostResponse::success()
}