From 873d5a083dea843c966839c5f95312936714e8c1 Mon Sep 17 00:00:00 2001 From: iris Date: Wed, 20 May 2026 21:15:04 +0200 Subject: [PATCH] manager: scope GetLooseEnds to manager's own items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hive_wide returns ALL agents' reminders and questions, causing other agents' reminders (e.g. triage) to appear on the manager's web page and in the get_loose_ends MCP tool. The MCP tool spec says it shows your own pending items — switch to for_agent(MANAGER_AGENT) which includes all approvals (manager is sole submitter), questions where the manager is asker/target, and only the manager's own reminders. Fixes #118 --- hive-c0re/src/manager_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive-c0re/src/manager_server.rs b/hive-c0re/src/manager_server.rs index a46970a..5906e07 100644 --- a/hive-c0re/src/manager_server.rs +++ b/hive-c0re/src/manager_server.rs @@ -396,7 +396,7 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc) -> ManagerResp }, } } - ManagerRequest::GetLooseEnds => match crate::loose_ends::hive_wide(coord) { + ManagerRequest::GetLooseEnds => match crate::loose_ends::for_agent(coord, MANAGER_AGENT) { Ok(loose_ends) => ManagerResponse::LooseEnds { loose_ends }, Err(e) => ManagerResponse::Err { message: format!("{e:#}"),