Skip to content

The agent that grows with you

test(gateway): background-worker case bypasses the live guard for its reparented child

teknium1b1c0aea115e9
diff --git a/tests/gateway/test_managed_worker_launch.py b/tests/gateway/test_managed_worker_launch.py
index 45af6edd19b..bdca93f885d 100644
--- a/tests/gateway/test_managed_worker_launch.py
+++ b/tests/gateway/test_managed_worker_launch.py
@@ -85,6 +85,9 @@ def _model_saw_tool(request, name):
@pytest.mark.linux_only
+# The 'background' case probes a process the retired worker reparented to init: the test spawned it
+# (through its own daemon), but pid_exists() on it is outside pytest's subtree for the live guard.
[email protected]_system_guard_bypass
@pytest.mark.parametrize('worker_action', ['detach', 'kill', 'controls', 'stop', 'history', 'background', 'mcp'])
def test_ordinary_owner_launches_tool_worker_and_detach_does_not_cancel(tmp_path, worker_action):
root = Path(__file__).resolve().parents[2]