From 07a069fc319f622d536c2c2dc68163a2d3347ad7 Mon Sep 17 00:00:00 2001 From: greatmengqi Date: Fri, 17 Apr 2026 11:54:31 +0800 Subject: [PATCH] fix(tests): thread app_config into is_host_bash_allowed call in live test is_host_bash_allowed now requires an explicit AppConfig argument (Phase 2 of the config refactor). Pass client._app_config at the call site. --- backend/tests/test_client_live.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_client_live.py b/backend/tests/test_client_live.py index 0271ebf21..342673d72 100644 --- a/backend/tests/test_client_live.py +++ b/backend/tests/test_client_live.py @@ -101,7 +101,7 @@ class TestLiveStreaming: class TestLiveToolUse: def test_agent_uses_bash_tool(self, client): """Agent uses bash tool when asked to run a command.""" - if not is_host_bash_allowed(): + if not is_host_bash_allowed(client._app_config): pytest.skip("Host bash is disabled for LocalSandboxProvider in the active config") events = list(client.stream("Use the bash tool to run: echo 'LIVE_TEST_OK'. Then tell me the output."))