mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
do not even check sandboxing commands (podman/docker/etc) if we are already in sandbox (#213)
This commit is contained in:
@@ -252,13 +252,15 @@ async function main() {
|
|||||||
const config = loadCliConfig();
|
const config = loadCliConfig();
|
||||||
let input = config.getQuestion();
|
let input = config.getQuestion();
|
||||||
|
|
||||||
// hop into sandbox if enabled but outside
|
// hop into sandbox if we are outside and sandboxing is enabled
|
||||||
|
if (!process.env.SANDBOX) {
|
||||||
const sandbox = sandbox_command();
|
const sandbox = sandbox_command();
|
||||||
if (sandbox && !process.env.SANDBOX) {
|
if (sandbox) {
|
||||||
console.log('hopping into sandbox ...');
|
console.log('hopping into sandbox ...');
|
||||||
await start_sandbox(sandbox);
|
await start_sandbox(sandbox);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Render UI, passing necessary config values. Check that there is no command line question.
|
// Render UI, passing necessary config values. Check that there is no command line question.
|
||||||
if (process.stdin.isTTY && input?.length === 0) {
|
if (process.stdin.isTTY && input?.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user