Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: self-announce boot instead of host-side kick_agent

This commit is contained in:
damocles 2026-10-04 15:28:58 +02:00 • committed by mara
commit cd61ea4a37
4 changed files with 79 additions and 9 deletions

View file

@ -9,6 +9,7 @@
//! Single bin crate: the module tree below (formerly this crate's `lib.rs`,
//! before lib + bin were collapsed into one) plus the serve loop.
mod boot_announce;
mod claude_md_watch;
mod claude_usage_watch;
mod db_migrate;
@ -613,6 +614,12 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
};
tokio::spawn(reminder_timer::run(reminder_store.clone(), local_msg_tx));
let (todo_wake, todos_store) = spawn_todo_socket(reminder_store.clone(), &bus);
// Self-announce this boot as a todo instead of relying on hive-c0re's
// old `kick_agent` broker messages — see `boot_announce`'s module doc
// for why this is strictly better than a host-side kick.
if let Some(store) = &todos_store {
boot_announce::announce(&label, store, &todo_wake);
}
if matches!(initial, LoginState::NeedsLogin) {
login::wait_for_login(
&claude_dir,