feat(agent-runner): enforce 4.x host-owned execution

This commit is contained in:
huanghuoguoguo
2026-07-12 20:36:32 +08:00
parent e6384aae5d
commit 99d9c227f9
171 changed files with 6958 additions and 5385 deletions
@@ -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