fix(terminal): forward docker_forward_env and docker_env to container_config

The container_config builder in terminal_tool.py was missing
docker_forward_env and docker_env keys, causing config.yaml's
docker_forward_env setting to be silently ignored. Environment
variables listed in docker_forward_env were never injected into
Docker containers.
This fix adds both keys to the container_config dict so they are
properly passed to _create_environment().
This commit is contained in:
ycbai
2026-04-15 15:20:48 +08:00
committed by Teknium
parent 7d8b2eee63
commit db86ed1990

View File

@@ -1547,6 +1547,8 @@ def terminal_tool(
"modal_mode": config.get("modal_mode", "auto"),
"docker_volumes": config.get("docker_volumes", []),
"docker_mount_cwd_to_workspace": config.get("docker_mount_cwd_to_workspace", False),
"docker_forward_env": config.get("docker_forward_env", []),
"docker_env": config.get("docker_env", {}),
}
local_config = None