refactor: update AI agent handling to maintain active published revision and improve toast messages

This commit is contained in:
mlogclub
2026-07-28 10:26:10 +08:00
parent cca3b558a3
commit 7f9ff18743
6 changed files with 160 additions and 6 deletions
-1
View File
@@ -123,7 +123,6 @@ func (s *aIAgentService) UpdateAIAgent(req request.UpdateAIAgentRequest, operato
"knowledge_ids": item.KnowledgeIDs,
"skill_ids": item.SkillIDs,
"allowed_mcp_tools": item.AllowedMCPTools,
"published_revision_id": 0,
"update_user_id": operator.UserID,
"update_user_name": operator.Username,
"updated_at": time.Now(),