Allow access to some specific files/directories when using macOS seatbelt
Description of the bug:
I'm trying to build an Android app using gemini-code using the macOS seatbelt but it's failing because it does not have access to my .gradle/ repository. See screenshot joined below.
Can we add a list of directories that Gemini is allowed to read when starting gemini-code, or add .gradle/ to sandbox-macos-minimal.sb ?
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
we just updated the README about how to customize seatbelt/sandboxing. the
idea is to create your own seatbelt profile in
On Wed, May 14, 2025 at 12:19 PM Jordan Demeulenaere < @.***> wrote:
jdemeulenaere created an issue (google-gemini/gemini-code#347) https://github.com/google-gemini/gemini-code/issues/347 Description of the bug:
I'm trying to build an Android app using gemini-code using the macOS seatbelt but it's failing because it does not have access to my .gradle/ repository. See screenshot joined below.
Can we add a list of directories that Gemini is allowed to read when starting gemini-code, or add .gradle/ to sandbox-macos-minimal.sb https://github.com/google-gemini/gemini-code/blob/main/packages/cli/src/utils/sandbox-macos-minimal.sb ?
Screenshot.2025-05-14.at.21.13.39.png (view on web) https://github.com/user-attachments/assets/43492401-7d41-403b-8c95-7c7434c1af6a Actual vs expected behavior:
No response Any other information you'd like to share?
No response
— Reply to this email directly, view it on GitHub https://github.com/google-gemini/gemini-code/issues/347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFWNPHED7PIQNJFANFCOJD26OJNDAVCNFSM6AAAAAB5EGQNJOVHI2DSMVQWIX3LMV43ASLTON2WKOZTGA3DIMBVGY4DOMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
i'll leave this open as we should probably have a specialized setting for adding folders
I'm just wondering whether a bit of user education via the documentation is necessary for this one ? On looking at the docs its not so obvious you can include the --include-directories along with '-s' flag and it will modify the custom .sb file or guidance about how to create your own custom .sb profile. To use the flag will only include a file read situation only but again perhaps a bit of education on modifying the Seatbelt profile is all that is needed if you want a read and write ?
gemini -s --include-directories ../shared, ../tools as an example of including this.
Happy to assign to open a PR on this for documentation if the approach is sensible enough to those who are more experience than I ? Saves from adding further implementation when its really all there.
The only thing is there's a maximum of 5 folders for the include directories but atleast its a start.
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!