diff --git a/client/cmd/saveHistoryEntry.go b/client/cmd/saveHistoryEntry.go index 4b59f3e..b2d69ee 100644 --- a/client/cmd/saveHistoryEntry.go +++ b/client/cmd/saveHistoryEntry.go @@ -108,6 +108,11 @@ func presaveHistoryEntry(ctx context.Context) { entry.StartTime = time.Unix(startTime, 0).UTC() entry.EndTime = time.Unix(0, 0).UTC() + // Skip saving references to presaving + if strings.Contains(entry.Command, "presaveHistoryEntry") { + return + } + // And persist it locally. db := hctx.GetDb(ctx) err = lib.ReliableDbCreate(db, *entry)