diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02095016b..d5a88312d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -145,8 +145,7 @@ jobs: timeout-minutes: 15 needs: detect-changes if: >- - needs.detect-changes.outputs.docs-only != 'true' && - github.event_name == 'push' && github.ref == 'refs/heads/main' + needs.detect-changes.outputs.docs-only != 'true' runs-on: blacksmith-4vcpu-windows-2025 steps: diff --git a/src/resources/extensions/gsd/activity-log.ts b/src/resources/extensions/gsd/activity-log.ts index 932f28e2e..82896ea5b 100644 --- a/src/resources/extensions/gsd/activity-log.ts +++ b/src/resources/extensions/gsd/activity-log.ts @@ -153,6 +153,7 @@ export function pruneActivityLogs(activityDir: string, retentionDays: number): v const cutoff = Date.now() - retentionDays * 86_400_000; for (const entry of entries) { if (entry.seq === maxSeq) continue; // always preserve highest-seq + if (retentionDays === 0) { try { unlinkSync(entry.filePath); } catch { /* skip */ } continue; } try { const mtime = statSync(entry.filePath).mtimeMs; if (Math.floor(mtime) <= cutoff) unlinkSync(entry.filePath);