Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

Merge #185: fix(hive): bounce and log mail to an id with no inbox instead of dropping it

Chaitanya Girif82c7408772b
diff --cc src/main/hive.ts
index 11427815,420951d0..c0752517
--- a/src/main/hive.ts
+++ b/src/main/hive.ts
@@@ -1242,13 -1197,20 +1245,16 @@@ export class HiveManager
const resolveTo = (to: string): string => (to === 'human' || to === 'god' ? godId : to);
const targets = msg.to === 'broadcast'
// The roster for fan-out is the ACTIVE registry: skip the send-only prep
- // assistant, any archived agent (closed tab), and providers that can't
- // expose safe-idle lifecycle state (hookless custom commands), so mail never
- // piles into a dead inbox. Claude, Codex and Antigravity are included; their
- // hooks let the renderer wake them only after a safe idle boundary.
- ? Object.keys(reg.agents).filter((a) =>
- a !== msg.from
- && !reg.agents[a]?.isAssistant
- && !reg.agents[a]?.archived
- && canReceiveInbox(reg.agents[a]?.provider))
+ // assistant and any archived agent (closed tab). Hookless providers are
+ // NOT skipped — the per-target path below already serves them a terminal
+ // work order, so excluding them here only made a broadcast invisible to an
+ // agent that direct mail reaches fine. See selectBroadcastTargets.
+ ? selectBroadcastTargets(reg.agents, msg.from)
// Never deliver to self — guards a god → "human" message looping back to god.
: [resolveTo(msg.to)].filter((t) => t !== msg.from);
+ // Targets that actually took delivery. The log below reports these instead of
+ // intent, so a bounced or dropped message can never read as delivered.
+ const delivered: string[] = [];
for (const t of targets) {
// The send-only prep assistant must never be a delivery target: it doesn't
// drain an inbox, so direct mail to it would rot unread (observed live: a