diff --git a/tests/webui/test_gateway_webui_smoke.py b/tests/webui/test_gateway_webui_smoke.py index 008e96c92..481047593 100644 --- a/tests/webui/test_gateway_webui_smoke.py +++ b/tests/webui/test_gateway_webui_smoke.py @@ -19,14 +19,24 @@ import websockets from nanobot.config.loader import load_config from nanobot.session.manager import SessionManager from nanobot.session.recovery import PENDING_USER_TURN_KEY, RUNTIME_CHECKPOINT_KEY +from nanobot.webui.local_client_assets import LocalClientAssets from nanobot.webui.remote_proxy import RemoteProxy from nanobot.webui.remote_ssh import Tunnel _BOOTSTRAP_SECRET = "smoke-secret" -async def test_remote_proxy_with_real_gateway_chat_settings_and_renewal(tmp_path: Path) -> None: +async def test_remote_proxy_with_real_gateway_chat_settings_and_renewal( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch, +) -> None: """The auth proxy must preserve the actual gateway's WebUI mutation audience.""" + # Python CI runs from a clean source tree without a frontend build. Supply + # this transport smoke's own local shell instead of relying on build leftovers. + assets = tmp_path / "local-dist" + assets.mkdir() + shell = "