From f84d830ff6e0186790f2dbc70864a6716f11794f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Tue, 5 May 2026 10:36:46 +0200 Subject: [PATCH] agent: use enum tag for eval tool name --- src/agent/Agent.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/Agent.zig b/src/agent/Agent.zig index ef9bc39a..991d5845 100644 --- a/src/agent/Agent.zig +++ b/src/agent/Agent.zig @@ -364,7 +364,7 @@ fn handleSlash(self: *Self, body: []const u8) bool { return false; }; - if (std.mem.eql(u8, schema.tool_name, "eval")) { + if (std.mem.eql(u8, schema.tool_name, @tagName(lp.tools.Action.eval))) { // callEval surfaces the is_error flag separately from the text; // tool_executor.call discards it. const script = extractEvalScript(aa, args_json) catch {