diff --git a/crates/colibri-daemon/src/socket.rs b/crates/colibri-daemon/src/socket.rs index b2563b2..9da83de 100644 --- a/crates/colibri-daemon/src/socket.rs +++ b/crates/colibri-daemon/src/socket.rs @@ -648,9 +648,11 @@ pub async fn autospawn_agent_if_configured(state: &SharedState) { let caps = probe_capabilities(); match state.store.try_lock() { Ok(store) => { - if let Err(e) = - store.register_agent(aid, serde_json::to_value(&caps).unwrap_or_default(), Some(&hostname)) - { + if let Err(e) = store.register_agent( + aid, + serde_json::to_value(&caps).unwrap_or_default(), + Some(&hostname), + ) { warn!(agent_id = %aid, error = %e, "autospawn: failed to register agent in store"); } else { info!(agent_id = %aid, hostname = %hostname, capabilities = ?caps, "autospawn: agent registered for task work");