harness: clear stale needs-login sentinel on healthy boot (#682) on unified binary

This commit is contained in:
damocles 2026-05-31 03:25:26 +02:00
commit 022afc794b

View file

@ -143,6 +143,9 @@ async fn agent_serve_main(socket: &Path, poll_ms: u64) -> Result<()> {
));
match initial {
LoginState::Online => {
// Clear any stale `hyperhive-needs-login` sentinel left
// over from a prior boot (closes #682, see #688).
bus.emit_status("online");
agent_serve_loop(
socket,
Duration::from_millis(poll_ms),
@ -466,6 +469,9 @@ async fn manager_serve_main(socket: &Path, poll_ms: u64) -> Result<()> {
tokio::spawn(hive_ag3nt::forge_notify::run(socket.to_path_buf(), true));
match initial {
LoginState::Online => {
// Clear any stale `hyperhive-needs-login` sentinel left
// over from a prior boot (closes #682, see #688).
bus.emit_status("online");
manager_serve_loop(
socket,
Duration::from_millis(poll_ms),