diff --git a/hive-c0re/src/coordinator.rs b/hive-c0re/src/coordinator.rs index 4b44861..bd8fd07 100644 --- a/hive-c0re/src/coordinator.rs +++ b/hive-c0re/src/coordinator.rs @@ -182,19 +182,15 @@ impl Coordinator { /// --continue's session). Best-effort; broker errors are logged /// but don't propagate. pub fn kick_agent(&self, name: &str, reason: &str) { - // Manager keeps the legacy `/state` mount; sub-agents see - // their state at `/agents//state` (see lifecycle.rs's - // `notes_mount`). Tell each agent the path it can actually - // ls without translating. - let state_path = if name == crate::lifecycle::MANAGER_NAME { - "/state/".to_owned() - } else { - format!("/agents/{name}/state/") - }; + // Sub-agents bind their state at /agents//state. The + // manager has both /state (legacy mount) and /agents + // bind-mounted, so /agents//state resolves there too — + // use that uniformly so the wake message has one canonical + // path that works everywhere. let body = format!( "{reason}\n\nYou were just (re)started by the operator. \ - If you were mid-task, check `{state_path}` for your \ - notes and pick up where you left off. claude's \ + If you were mid-task, check `/agents/{name}/state/` for \ + your notes and pick up where you left off. claude's \ `--continue` session is intact, so prior context is \ still in your window." );