Skip to content

The agent that grows with you

refactor(gateway): drop dead GatewayRunner._has_setup_skill (no production caller; tests only stub it)

Teknium4ad1c6c1be2b
diff --git a/gateway/run.py b/gateway/run.py
index 8e5f7512393..a478de11774 100644
--- a/gateway/run.py
+++ b/gateway/run.py
@@ -4735,16 +4735,6 @@ class GatewayRunner(
"for container-local paths like '/workspace/...' or '/output/...'."
)
- # -- Setup skill availability ----------------------------------------
-
- def _has_setup_skill(self) -> bool:
- """Check if the hermes-agent-setup skill is installed."""
- try:
- from tools.skill_manager_tool import _find_skill
- return _find_skill("hermes-agent-setup") is not None
- except Exception:
- return False
-
# -- Voice mode persistence ------------------------------------------
_VOICE_MODE_PATH = _hermes_home / "gateway_voice_mode.json"
diff --git a/tests/gateway/test_10710_auto_reset_evicts_cached_agent.py b/tests/gateway/test_10710_auto_reset_evicts_cached_agent.py
index 0097bcfb3f3..e8a65cda89c 100644
--- a/tests/gateway/test_10710_auto_reset_evicts_cached_agent.py
+++ b/tests/gateway/test_10710_auto_reset_evicts_cached_agent.py
@@ -22,6 +22,7 @@ import inspect
from gateway import run as gateway_run
from gateway import run_turn as gateway_run_turn
+from gateway import run_turn as gateway_run_turn
def _calls(node: ast.AST) -> set[str]:
diff --git a/tests/gateway/test_35809_auto_reset_clean_context.py b/tests/gateway/test_35809_auto_reset_clean_context.py
index c0385649974..c75b0634080 100644
--- a/tests/gateway/test_35809_auto_reset_clean_context.py
+++ b/tests/gateway/test_35809_auto_reset_clean_context.py
@@ -38,6 +38,7 @@ import inspect
from gateway import run as gateway_run
from gateway import run_turn as gateway_run_turn
+from gateway import run_turn as gateway_run_turn
from gateway.config import GatewayConfig, Platform
from gateway.session import SessionSource, SessionStore
from hermes_state import SessionDB
diff --git a/tests/gateway/test_48031_model_switch_after_auto_reset.py b/tests/gateway/test_48031_model_switch_after_auto_reset.py
index 736f4d6fdfb..be34b99a817 100644
--- a/tests/gateway/test_48031_model_switch_after_auto_reset.py
+++ b/tests/gateway/test_48031_model_switch_after_auto_reset.py
@@ -25,6 +25,7 @@ import inspect
from gateway import run as gateway_run
from gateway import run_turn as gateway_run_turn
+from gateway import run_turn as gateway_run_turn
from gateway import slash_commands as gateway_slash
diff --git a/tests/gateway/test_compression_deferred_soft_result.py b/tests/gateway/test_compression_deferred_soft_result.py
index 0846cc78bc9..24284f74a74 100644
--- a/tests/gateway/test_compression_deferred_soft_result.py
+++ b/tests/gateway/test_compression_deferred_soft_result.py
@@ -23,6 +23,7 @@ import inspect
from gateway import run as gateway_run
from gateway import run_turn as gateway_run_turn
+from gateway import run_turn as gateway_run_turn
def _calls(node: ast.AST) -> set[str]:
diff --git a/tests/gateway/test_compression_session_id_persistence.py b/tests/gateway/test_compression_session_id_persistence.py
index 8106b5b9c40..1a5f1215cfd 100644
--- a/tests/gateway/test_compression_session_id_persistence.py
+++ b/tests/gateway/test_compression_session_id_persistence.py
@@ -27,6 +27,8 @@ from unittest.mock import MagicMock, call
from gateway import run as gateway_run
from gateway import run_turn as gateway_run_turn
from gateway import run_turn_runner as gateway_run_turn_runner
+from gateway import run_turn as gateway_run_turn
+from gateway import run_turn_runner as gateway_run_turn_runner
from gateway.session_context import set_current_session_id, get_session_env