mirror of
https://github.com/imjasonh/cnotes
synced 2026-07-08 17:16:00 +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
|
|
@ -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