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

fix(schedules): maint-1 N1 — narrow compact gate to kind only, preserve empty-body dispatch (Pam nit)

Chaitanya Giri5f6191bf58ba
diff --git a/src/main/index.ts b/src/main/index.ts
index 5847eaac..4f330ad2 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -460,7 +460,10 @@ function syncMissions(): void {
try {
// A 'compact' maintenance mission (maint-1) is compaction-ONLY: it carries
// no dispatch body/target, so skip the hive.send and just fire auto-compact.
- if (m.kind !== 'compact' && m.body && hive.enabled()) {
+ // Gate on `kind!=='compact'` ALONE — that already excludes the compact mission;
+ // we deliberately do NOT add `&& m.body`, so other (dispatch) missions keep
+ // their prior behaviour, including the historical empty-body send (Pam N1).
+ if (m.kind !== 'compact' && hive.enabled()) {
hive.send({ to: m.to, act: 'request', subject: m.label, body: m.body }, 'scheduler');
}
// Auto-compact: do NOT jam /compact into busy terminals. Hand it to the