chore: clear webui text-template labels and reload template logs

This commit is contained in:
lpf
2026-03-05 13:00:18 +08:00
parent 94e8f2c9d9
commit cbfe5cf2a0
2 changed files with 0 additions and 50 deletions

View File

@@ -351,7 +351,6 @@ func gatewayCmd() {
reflect.DeepEqual(cfg.Tools, newCfg.Tools) &&
reflect.DeepEqual(cfg.Channels, newCfg.Channels)
templateChanges := summarizeDialogTemplateChanges(cfg, newCfg)
autonomyChanges := summarizeAutonomyChanges(cfg, newCfg)
if runtimeSame {
@@ -378,9 +377,6 @@ func gatewayCmd() {
}
cfg = newCfg
runtimecfg.Set(cfg)
if len(templateChanges) > 0 {
fmt.Printf("↻ Dialog template changes: %s\n", strings.Join(templateChanges, ", "))
}
if len(autonomyChanges) > 0 {
fmt.Printf("↻ Autonomy changes: %s\n", strings.Join(autonomyChanges, ", "))
}
@@ -427,9 +423,6 @@ func gatewayCmd() {
continue
}
go agentLoop.Run(ctx)
if len(templateChanges) > 0 {
fmt.Printf("↻ Dialog template changes: %s\n", strings.Join(templateChanges, ", "))
}
if len(autonomyChanges) > 0 {
fmt.Printf("↻ Autonomy changes: %s\n", strings.Join(autonomyChanges, ", "))
}
@@ -569,17 +562,6 @@ func summarizeAutonomyChanges(oldCfg, newCfg *config.Config) []string {
return changes
}
func summarizeDialogTemplateChanges(oldCfg, newCfg *config.Config) []string {
if oldCfg == nil || newCfg == nil {
return nil
}
out := make([]string, 0)
if oldCfg.Agents.Defaults.Heartbeat.PromptTemplate != newCfg.Agents.Defaults.Heartbeat.PromptTemplate {
out = append(out, "heartbeat.prompt_template")
}
return out
}
func runGatewayStartupCompactionCheck(parent context.Context, agentLoop *agent.AgentLoop) {
if agentLoop == nil {
return

View File

@@ -357,22 +357,6 @@ const resources = {
idle_round_budget_release_sec: 'Idle Round Budget Release (Seconds)',
allowed_task_keywords: 'Allowed Task Keywords',
ekg_consecutive_error_threshold: 'EKG Consecutive Error Threshold',
texts: 'Text Templates',
no_response_fallback: 'No-response Fallback',
think_only_fallback: 'Think-only Fallback',
memory_recall_keywords: 'Memory Recall Keywords',
lang_usage: 'Language Usage Hint',
lang_invalid: 'Invalid Language Message',
lang_updated_template: 'Language Updated Template',
subagents_none: 'No-subagents Message',
sessions_none: 'No-sessions Message',
unsupported_action: 'Unsupported Action Message',
system_rewrite_template: 'System Rewrite Template',
runtime_compaction_note: 'Runtime Compaction Note',
startup_compaction_note: 'Startup Compaction Note',
autonomy_important_keywords: 'Autonomy Important Keywords',
autonomy_completion_template: 'Autonomy Completion Template',
autonomy_blocked_template: 'Autonomy Blocked Template',
context_compaction: 'Context Compaction',
mode: 'Mode',
trigger_messages: 'Trigger Messages',
@@ -797,22 +781,6 @@ const resources = {
idle_round_budget_release_sec: '空闲轮次预算释放(秒)',
allowed_task_keywords: '允许任务关键词',
ekg_consecutive_error_threshold: 'EKG 连续错误阈值',
texts: '文本模板',
no_response_fallback: '无响应兜底文案',
think_only_fallback: '仅思考兜底文案',
memory_recall_keywords: '记忆召回关键词',
lang_usage: '语言用法提示',
lang_invalid: '语言非法提示',
lang_updated_template: '语言更新模板',
subagents_none: '无子代理提示',
sessions_none: '无会话提示',
unsupported_action: '不支持操作提示',
system_rewrite_template: '系统改写模板',
runtime_compaction_note: '运行期压缩说明',
startup_compaction_note: '启动期压缩说明',
autonomy_important_keywords: '自治重要关键词',
autonomy_completion_template: '自治完成模板',
autonomy_blocked_template: '自治阻塞模板',
context_compaction: '上下文压缩',
mode: '模式',
trigger_messages: '触发消息数',