File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ pub fn logStep(allocator: Allocator, step: AgentStep) !void {
7171 });
7272
7373 // Build JSON manually (Zig 0.15 compatible)
74- var buf : std .ArrayList (u8 ) = .empty ;
74+ var buf = try std .ArrayList (u8 ). initCapacity ( allocator , 256 ) ;
7575 defer buf .deinit (allocator );
7676 const w = buf .writer (allocator );
7777
@@ -80,8 +80,8 @@ pub fn logStep(allocator: Allocator, step: AgentStep) !void {
8080 try w .print ("\" agent\" :\" {s}\" ," , .{step .agent });
8181 try w .print ("\" episode_type\" :\" {s}\" ," , .{episode_type });
8282 try w .print ("\" timestamp\" :\" {d}\" ," , .{ts });
83- try w .print ("\" title\" :\" {s}\" , .{title});
84- try w.print(" \"correlation_id\" :\" {d}" , .{step .issue_number });
83+ try w .print ("\" title\" :\" {s}\" " , .{title });
84+ try w .print ("\" correlation_id\" :\" {d}\" , " , .{step .issue_number });
8585 try w .writeAll ("\" data\" :{" );
8686 try w .print ("\" domain\" :\" github_issue\" " , .{});
8787
You can’t perform that action at this time.
0 commit comments