Fix(cli) - Remove Foldertrust Feature Flag (#7420)

Co-authored-by: Shi Shu <shii@google.com>
This commit is contained in:
shishu314
2025-09-02 12:01:22 -04:00
committed by GitHub
parent 70938eda17
commit 93820f833f
8 changed files with 14 additions and 244 deletions
+1 -4
View File
@@ -23,14 +23,11 @@ export const useFolderTrust = (
const [isRestarting, setIsRestarting] = useState(false);
const folderTrust = settings.merged.security?.folderTrust?.enabled;
const folderTrustFeature =
settings.merged.security?.folderTrust?.featureEnabled;
useEffect(() => {
const trusted = isWorkspaceTrusted({
security: {
folderTrust: {
featureEnabled: folderTrustFeature,
enabled: folderTrust,
},
},
@@ -38,7 +35,7 @@ export const useFolderTrust = (
setIsTrusted(trusted);
setIsFolderTrustDialogOpen(trusted === undefined);
onTrustChange(trusted);
}, [onTrustChange, folderTrust, folderTrustFeature]);
}, [onTrustChange, folderTrust]);
const handleFolderTrustSelect = useCallback(
(choice: FolderTrustChoice) => {