Skip to content

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

Python

fix: discard retainReferenced remap at ask_user

Cursor Agentd9a76a580881
diff --git a/src/ask_user.zig b/src/ask_user.zig
index 32c951be..51d52431 100644
--- a/src/ask_user.zig
+++ b/src/ask_user.zig
@@ -76,7 +76,7 @@ pub fn askUser(self: *Agent, call: ToolCall) !ExecResult {
fn finishAnswer(self: *Agent, raw: []const u8) !ExecResult {
const answer = try self.arena.dupe(u8, raw);
vision.stageGuiImageAttachment(self, answer);
- vision_queue.retainReferenced(self, answer);
+ _ = vision_queue.retainReferenced(self, answer);
// Pixels stay queued for flushPending after the text tool result. If the
// reply only has `[Image]` markers and nothing staged, say so instead of
// letting the model treat placeholders as screenshots.