Skip to content

Commit 5590201

Browse files
refactor: enable sandbox by default in source code.
1 parent ce88374 commit 5590201

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/application/flow/backend/sandbox_shell.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from common.utils.logger import maxkb_logger
1010
from maxkb.const import CONFIG
1111

12-
_enable_sandbox = bool(int(CONFIG.get("SANDBOX", 0)))
12+
_enable_sandbox = bool(int(CONFIG.get("SANDBOX", 1)))
1313
_run_user = "sandbox" if _enable_sandbox else getpass.getuser()
1414
_sandbox_python_sys_path = CONFIG.get_sandbox_python_package_paths().replace(",", ":")
1515

‎apps/common/utils/tool_code.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from common.utils.logger import maxkb_logger
2424

25-
_enable_sandbox = bool(int(CONFIG.get("SANDBOX", 0)))
25+
_enable_sandbox = bool(int(CONFIG.get("SANDBOX", 1)))
2626
_run_user = "sandbox" if _enable_sandbox else getpass.getuser()
2727
_sandbox_path = (
2828
CONFIG.get("SANDBOX_HOME", "/opt/maxkb-app/sandbox")

0 commit comments

Comments
 (0)