From 83c6342e6e09e31795ec81ef1a29cd4fd3e850d1 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 5 Feb 2026 15:26:30 -0800 Subject: [PATCH] chore: update folder trust error messaging (#18402) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- packages/cli/src/ui/hooks/useFolderTrust.test.ts | 2 +- packages/cli/src/ui/hooks/useFolderTrust.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/hooks/useFolderTrust.test.ts b/packages/cli/src/ui/hooks/useFolderTrust.test.ts index 4c8549ab2c..1e56b6d39e 100644 --- a/packages/cli/src/ui/hooks/useFolderTrust.test.ts +++ b/packages/cli/src/ui/hooks/useFolderTrust.test.ts @@ -114,7 +114,7 @@ describe('useFolderTrust', () => { renderHook(() => useFolderTrust(mockSettings, onTrustChange, addItem)); expect(addItem).toHaveBeenCalledWith( { - text: 'This folder is not trusted. Some features may be disabled. Use the `/permissions` command to change the trust level.', + text: 'This folder is untrusted, project settings, hooks, MCPs, and GEMINI.md files will not be applied for this folder.\nUse the `/permissions` command to change the trust level.', type: 'info', }, expect.any(Number), diff --git a/packages/cli/src/ui/hooks/useFolderTrust.ts b/packages/cli/src/ui/hooks/useFolderTrust.ts index 05915b8f43..c3e3d6e70c 100644 --- a/packages/cli/src/ui/hooks/useFolderTrust.ts +++ b/packages/cli/src/ui/hooks/useFolderTrust.ts @@ -39,7 +39,7 @@ export const useFolderTrust = ( addItem( { type: MessageType.INFO, - text: 'This folder is not trusted. Some features may be disabled. Use the `/permissions` command to change the trust level.', + text: 'This folder is untrusted, project settings, hooks, MCPs, and GEMINI.md files will not be applied for this folder.\nUse the `/permissions` command to change the trust level.', }, Date.now(), );