mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 14:58:58 +08:00
tune proactive dialog pacing with configurable same-reason cooldown
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user