fix(agent): harden runner integration and QA

This commit is contained in:
huanghuoguoguo
2026-08-01 09:23:41 +08:00
parent 55f42a4ebc
commit 79611a5513
38 changed files with 1315 additions and 132 deletions
@@ -72,6 +72,16 @@ async def test_stop_transport_tolerates_handler_callback_removing_attribute():
assert not hasattr(connector, 'handler')
@pytest.mark.asyncio
async def test_stop_transport_tolerates_cancelled_controller_close():
connector = make_connector()
connector.ctrl = SimpleNamespace(close=AsyncMock(side_effect=asyncio.CancelledError))
await connector._stop_transport()
connector.ctrl.close.assert_awaited_once_with()
@pytest.mark.asyncio
async def test_stdio_runtime_connection_does_not_capture_unconsumed_stderr(
monkeypatch: pytest.MonkeyPatch,