diff --git a/api.go b/api.go index 1cb8651..267365e 100644 --- a/api.go +++ b/api.go @@ -134,6 +134,10 @@ func (a *Agate) SaveSnapshot(ctx context.Context, name string, parentID string) } // If parentID is not provided, use the current snapshot ID + if parentID == "" { + parentID = a.currentSnapshotID + } + effectiveParentID := parentID // Create the snapshot