lifecycle: rebuild reconciles bind flag idempotently and restarts

This commit is contained in:
müde 2026-05-14 22:09:22 +02:00
parent 377eb994a1
commit 764d6497dd
2 changed files with 24 additions and 12 deletions

View file

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