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:
parent
a5c285a894
commit
aedefe6391
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue