Skip to content

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

Python

Give the compaction test agent a real empty sys_base

justrachaad8782134fc
diff --git a/src/agent_compact_test_support.zig b/src/agent_compact_test_support.zig
index 8bfd0814..083c6b3a 100644
--- a/src/agent_compact_test_support.zig
+++ b/src/agent_compact_test_support.zig
@@ -38,6 +38,9 @@ pub fn subAgent(a: std.mem.Allocator, sub: bool) Agent {
agent.codex_prev_id = null;
agent.codex_sent_upto = 0;
agent.sys_override = null;
+ // #1333: hot_context.afterCompact skips agents that never went through
+ // the prompt funnel; an undefined base would read as a real one.
+ agent.sys_base = "";
agent.sys_normal = "";
agent.sys_strict = "";
agent.strict = false;