File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2237,6 +2237,18 @@ describe('loadCliConfig tool exclusions', () => {
22372237 expect ( config . getExcludeTools ( ) ) . toContain ( 'ask_user' ) ;
22382238 } ) ;
22392239
2240+ it ( 'should exclude ask_user in interactive mode when --experimental-acp is provided' , async ( ) => {
2241+ process . stdin . isTTY = true ;
2242+ process . argv = [ 'node' , 'script.js' , '--experimental-acp' ] ;
2243+ const argv = await parseArguments ( createTestMergedSettings ( ) ) ;
2244+ const config = await loadCliConfig (
2245+ createTestMergedSettings ( ) ,
2246+ 'test-session' ,
2247+ argv ,
2248+ ) ;
2249+ expect ( config . getExcludeTools ( ) ) . toContain ( 'ask_user' ) ;
2250+ } ) ;
2251+
22402252 it ( 'should not exclude shell tool in non-interactive mode when --allowed-tools="ShellTool" is set' , async ( ) => {
22412253 process . stdin . isTTY = false ;
22422254 process . argv = [
You can’t perform that action at this time.
0 commit comments