mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
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:
parent
8f6788474b
commit
0729ef7353
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue