mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-02 09:20:42 -07:00
test(integration): fix plan mode write denial test false positive (#24299)
This commit is contained in:
@@ -113,7 +113,7 @@ describe('Plan Mode', () => {
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it.skip('should deny write_file to non-plans directory in plan mode', async () => {
|
||||
it('should deny write_file to non-plans directory in plan mode', async () => {
|
||||
const plansDir = '.gemini/tmp/foo/123/plans';
|
||||
const testName =
|
||||
'should deny write_file to non-plans directory in plan mode';
|
||||
@@ -135,7 +135,7 @@ describe('Plan Mode', () => {
|
||||
|
||||
await rig.run({
|
||||
approvalMode: 'plan',
|
||||
args: 'Create a file called hello.txt in the current directory.',
|
||||
args: 'Attempt to create a file named "hello.txt" in the current directory. Do not create a plan file, try to write hello.txt directly.',
|
||||
});
|
||||
|
||||
const toolLogs = rig.readToolLogs();
|
||||
|
||||
Reference in New Issue
Block a user