@@ -967,35 +967,36 @@ impl BlocklistAIActionExecutor {
967967 | AIAgentActionType :: ReadShellCommandOutput { .. }
968968 | AIAgentActionType :: TransferShellCommandControlToUser { .. } => {
969969 self . shell_command_executor . update ( ctx, |executor, ctx| {
970- executor. should_autoexecute ( input, & team_context_resolver, ctx)
970+ executor. should_autoexecute ( input, & team_context_resolver ( ctx ) , ctx)
971971 } )
972972 }
973973 AIAgentActionType :: ReadFiles ( _) => {
974974 self . read_files_executor . update ( ctx, |executor, ctx| {
975- executor. should_autoexecute ( input, & team_context_resolver, ctx)
975+ executor. should_autoexecute ( input, & team_context_resolver ( ctx ) , ctx)
976976 } )
977977 }
978978 AIAgentActionType :: UploadArtifact ( _) => {
979979 self . upload_artifact_executor . update ( ctx, |executor, ctx| {
980- executor. should_autoexecute ( input, & team_context_resolver, ctx)
980+ executor. should_autoexecute ( input, & team_context_resolver ( ctx ) , ctx)
981981 } )
982982 }
983983 AIAgentActionType :: SearchCodebase ( _) => {
984984 self . search_codebase_executor . update ( ctx, |executor, ctx| {
985- executor. should_autoexecute ( input, & team_context_resolver, ctx)
985+ executor. should_autoexecute ( input, & team_context_resolver ( ctx ) , ctx)
986986 } )
987987 }
988- AIAgentActionType :: RequestFileEdits { .. } => self
989- . request_file_edits_executor
990- . update ( ctx, |executor, ctx| {
991- executor. should_autoexecute ( input, & team_context_resolver, ctx)
992- } ) ,
988+ AIAgentActionType :: RequestFileEdits { .. } => {
989+ self . request_file_edits_executor
990+ . update ( ctx, |executor, ctx| {
991+ executor. should_autoexecute ( input, & team_context_resolver ( ctx) , ctx)
992+ } )
993+ }
993994 AIAgentActionType :: Grep { .. } => self . grep_executor . update ( ctx, |executor, ctx| {
994- executor. should_autoexecute ( input, & team_context_resolver, ctx)
995+ executor. should_autoexecute ( input, & team_context_resolver ( ctx ) , ctx)
995996 } ) ,
996997 AIAgentActionType :: FileGlob { .. } | AIAgentActionType :: FileGlobV2 { .. } => {
997998 self . file_glob_executor . update ( ctx, |executor, ctx| {
998- executor. should_autoexecute ( input, & team_context_resolver, ctx)
999+ executor. should_autoexecute ( input, & team_context_resolver ( ctx ) , ctx)
9991000 } )
10001001 }
10011002 AIAgentActionType :: CallMCPTool { .. } => self
@@ -1025,11 +1026,12 @@ impl BlocklistAIActionExecutor {
10251026 AIAgentActionType :: UseComputer ( _) => self
10261027 . use_computer_executor
10271028 . update ( ctx, |executor, ctx| executor. should_autoexecute ( input, ctx) ) ,
1028- AIAgentActionType :: RequestComputerUse ( _) => self
1029- . request_computer_use_executor
1030- . update ( ctx, |executor, ctx| {
1031- executor. should_autoexecute ( input, & team_context_resolver, ctx)
1032- } ) ,
1029+ AIAgentActionType :: RequestComputerUse ( _) => {
1030+ self . request_computer_use_executor
1031+ . update ( ctx, |executor, ctx| {
1032+ executor. should_autoexecute ( input, & team_context_resolver ( ctx) , ctx)
1033+ } )
1034+ }
10331035 AIAgentActionType :: StartRecording { .. } => self
10341036 . start_recording_executor
10351037 . update ( ctx, |executor, ctx| executor. should_autoexecute ( input, ctx) ) ,
0 commit comments