Reduce auto-sync delays for better UX

- Reduce flush debounce from 5s to 1s (BEADS_FLUSH_DEBOUNCE)
- Reduce daemon poll interval from 10s to 2s
- Makes issue changes sync much faster to JSONL and git
This commit is contained in:
Steve Yegge
2025-10-26 17:14:25 -07:00
parent 0f27c5abf1
commit fcff20a735
4 changed files with 7 additions and 5 deletions

View File

@@ -462,12 +462,12 @@ var rootCmd = &cobra.Command{
// getDebounceDuration returns the auto-flush debounce duration
// Configurable via config file or BEADS_FLUSH_DEBOUNCE env var (e.g., "500ms", "10s")
// Defaults to 5 seconds if not set or invalid
// Defaults to 1 second if not set or invalid
func getDebounceDuration() time.Duration {
duration := config.GetDuration("flush-debounce")
if duration == 0 {
// If parsing failed, use default
return 5 * time.Second
return 1 * time.Second
}
return duration
}