@@ -218,13 +218,6 @@ pub enum CliRootCommands {
218218 /// Inline shell completions
219219 #[ command( subcommand) ]
220220 Inline ( inline:: InlineSubcommand ) ,
221- /// Agent root commands
222- #[ command( disable_help_flag = true ) ]
223- Agent {
224- /// Args for Agent subcommand
225- #[ arg( trailing_var_arg = true , allow_hyphen_values = true ) ]
226- args : Vec < String > ,
227- } ,
228221}
229222
230223impl CliRootCommands {
@@ -259,7 +252,6 @@ impl CliRootCommands {
259252 CliRootCommands :: Chat { .. } => "chat" ,
260253 CliRootCommands :: Mcp { .. } => "mcp" ,
261254 CliRootCommands :: Inline ( _) => "inline" ,
262- CliRootCommands :: Agent { .. } => "agent" ,
263255 }
264256 }
265257}
@@ -383,13 +375,6 @@ impl Cli {
383375 Self :: execute_chat ( "mcp" , Some ( args) , true ) . await
384376 } ,
385377 CliRootCommands :: Inline ( subcommand) => subcommand. execute ( & cli_context) . await ,
386- CliRootCommands :: Agent { args } => {
387- if args. iter ( ) . any ( |arg| [ "--help" , "-h" ] . contains ( & arg. as_str ( ) ) ) {
388- return Self :: execute_chat ( "agent" , Some ( args) , false ) . await ;
389- }
390-
391- Self :: execute_chat ( "agent" , Some ( args) , true ) . await
392- } ,
393378 } ,
394379 // Root command
395380 None => Self :: execute_chat ( "chat" , None , true ) . await ,
0 commit comments