From 3dc15c6ed13e56e18224af7ab186802f03a416f8 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 3 Jul 2026 03:04:53 -0700 Subject: [PATCH] [eric] tests: conftest pins the persistent-client flag off (mocked query + real ClaudeSDKClient = wedged suite) --- backend/tests/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/tests/conftest.py b/backend/tests/conftest.py index 1cfeb17b..42ef7c95 100644 --- a/backend/tests/conftest.py +++ b/backend/tests/conftest.py @@ -20,6 +20,9 @@ from types import SimpleNamespace import pytest +# Tests mock claude_agent_sdk.query, not ClaudeSDKClient; an inherited persistent-client flag would route mocked turns onto a REAL CLI spawn and wedge the suite. Pin it off; the persistent path has its own tests (test_client_pool.py + live gates). +os.environ.pop("OSW_TTFT_PERSISTENT_CLIENT", None) + @pytest.fixture(autouse=True) def _isolate_browser_state(monkeypatch):