Revert "fix: preserve agent system prompt for greetings"

This reverts commit b22303cec8.
This commit is contained in:
lyingbug
2026-06-04 17:39:10 +08:00
parent b22303cec8
commit 4369d156e1
5 changed files with 3 additions and 54 deletions
@@ -117,7 +117,6 @@ func (s *sessionService) applyAgentOverridesToChatManage(
// Override summary config fields
if customAgent.Config.SystemPrompt != "" {
cm.SummaryConfig.Prompt = customAgent.Config.SystemPrompt
cm.AgentSystemPromptApplied = true
logger.Infof(ctx, "Using custom agent's system_prompt")
}
if customAgent.Config.ContextTemplate != "" {