graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
acp_engine_test: the slash-command meter is a usage_update too
justrachb2171af62a13
diff --git a/src/acp_engine_test.zig b/src/acp_engine_test.zigindex 7a35da0f..65c8a9cb 100644--- a/src/acp_engine_test.zig+++ b/src/acp_engine_test.zig@@ -27,7 +27,7 @@ test "slash commands refresh occupancy before their terminal response" {var dispatch: Dispatch = .{ .turn = echoTurn, .ctx = undefined, .slash = Fixture.slash, .meter = Fixture.meter };try handleLine(&dispatch, arena.allocator(), &writer, "{\"id\":1,\"method\":\"session/prompt\",\"params\":{\"prompt\":[{\"type\":\"text\",\"text\":\"/compact\"}]}}");const output = writer.buffered();- const meter_pos = std.mem.indexOf(u8, output, "\"used\":20,\"window\":100") orelse return error.MissingMeter;+ const meter_pos = std.mem.indexOf(u8, output, "\"usage_update\",\"used\":20,\"size\":100") orelse return error.MissingMeter;const end_pos = std.mem.indexOf(u8, output, "stopReason") orelse return error.MissingResponse;try std.testing.expect(meter_pos < end_pos);}