this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Regenerate daily summaries when new sessions are added

Previously, daily summaries were only generated for dates without any
summary. If new sessions were processed for a date that already had a
summary, the summary would become stale.

Now the process command tracks which dates had new sessions and
regenerates summaries for those dates, ensuring the daily view
stays up to date.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

alice c6b06e97 4b0f4142

+11 -4
+11 -4
src/cli/process.ts
··· 214 214 console.log(''); 215 215 } 216 216 217 - // Generate brag summaries for new dates 217 + // Generate brag summaries for dates that had new sessions 218 218 console.log('📝 Generating daily summaries...\n'); 219 - await generateMissingBragSummaries(verbose); 219 + await regenerateSummariesForDates(datesProcessed, verbose); 220 220 221 221 console.log(`\n✅ Done! Processed ${processed} sessions (${errors} errors)\n`); 222 222 console.log('Run `bun cli serve` to view your worklog.\n'); ··· 330 330 }; 331 331 } 332 332 333 - async function generateMissingBragSummaries(verbose: boolean): Promise<void> { 333 + async function regenerateSummariesForDates( 334 + datesToRegenerate: Set<string>, 335 + verbose: boolean 336 + ): Promise<void> { 337 + // Also include any dates that have never had a summary generated 334 338 const datesWithoutSummary = getDatesWithoutBragSummary(); 339 + const allDates = new Set([...datesToRegenerate, ...datesWithoutSummary]); 340 + 341 + if (allDates.size === 0) return; 335 342 336 - for (const date of datesWithoutSummary) { 343 + for (const date of allDates) { 337 344 try { 338 345 const sessions = getSessionsForDate(date); 339 346 if (sessions.length === 0) continue;