Skip to content

Commit 1fc1c2b

Browse files
authored
fix: Settings in Folder trust hook (google-gemini#7343)
1 parent 03bcbcc commit 1fc1c2b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/cli/src/ui/hooks/useFolderTrust.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ export const useFolderTrust = (
2828

2929
useEffect(() => {
3030
const trusted = isWorkspaceTrusted({
31-
folderTrust,
32-
folderTrustFeature,
31+
security: {
32+
folderTrust: {
33+
featureEnabled: folderTrustFeature,
34+
enabled: folderTrust,
35+
},
36+
},
3337
} as Settings);
3438
setIsTrusted(trusted);
3539
setIsFolderTrustDialogOpen(trusted === undefined);

0 commit comments

Comments
 (0)