in sandboxed run scripts, allow .env to be an in any ancestor directory, same as in findEnvFile; also prep for sanboxing with global command (#147)

This commit is contained in:
Olcan
2025-04-24 08:58:47 -07:00
committed by GitHub
parent fb1c67219d
commit 30bdef9bf5
3 changed files with 35 additions and 8 deletions

View File

@@ -21,6 +21,11 @@ async function main() {
const config = loadCliConfig();
let input = config.getQuestion();
if (process.env.GEMINI_CODE_SANDBOX && !process.env.SANDBOX) {
console.log('WARNING: sandboxing is enabled, but still OUTSIDE sandbox');
// TODO: get inside sandbox
}
// Render UI, passing necessary config values. Check that there is no command line question.
if (process.stdin.isTTY && input?.length === 0) {
const readUpResult = await readPackageUp({ cwd: __dirname });