From fed9f06c4ed4661609cd45af545ad663020581ee Mon Sep 17 00:00:00 2001 From: Dean Kerr Date: Thu, 26 Feb 2026 20:41:59 +1100 Subject: [PATCH] fix: add SSH backend to terminal requirements check The SSH backend was missing from check_terminal_requirements(), causing it to fall through to `return False`. This silently disabled both the terminal and file tools when TERMINAL_ENV=ssh was configured. Co-Authored-By: Claude Opus 4.6 --- tools/terminal_tool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/terminal_tool.py b/tools/terminal_tool.py index 8af8c9d2f..893ce9ae5 100644 --- a/tools/terminal_tool.py +++ b/tools/terminal_tool.py @@ -1068,6 +1068,10 @@ def check_terminal_requirements() -> bool: result = subprocess.run([executable, "--version"], capture_output=True, timeout=5) return result.returncode == 0 return False + elif env_type == "ssh": + from tools.environments.ssh import SSHEnvironment + # Check that host and user are configured + return bool(config.get("ssh_host")) and bool(config.get("ssh_user")) elif env_type == "modal": from minisweagent.environments.extra.swerex_modal import SwerexModalEnvironment # Check for modal token