Skip to content

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

Python

fix: #716 test roots must zero sys_base before pinStandingGoal

Cursor Agent24146be9d930
diff --git a/src/tui_goal.zig b/src/tui_goal.zig
index 85a7f734..7f5c1132 100644
--- a/src/tui_goal.zig
+++ b/src/tui_goal.zig
@@ -59,6 +59,7 @@ pub fn apply(root: *Agent, op: Op, text: []const u8, now_ms: i64) void {
fn flowRoot(arena: Allocator) Agent {
var root: Agent = undefined;
root.arena = arena;
+ root.sys_base = ""; // undefined would skip the empty check in pinStandingGoal
root.sub = false;
root.review_mode = false;
root.todos = .empty;