mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-24 02:57:13 +00:00
feat(agent-runner): enforce 4.x host-owned execution
This commit is contained in:
@@ -15,6 +15,20 @@ from mcp import types as mcp_types
|
||||
from langbot.pkg.provider.tools.loaders.mcp import RuntimeMCPSession
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _isolate_loopback_transport_from_proxy_env(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""Keep real loopback transport tests independent of workstation proxies."""
|
||||
for variable in (
|
||||
'ALL_PROXY',
|
||||
'all_proxy',
|
||||
'HTTP_PROXY',
|
||||
'http_proxy',
|
||||
'HTTPS_PROXY',
|
||||
'https_proxy',
|
||||
):
|
||||
monkeypatch.delenv(variable, raising=False)
|
||||
|
||||
|
||||
class _TransportProbe:
|
||||
def __init__(self, streamable_status: int | None) -> None:
|
||||
self.streamable_status = streamable_status
|
||||
|
||||
Reference in New Issue
Block a user