mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 02:24:09 -07:00
fix: Settings in Folder trust hook (#7343)
This commit is contained in:
@@ -28,8 +28,12 @@ export const useFolderTrust = (
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const trusted = isWorkspaceTrusted({
|
const trusted = isWorkspaceTrusted({
|
||||||
folderTrust,
|
security: {
|
||||||
folderTrustFeature,
|
folderTrust: {
|
||||||
|
featureEnabled: folderTrustFeature,
|
||||||
|
enabled: folderTrust,
|
||||||
|
},
|
||||||
|
},
|
||||||
} as Settings);
|
} as Settings);
|
||||||
setIsTrusted(trusted);
|
setIsTrusted(trusted);
|
||||||
setIsFolderTrustDialogOpen(trusted === undefined);
|
setIsFolderTrustDialogOpen(trusted === undefined);
|
||||||
|
|||||||
Reference in New Issue
Block a user