1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-07 00:33:04 +00:00

Fix missing user prompts by increasing time buffer to 60 seconds

This commit is contained in:
Jason Hall 2025-07-21 14:45:14 -04:00
parent a5c285a894
commit aedefe6391
Failed to extract signature
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,6 @@
⭐️ `cnotes` is pronounced like 💵 c-notes or 🏊 [_cenotes_](https://en.wikipedia.org/wiki/Cenote)
Test: This edit is to debug missing user prompts in git notes.
## Quick Start

View file

@ -262,8 +262,9 @@ func getLastCommitTimeForSession(ctx context.Context, notesManager *notes.NotesM
return time.Time{}
}
// Add a small buffer to ensure we don't miss events that happened right at commit time
return commitTime.Add(-5 * time.Second)
// Add a larger buffer to ensure we capture user prompts that triggered the work
// User prompts often happen 30-60 seconds before the commit
return commitTime.Add(-60 * time.Second)
}
// readStdinWithTimeout reads from stdin with a timeout