fix(#2569): wake body points at get_loose_ends (get_todos rename is a later increment); strip tracker tags from source comments per hive-rules

This commit is contained in:
damocles 2026-07-19 01:41:23 +02:00 committed by mara
commit 8149dc7633
9 changed files with 12 additions and 12 deletions

View file

@ -909,7 +909,7 @@ pub async fn collect_unread(client: &Client) -> Vec<crate::protocol::RoomUnread>
}
/// Like [`collect_unread`] but pairs each entry with its `OwnedRoomId`.
/// The todo producer (loose-ends v2, #2569) needs the room id as the
/// The todo producer (loose-ends v2) needs the room id as the
/// per-room upsert/dedup key, which the claude-facing `RoomUnread`
/// payload intentionally doesn't carry.
#[must_use]

View file

@ -299,7 +299,7 @@ async fn bring_up_account(
// each sweep (see the sweep fns) so re-invites / new messages re-wake.
let invite_notified = Arc::new(tokio::sync::Mutex::new(std::collections::HashSet::new()));
let unread_notified = Arc::new(tokio::sync::Mutex::new(std::collections::HashSet::new()));
// Startup cancel-and-recreate (loose-ends v2, #2569): wipe this agent's
// Startup cancel-and-recreate (loose-ends v2): wipe this agent's
// matrix todos so stale ones (rooms read while the daemon was down) don't
// linger, then let the first sweep rebuild the set to match current
// unread reality. Best-effort; the sweep converges regardless.

View file

@ -20,7 +20,7 @@ use tokio::sync::Mutex;
use crate::{handlers, wake};
/// Push a *todo* (loose-ends v2, #2569) for each joined room carrying
/// Push a *todo* (loose-ends v2) for each joined room carrying
/// unread notifications, and clear the todo for rooms that have been read.
/// Replaces the old direct-wake path: instead of firing an all-rooms wake,
/// each unread room becomes a per-room `upsert_todo` keyed by its room id,

View file

@ -43,7 +43,7 @@ pub async fn send_wake(socket: &Path, body: impl AsRef<str>) -> Result<()> {
send_line(socket, &payload).await
}
/// Upsert a matrix-subsystem *todo* (loose-ends v2, #2569) on the
/// Upsert a matrix-subsystem *todo* (loose-ends v2) on the
/// hyperhive control socket — the replacement for a direct wake. `key` is
/// the room id (the dedup key); hive-c0re coalesces a wake iff the todo is
/// new or its `summary` changed. Best-effort like [`send_wake`].