Skip to content

The agent that grows with you

test(tui_gateway): the fresh-launch onboarding tests start as the local Desktop

alt-glitch0e5421f2eeb7
diff --git a/tests/tui_gateway/test_onboarding_fresh_launch.py b/tests/tui_gateway/test_onboarding_fresh_launch.py
index 07d1fa5ba92..889f55aa404 100644
--- a/tests/tui_gateway/test_onboarding_fresh_launch.py
+++ b/tests/tui_gateway/test_onboarding_fresh_launch.py
@@ -30,7 +30,7 @@ def root(tmp_path, monkeypatch) -> Path:
@pytest.fixture
-def client(root, monkeypatch) -> list:
+def client(root, monkeypatch):
"""session.resume and prompt.submit as a recorder; a submit stores its user turn, as the real turn does."""
calls = []
@@ -45,7 +45,9 @@ def client(root, monkeypatch) -> list:
monkeypatch.setitem(server._methods, "session.resume", resume)
monkeypatch.setitem(server._methods, "prompt.submit", submit)
- return calls
+ from hermes_cli.process_identity import serving_local_desktop
+ with serving_local_desktop(True): # the local Desktop's requests: only it starts a first run
+ yield calls
@pytest.fixture