@@ -868,30 +868,28 @@ async function save() {
868868 saving .value = true
869869 try {
870870 const payload = {
871- subagent_orchestrator: {
872- main_enable: cfg .value .main_enable ,
873- remove_main_duplicate_tools: cfg .value .remove_main_duplicate_tools ,
874- router_system_prompt: cfg .value .router_system_prompt ,
875- agents: cfg .value .agents .map ((agent ) => ({
876- name: agent .name ,
877- persona_id: agent .persona_id ,
878- public_description: agent .public_description ,
879- enabled: agent .enabled ,
880- provider_id: agent .provider_id
881- })),
882- dynamic_agents: {
883- enabled: dynamicCfg .value .enabled ,
884- max_dynamic_subagent_count: dynamicCfg .value .max_dynamic_subagent_count ,
885- auto_cleanup_per_turn: dynamicCfg .value .auto_cleanup_per_turn ,
886- tools_blacklist: dynamicCfg .value .tools_blacklist ,
887- tools_inherent: dynamicCfg .value .tools_inherent
888- },
889- history_enabled: rootCfg .value .history_enabled ,
890- shared_context_enabled: rootCfg .value .shared_context_enabled ,
891- shared_context_maxlen: rootCfg .value .shared_context_maxlen ,
892- subagent_history_maxlen: rootCfg .value .subagent_history_maxlen ,
893- execution_timeout: rootCfg .value .execution_timeout
894- }
871+ main_enable: cfg .value .main_enable ,
872+ remove_main_duplicate_tools: cfg .value .remove_main_duplicate_tools ,
873+ router_system_prompt: cfg .value .router_system_prompt ,
874+ agents: cfg .value .agents .map ((agent ) => ({
875+ name: agent .name ,
876+ persona_id: agent .persona_id ,
877+ public_description: agent .public_description ,
878+ enabled: agent .enabled ,
879+ provider_id: agent .provider_id
880+ })),
881+ dynamic_agents: {
882+ enabled: dynamicCfg .value .enabled ,
883+ max_dynamic_subagent_count: dynamicCfg .value .max_dynamic_subagent_count ,
884+ auto_cleanup_per_turn: dynamicCfg .value .auto_cleanup_per_turn ,
885+ tools_blacklist: dynamicCfg .value .tools_blacklist ,
886+ tools_inherent: dynamicCfg .value .tools_inherent
887+ },
888+ history_enabled: rootCfg .value .history_enabled ,
889+ shared_context_enabled: rootCfg .value .shared_context_enabled ,
890+ shared_context_maxlen: rootCfg .value .shared_context_maxlen ,
891+ subagent_history_maxlen: rootCfg .value .subagent_history_maxlen ,
892+ execution_timeout: rootCfg .value .execution_timeout
895893 }
896894
897895 const res = await axios .post (' /api/subagent/config' , payload )
0 commit comments