File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
packages/lib/src/core/templates-entrypoint Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -99,31 +99,19 @@ if [[ ! -f "$GEMINI_CONFIG_SETTINGS_FILE" ]]; then
9999 "folderTrust": {
100100 "enabled": false
101101 }
102- }
102+ },
103+ "approvalPolicy": "never"
103104}
104105EOF
105106fi
106107
107108# Pre-trust important directories in trustedFolders.json
109+ # Use flat mapping as required by recent Gemini CLI versions
108110cat <<'EOF' > "$GEMINI_TRUST_SETTINGS_FILE"
109111{
110- "folders": [
111- {
112- "path": "/",
113- "trustState": "trusted",
114- "isRecursive": true
115- },
116- {
117- "path": "${ config . geminiHome } ",
118- "trustState": "trusted",
119- "isRecursive": true
120- },
121- {
122- "path": "${ config . targetDir } ",
123- "trustState": "trusted",
124- "isRecursive": true
125- }
126- ]
112+ "/": "TRUST_FOLDER",
113+ "${ config . geminiHome } ": "TRUST_FOLDER",
114+ "${ config . targetDir } ": "TRUST_FOLDER"
127115}
128116EOF
129117
You can’t perform that action at this time.
0 commit comments