The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(tui_gateway): projects RPC fixture also sets the launch home
teknium1f80d888e2f6b
diff --git a/tests/tui_gateway/test_projects_rpc.py b/tests/tui_gateway/test_projects_rpc.pyindex 69671d9a627..da82a686b20 100644--- a/tests/tui_gateway/test_projects_rpc.py+++ b/tests/tui_gateway/test_projects_rpc.py@@ -700,18 +700,23 @@ def _create_session(home: Path, session_id: str, cwd: Path) -> None:@contextlib.contextmanagerdef _serving_launch_profile(launch_home: Path):- """Run the handlers as a backend launched under ``launch_home``."""+ """Run the handlers as a backend launched under ``launch_home``.++ Both the ambient override AND ``server._hermes_home`` point at it: once the process+ multiplexes, a launch-profile RPC binds the server's own launch home (#118538), so an+ override alone no longer stands in for "this backend was launched here"."""from hermes_state import SessionDBtoken = set_hermes_home_override(launch_home)- prev_db, prev_error = server._db, server._db_error+ prev_db, prev_error, prev_home = server._db, server._db_error, server._hermes_home+ server._hermes_home = launch_homeserver._db = SessionDB(db_path=launch_home / "state.db")server._db_error = Nonetry:yieldfinally:server._db.close()- server._db, server._db_error = prev_db, prev_error+ server._db, server._db_error, server._hermes_home = prev_db, prev_error, prev_homereset_hermes_home_override(token)