fix: refine environment creation condition in terminal_tool

- Updated the environment creation condition to specifically check for "singularity" instead of allowing "local", ensuring more precise handling of environment types during task execution.
This commit is contained in:
teknium1
2026-02-21 12:43:56 -08:00
parent 8f6788474b
commit 0729ef7353

View File

@@ -1707,7 +1707,7 @@ def terminal_tool(
needs_creation = False
if needs_creation:
if env_type in ("singularity", "local"):
if env_type == "singularity":
_check_disk_usage_warning()
logger.info("Creating new %s environment for task %s...", env_type, effective_task_id[:8])
try: