mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
better sandbox check (#150)
This commit is contained in:
@@ -21,7 +21,10 @@ async function main() {
|
|||||||
const config = loadCliConfig();
|
const config = loadCliConfig();
|
||||||
let input = config.getQuestion();
|
let input = config.getQuestion();
|
||||||
|
|
||||||
if (process.env.GEMINI_CODE_SANDBOX && !process.env.SANDBOX) {
|
const sandboxEnabled =
|
||||||
|
process.env.GEMINI_CODE_SANDBOX &&
|
||||||
|
!['0', 'false'].includes(process.env.GEMINI_CODE_SANDBOX.toLowerCase());
|
||||||
|
if (sandboxEnabled && !process.env.SANDBOX) {
|
||||||
console.log('WARNING: sandboxing is enabled, but still OUTSIDE sandbox');
|
console.log('WARNING: sandboxing is enabled, but still OUTSIDE sandbox');
|
||||||
// TODO: get inside sandbox
|
// TODO: get inside sandbox
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user