From 8ae087580000a41ed85d97b4873117fdac9e3e92 Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Wed, 4 Mar 2026 20:23:06 -0500 Subject: [PATCH] feat(cli): add synced column support to experiment commands Update experiment creation to track sync status: - Insert experiments with synced=0 (not synced to server) - Align with schema update in db.zig for offline tracking Part of offline run synchronization feature. --- cli/src/commands/experiment.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/experiment.zig b/cli/src/commands/experiment.zig index cdf64f6..f3875e2 100644 --- a/cli/src/commands/experiment.zig +++ b/cli/src/commands/experiment.zig @@ -92,7 +92,7 @@ fn createExperiment(allocator: std.mem.Allocator, args: []const []const u8, json var database = try db.DB.init(allocator, db_path); defer database.close(); - // TODO: Add synced column to schema - required for server sync + // Insert experiment with synced=0 (not synced to server yet) const sql = "INSERT INTO ml_experiments (experiment_id, name, description, status, synced) VALUES (?, ?, ?, 'active', 0);"; const stmt = try database.prepare(sql); defer db.DB.finalize(stmt);