test(integration): fix plan mode write denial test false positive (#24299)

This commit is contained in:
Sehoon Shon
2026-03-30 23:17:36 -04:00
committed by GitHub
parent 46d6b119b6
commit 2f7f967189

View File

@@ -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();