diff --git a/gateway/run.py b/gateway/run.py index b050ee1e..05515e24 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -3861,6 +3861,7 @@ class GatewayRunner: # Resolve current provider from config current_provider = "openrouter" + model_cfg = {} config_path = _hermes_home / 'config.yaml' try: if config_path.exists(): diff --git a/tests/e2e/test_telegram_commands.py b/tests/e2e/test_telegram_commands.py index fa22394e..e21be32f 100644 --- a/tests/e2e/test_telegram_commands.py +++ b/tests/e2e/test_telegram_commands.py @@ -105,10 +105,6 @@ class TestTelegramSlashCommands: send_status.assert_called_once() @pytest.mark.asyncio - @pytest.mark.xfail( - reason="Bug: _handle_provider_command references unbound model_cfg when config.yaml is absent", - strict=False, - ) async def test_provider_shows_current_provider(self, adapter): send = await send_and_capture(adapter, "/provider")