Fix(trust) - Disable commands from untrusted directories when useFolderTrust is enabled (#7341)

Co-authored-by: Richie Foreman <richie.foreman@gmail.com>
Co-authored-by: Shi Shu <shii@google.com>
This commit is contained in:
shishu314
2025-08-28 17:45:47 -04:00
committed by GitHub
parent fe5bb6694e
commit 10c6af7e49
3 changed files with 68 additions and 0 deletions

View File

@@ -177,6 +177,8 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => {
})),
isTrustedFolder: vi.fn(() => true),
getScreenReader: vi.fn(() => false),
getFolderTrustFeature: vi.fn(() => false),
getFolderTrust: vi.fn(() => false),
};
});