From 6eb9ba0a3b86d2dd6efeb72a03ddd9d99369c0d7 Mon Sep 17 00:00:00 2001 From: AgentSeal Date: Sat, 25 Apr 2026 14:04:16 +0200 Subject: [PATCH] chore: clean up yield.ts - remove redundant comments and dead code --- src/yield.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/yield.ts b/src/yield.ts index 90fea61..eba1900 100644 --- a/src/yield.ts +++ b/src/yield.ts @@ -57,7 +57,6 @@ function getCommitsInRange(cwd: string, since: Date, until: Date, mainBranch: st const sinceStr = since.toISOString() const untilStr = until.toISOString() - // Get all commits in range with their info const log = runGit( `git log --all --since="${sinceStr}" --until="${untilStr}" --format="%H|%aI|%s"`, cwd @@ -88,7 +87,6 @@ function categorizeSession( return { category: 'abandoned', commitCount: 0 } } - // Find commits within a window around the session (session time + 1 hour buffer) const sessionStart = new Date(session.firstTimestamp) const lastTs = session.lastTimestamp ?? session.firstTimestamp const sessionEnd = new Date(new Date(lastTs).getTime() + 60 * 60 * 1000) // +1 hour @@ -98,11 +96,6 @@ function categorizeSession( ) if (relevantCommits.length === 0) { - // No commits near this session - check if session had edits - if (session.toolBreakdown['Edit'] || session.toolBreakdown['Write']) { - return { category: 'abandoned', commitCount: 0 } - } - // No edits, not applicable return { category: 'abandoned', commitCount: 0 } }