Skip to content

Commit 7003f15

Browse files
committed
Add another test case for --experimental-acp as well
1 parent 2813d8f commit 7003f15

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

packages/cli/src/config/config.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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 = [

0 commit comments

Comments
 (0)