Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

fix: drop pointless discard in the #845 spinner test

Rach7b7559171c68
diff --git a/TUI/issue_845_tests.zig b/TUI/issue_845_tests.zig
index 0fc90fa2..0e88b404 100644
--- a/TUI/issue_845_tests.zig
+++ b/TUI/issue_845_tests.zig
@@ -30,7 +30,6 @@ test "queuing a follow-up keeps the thinking indicator live (#845)" {
term.init(alloc, 80, 24);
defer term.deinit();
const job = try attachThinking(&term, alloc);
- _ = job;
term.now_ms = 0;
const idle = try term.screen();
diff --git a/src/session_tests.zig b/src/session_tests.zig
index 30bd9893..4b8fe420 100644
--- a/src/session_tests.zig
+++ b/src/session_tests.zig
@@ -146,13 +146,17 @@ test "#830 title preserves UTF-8 at the 80-byte boundary" {
const a = arena_state.allocator();
var root: Agent = undefined;
root.session_title = null;
+ const a76 = "a" ** 76;
+ const a77 = "a" ** 77;
+ const a78 = "a" ** 78;
+ const a79 = "a" ** 79;
const cases = .{
- .{ "a" * *78 ++ "é" ++ "suffix", "a" * *78 ++ "é" },
- .{ "a" * *79 ++ "é" ++ "suffix", "a" * *79 },
- .{ "a" * *77 ++ "界" ++ "suffix", "a" * *77 ++ "界" },
- .{ "a" * *78 ++ "界" ++ "suffix", "a" * *78 },
- .{ "a" * *76 ++ "🎉" ++ "suffix", "a" * *76 ++ "🎉" },
- .{ "a" * *79 ++ "🎉" ++ "suffix", "a" * *79 },
+ .{ a78 ++ "é" ++ "suffix", a78 ++ "é" },
+ .{ a79 ++ "é" ++ "suffix", a79 },
+ .{ a77 ++ "界" ++ "suffix", a77 ++ "界" },
+ .{ a78 ++ "界" ++ "suffix", a78 },
+ .{ a76 ++ "🎉" ++ "suffix", a76 ++ "🎉" },
+ .{ a79 ++ "🎉" ++ "suffix", a79 },
};
inline for (cases) |case| {
root.messages = (try std.json.parseFromSliceLeaky(Value, a, "[{\"role\":\"user\",\"content\":[{\"type\":\"input_text\",\"text\":\" " ++ case[0] ++ " \"}]}]", .{})).array;