@@ -103,13 +103,13 @@ use crate::terminal::model::session::{ExecuteCommandOptions, Session};
103103use crate :: terminal:: model_events:: ModelEventDispatcher ;
104104use crate :: terminal:: shell:: ShellType ;
105105use crate :: terminal:: { ShellLaunchData , TerminalModel } ;
106- use crate :: workspaces:: user_workspaces:: TeamContextResolver ;
107106#[ cfg( feature = "local_fs" ) ]
108107use crate :: util:: image:: {
109108 ProcessImageResult , is_supported_image_mime_type, process_image_for_agent,
110109} ;
111110#[ cfg( feature = "local_fs" ) ]
112111use crate :: util:: openable_file_type:: is_binary_file;
112+ use crate :: workspaces:: user_workspaces:: TeamContextResolver ;
113113
114114/// Types of actions that can be executed in parallel.
115115#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
@@ -965,41 +965,39 @@ impl BlocklistAIActionExecutor {
965965 AIAgentActionType :: RequestCommandOutput { .. }
966966 | AIAgentActionType :: WriteToLongRunningShellCommand { .. }
967967 | AIAgentActionType :: ReadShellCommandOutput { .. }
968- | AIAgentActionType :: TransferShellCommandControlToUser { .. } => self
969- . shell_command_executor
970- . update ( ctx, |executor, ctx| {
968+ | AIAgentActionType :: TransferShellCommandControlToUser { .. } => {
969+ self . shell_command_executor . update ( ctx, |executor, ctx| {
971970 executor. should_autoexecute ( input, & team_context_resolver, ctx)
972- } ) ,
973- AIAgentActionType :: ReadFiles ( _ ) => self
974- . read_files_executor
975- . update ( ctx, |executor, ctx| {
971+ } )
972+ }
973+ AIAgentActionType :: ReadFiles ( _ ) => {
974+ self . read_files_executor . update ( ctx, |executor, ctx| {
976975 executor. should_autoexecute ( input, & team_context_resolver, ctx)
977- } ) ,
978- AIAgentActionType :: UploadArtifact ( _ ) => self
979- . upload_artifact_executor
980- . update ( ctx, |executor, ctx| {
976+ } )
977+ }
978+ AIAgentActionType :: UploadArtifact ( _ ) => {
979+ self . upload_artifact_executor . update ( ctx, |executor, ctx| {
981980 executor. should_autoexecute ( input, & team_context_resolver, ctx)
982- } ) ,
983- AIAgentActionType :: SearchCodebase ( _ ) => self
984- . search_codebase_executor
985- . update ( ctx, |executor, ctx| {
981+ } )
982+ }
983+ AIAgentActionType :: SearchCodebase ( _ ) => {
984+ self . search_codebase_executor . update ( ctx, |executor, ctx| {
986985 executor. should_autoexecute ( input, & team_context_resolver, ctx)
987- } ) ,
986+ } )
987+ }
988988 AIAgentActionType :: RequestFileEdits { .. } => self
989989 . request_file_edits_executor
990990 . update ( ctx, |executor, ctx| {
991991 executor. should_autoexecute ( input, & team_context_resolver, ctx)
992992 } ) ,
993- AIAgentActionType :: Grep { .. } => self
994- . grep_executor
995- . update ( ctx, |executor, ctx| {
996- executor. should_autoexecute ( input, & team_context_resolver, ctx)
997- } ) ,
998- AIAgentActionType :: FileGlob { .. } | AIAgentActionType :: FileGlobV2 { .. } => self
999- . file_glob_executor
1000- . update ( ctx, |executor, ctx| {
993+ AIAgentActionType :: Grep { .. } => self . grep_executor . update ( ctx, |executor, ctx| {
994+ executor. should_autoexecute ( input, & team_context_resolver, ctx)
995+ } ) ,
996+ AIAgentActionType :: FileGlob { .. } | AIAgentActionType :: FileGlobV2 { .. } => {
997+ self . file_glob_executor . update ( ctx, |executor, ctx| {
1001998 executor. should_autoexecute ( input, & team_context_resolver, ctx)
1002- } ) ,
999+ } )
1000+ }
10031001 AIAgentActionType :: CallMCPTool { .. } => self
10041002 . call_mcp_tool_executor
10051003 . update ( ctx, |executor, ctx| executor. should_autoexecute ( input, ctx) ) ,
0 commit comments