From 16b127df0c4b854e75cf7e737722132930223af5 Mon Sep 17 00:00:00 2001 From: galz10 Date: Thu, 5 Feb 2026 13:15:33 -0800 Subject: [PATCH 1/4] chore: update folder trust error messaging --- packages/cli/src/ui/hooks/useFolderTrust.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ui/hooks/useFolderTrust.ts b/packages/cli/src/ui/hooks/useFolderTrust.ts index 05915b8f436..473a19f8c3f 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(), ); From e0ee4e840cde95a4ca7285a3d2125df2394d3666 Mon Sep 17 00:00:00 2001 From: galz10 Date: Thu, 5 Feb 2026 13:15:47 -0800 Subject: [PATCH 2/4] chore: update folder trust error messaging --- packages/cli/src/ui/hooks/useFolderTrust.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ui/hooks/useFolderTrust.test.ts b/packages/cli/src/ui/hooks/useFolderTrust.test.ts index 4c8549ab2c5..700454ed724 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), From 76d47fa71ffba4d66b83056839fcace850997419 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 5 Feb 2026 13:28:37 -0800 Subject: [PATCH 3/4] Update packages/cli/src/ui/hooks/useFolderTrust.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- packages/cli/src/ui/hooks/useFolderTrust.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ui/hooks/useFolderTrust.ts b/packages/cli/src/ui/hooks/useFolderTrust.ts index 473a19f8c3f..c3e3d6e70ca 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 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.', + 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(), ); From 51453b0aaca402ac5b62d23d67da5b41f05976ba Mon Sep 17 00:00:00 2001 From: galz10 Date: Thu, 5 Feb 2026 13:49:52 -0800 Subject: [PATCH 4/4] chore: update test --- packages/cli/src/ui/hooks/useFolderTrust.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ui/hooks/useFolderTrust.test.ts b/packages/cli/src/ui/hooks/useFolderTrust.test.ts index 700454ed724..1e56b6d39e9 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 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.', + 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),