graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Keep one mailbox generation helper after the release merge
Cursor Agent56537e7b78bd
diff --git a/src/peer_inbox.zig b/src/peer_inbox.zigindex dc9a2903..8c9e95d6 100644--- a/src/peer_inbox.zig+++ b/src/peer_inbox.zig@@ -80,23 +80,6 @@ pub fn pending() bool {return g_len > 0 or g_dropped > 0;}-/// Mailbox generation: unread count plus the parked bodies. Same state-/// produces the same value so a wake can be coalesced (#1137).-pub fn generation() u64 {- var h = std.hash.Wyhash.init(0);- h.update(std.mem.asBytes(&g_len));- h.update(std.mem.asBytes(&g_dropped));- var i: usize = 0;- while (i < g_len) : (i += 1) {- const p = itemAt(i);- h.update(fromSlice(p));- h.update(textSlice(p));- h.update(std.mem.asBytes(&p.dm));- h.update(std.mem.asBytes(&p.device));- }- return h.final();-}-/// True when any parked body starts with `want` (daddy directives).pub fn anyTextPrefixed(want: []const u8) bool {var i: usize = 0;