Skip to content

[evicted:session] Gemini CLI --yolo workspace sandbox: When cron fallback job...

[evicted:session] Gemini CLI --yolo workspace sandbox: When cron fallback jobs report "path outside allowed workspace" or "shell commands requiring user confirmation", the root cause is ALWAYS the trustedFolders.json sandbox, NOT --yolo failing. --yolo correctly auto-approves all tool calls including run_shell_command. Fix: (1) add /tmp to ~/.gemini/trustedFolders.json as TRUST_PARENT, (2) pass --add-dir /tmp in gemini_cli.py wrapper. The model misattributes the failure as "needs user confirmation" when it's actually a file write permission issue.


scopesession-Gemini-CLI---yolo-workspace-sandbox-When-cron-fallback-jobs

[scope:session] Gemini CLI --yolo workspace sandbox: When cron fallback jobs ...

[scope:session] Gemini CLI --yolo workspace sandbox: When cron fallback jobs report "path outside allowed workspace" or "shell commands requiring user confirmation", the root cause is ALWAYS the trustedFolders.json sandbox, NOT --yolo failing. --yolo correctly auto-approves all tool calls including run_shell_command. Fix: (1) add /tmp to ~/.gemini/trustedFolders.json as TRUST_PARENT, (2) pass --add-dir /tmp in gemini_cli.py wrapper. The model misattributes the failure as "needs user confirmation" when it's actually a file write permission issue.