coordinator: push_todo returns Result so callers can see delivery outcome

This commit is contained in:
damocles 2026-08-03 00:37:39 +02:00 committed by mara
commit 7c6f108716
6 changed files with 27 additions and 17 deletions

View file

@ -297,7 +297,7 @@ async fn handle_spawn(coord: &Arc<Coordinator>, name: &str) -> Result<HostRespon
// Bind the MCP listener now that the container is starting up.
// The harness connects to this socket on its first turn.
coord.register_agent(name)?;
coord
let _ = coord
.push_todo(
hive_sh4re::MANAGER_AGENT,
"core",
@ -312,7 +312,7 @@ async fn handle_spawn(coord: &Arc<Coordinator>, name: &str) -> Result<HostRespon
Err(e) => {
// Spawn failed: register_agent was never called, so there is
// nothing to unregister. Notify the manager and propagate.
coord
let _ = coord
.push_todo(
hive_sh4re::MANAGER_AGENT,
"core",