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 #226: report lifetime spend, not spend since the last app restart

Chaitanya Giribd5026d69bd8
diff --cc src/main/index.ts
index d25685ee,7b902b47..5b1df90b
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@@ -1210,11 -1143,11 +1223,12 @@@ function writeFleetSnapshot(): void
isGod: !!a.isGod,
breaker: breaker.levelFor(id),
tokens,
- usd: u ? Number(u.usd.toFixed(4)) : 0,
+ usd: lifetime === null ? sessionUsd : Number(lifetime.toFixed(4)),
+ sessionUsd,
lastTool: spans.length ? spans[spans.length - 1].tool : null,
lastActiveSecAgo: u ? Math.round((now - u.ts) / 1000) : null,
- inboxBacklog: hive.inboxBacklog(id)
+ inboxBacklog: hive.inboxBacklog(id),
+ onHold: !!a.onHold
};
});
hive.writeFleetSnapshot({ ts: now, agents });