@@ -5205,6 +5205,7 @@ func (s *Server) handleWebUISubagentProfiles(w http.ResponseWriter, r *http.Requ
52055205 Action string `json:"action"`
52065206 AgentID string `json:"agent_id"`
52075207 Name string `json:"name"`
5208+ NotifyMainPolicy string `json:"notify_main_policy"`
52085209 Role string `json:"role"`
52095210 SystemPromptFile string `json:"system_prompt_file"`
52105211 MemoryNamespace string `json:"memory_namespace"`
@@ -5242,6 +5243,7 @@ func (s *Server) handleWebUISubagentProfiles(w http.ResponseWriter, r *http.Requ
52425243 profile , err := store .Upsert (tools.SubagentProfile {
52435244 AgentID : agentID ,
52445245 Name : body .Name ,
5246+ NotifyMainPolicy : body .NotifyMainPolicy ,
52455247 Role : body .Role ,
52465248 SystemPromptFile : body .SystemPromptFile ,
52475249 MemoryNamespace : body .MemoryNamespace ,
@@ -5270,6 +5272,7 @@ func (s *Server) handleWebUISubagentProfiles(w http.ResponseWriter, r *http.Requ
52705272 }
52715273 next := * existing
52725274 next .Name = body .Name
5275+ next .NotifyMainPolicy = body .NotifyMainPolicy
52735276 next .Role = body .Role
52745277 next .SystemPromptFile = body .SystemPromptFile
52755278 next .MemoryNamespace = body .MemoryNamespace
@@ -5331,6 +5334,7 @@ func (s *Server) handleWebUISubagentProfiles(w http.ResponseWriter, r *http.Requ
53315334 profile , err := store .Upsert (tools.SubagentProfile {
53325335 AgentID : agentID ,
53335336 Name : body .Name ,
5337+ NotifyMainPolicy : body .NotifyMainPolicy ,
53345338 Role : body .Role ,
53355339 SystemPromptFile : body .SystemPromptFile ,
53365340 MemoryNamespace : body .MemoryNamespace ,
0 commit comments