File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
frontend/app/[locale]/agents/components Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1930,6 +1930,13 @@ export default function AgentSetupOrchestrator({
19301930 return ;
19311931 }
19321932 const newAgentId = Number ( createResult . data . agent_id ) ;
1933+ const copiedAgentFallback : Agent = {
1934+ ...detail ,
1935+ id : String ( newAgentId ) ,
1936+ name : copyName ,
1937+ display_name : copyDisplayName ,
1938+ sub_agent_id_list : subAgentIds ,
1939+ } ;
19331940
19341941 // Copy tool configuration to the new agent
19351942 for ( const tool of tools ) {
@@ -1969,6 +1976,8 @@ export default function AgentSetupOrchestrator({
19691976 } )
19701977 ) ;
19711978 }
1979+ // Auto select the newly copied agent for editing
1980+ await handleEditAgent ( copiedAgentFallback , t ) ;
19721981 } catch ( error ) {
19731982 log . error ( "Failed to copy agent:" , error ) ;
19741983 message . error ( t ( "agentConfig.agents.copyFailed" ) ) ;
You can’t perform that action at this time.
0 commit comments