The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: update systemd scope assertions for start_new_session=True
kshitijf9f4fb432781
diff --git a/tests/tools/test_process_registry.py b/tests/tools/test_process_registry.pyindex 82ae7e33686..6009837cd2d 100644--- a/tests/tools/test_process_registry.py+++ b/tests/tools/test_process_registry.py@@ -1717,8 +1717,12 @@ class TestSystemdCgroupIsolation:sep_idx = argv.index("--")assert "/bin/bash" in argv[sep_idx:]assert "set +m; echo hello" in argv[sep_idx:]- # systemd-run owns session/cgroup creation — no start_new_session.- assert captured["start_new_session"] is False+ # systemd-run --scope gives the worker a new cgroup but NOT a new+ # session (#70716 regression: start_new_session was False, so the+ # worker kept the parent's session + controlling terminal → SIGTTIN/+ # SIGTTOU stopped the TUI). start_new_session=True gives systemd-run+ # (and the scoped worker below it) a private session.+ assert captured["start_new_session"] is True# The session must record the unit name so kill_process can stop it.assert session.systemd_unit == f"hermes-worker-{session.id}.scope"@@ -1779,7 +1783,7 @@ class TestSystemdCgroupIsolation:def test_systemd_post_spawn_failure_never_kills_gateway_process_group(self, registry, monkeypatch):- """The scope wrapper shares the gateway PG, so cleanup must not killpg."""+ """Cleanup must not killpg: scope teardown is the authoritative path."""fake_popen, _captured = self._fake_popen_capture()fake_proc = fake_popen(["placeholder"])