mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-15 03:57:30 +08:00
complete config change tracking for autonomy pacing and templates
This commit is contained in:
@@ -419,6 +419,9 @@ func summarizeAutonomyChanges(oldCfg, newCfg *config.Config) []string {
|
||||
if o.NotifyCooldownSec != n.NotifyCooldownSec {
|
||||
changes = append(changes, "notify_cooldown_sec")
|
||||
}
|
||||
if o.NotifySameReasonCooldownSec != n.NotifySameReasonCooldownSec {
|
||||
changes = append(changes, "notify_same_reason_cooldown_sec")
|
||||
}
|
||||
return changes
|
||||
}
|
||||
|
||||
@@ -440,6 +443,8 @@ func summarizeDialogTemplateChanges(oldCfg, newCfg *config.Config) []string {
|
||||
{name: "lang_updated_template", a: oldT.LangUpdatedTemplate, b: newT.LangUpdatedTemplate},
|
||||
{name: "runtime_compaction_note", a: oldT.RuntimeCompactionNote, b: newT.RuntimeCompactionNote},
|
||||
{name: "startup_compaction_note", a: oldT.StartupCompactionNote, b: newT.StartupCompactionNote},
|
||||
{name: "autonomy_completion_template", a: oldT.AutonomyCompletionTemplate, b: newT.AutonomyCompletionTemplate},
|
||||
{name: "autonomy_blocked_template", a: oldT.AutonomyBlockedTemplate, b: newT.AutonomyBlockedTemplate},
|
||||
}
|
||||
out := make([]string, 0)
|
||||
for _, c := range checks {
|
||||
@@ -447,6 +452,9 @@ func summarizeDialogTemplateChanges(oldCfg, newCfg *config.Config) []string {
|
||||
out = append(out, c.name)
|
||||
}
|
||||
}
|
||||
if strings.Join(oldT.AutonomyImportantKeywords, "|") != strings.Join(newT.AutonomyImportantKeywords, "|") {
|
||||
out = append(out, "autonomy_important_keywords")
|
||||
}
|
||||
if oldCfg.Agents.Defaults.Heartbeat.PromptTemplate != newCfg.Agents.Defaults.Heartbeat.PromptTemplate {
|
||||
out = append(out, "heartbeat.prompt_template")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user