tune proactive dialog pacing with configurable same-reason cooldown

This commit is contained in:
DBT
2026-02-24 04:41:20 +00:00
parent 791eb3b96c
commit 35fe28d9f4
5 changed files with 28 additions and 7 deletions

View File

@@ -102,6 +102,9 @@ func Validate(cfg *Config) []error {
if aut.NotifyCooldownSec <= 0 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.notify_cooldown_sec must be > 0 when enabled=true"))
}
if aut.NotifySameReasonCooldownSec <= 0 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.notify_same_reason_cooldown_sec must be > 0 when enabled=true"))
}
if qh := strings.TrimSpace(aut.QuietHours); qh != "" {
parts := strings.Split(qh, "-")
if len(parts) != 2 {