Skip to content

Commit b3c7bf2

Browse files
Antigravity Agentclaude
andcommitted
fix(queen): ArrayList API for Zig 0.15 compatibility (#477)
- init(allocator) → initCapacity(allocator, 256) with try - deinit() → deinit(allocator) - writer() → writer(allocator) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 47dfad7 commit b3c7bf2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tri/queen/queen_bridge.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)