diff --git a/scripts/gen_schema_v1.py b/scripts/gen_schema_v1.py index 86ed167c..f1aa73b3 100644 --- a/scripts/gen_schema_v1.py +++ b/scripts/gen_schema_v1.py @@ -20,7 +20,7 @@ for variant_names in ( variant_model_map("AgentResponse", "anyOf", "object", ("AgentResponseMessage", "AgentErrorMessage")), variant_model_map("ClientResponse", "anyOf", "object", ("ClientResponseMessage", "ClientErrorMessage")), - variant_model_map("AuthMethod", "anyOf", "allOf", ("TerminalAuthMethod", "AgentAuthMethod")), + variant_model_map("AuthMethod", "anyOf", "allOf", ("TerminalAuthMethod",)), variant_model_map("McpServer", "anyOf", "allOf", ("HttpMcpServer", "SseMcpServer", "AcpMcpServer")), variant_model_map( "SetSessionConfigOptionRequest", diff --git a/src/acp/transports.py b/src/acp/transports.py index 82a4de6e..9207a940 100644 --- a/src/acp/transports.py +++ b/src/acp/transports.py @@ -104,9 +104,11 @@ async def spawn_stdio_transport( try: await asyncio.wait_for(process.wait(), timeout=shutdown_timeout) except asyncio.TimeoutError: - process.terminate() + with contextlib.suppress(ProcessLookupError): + process.terminate() try: await asyncio.wait_for(process.wait(), timeout=shutdown_timeout) except asyncio.TimeoutError: - process.kill() + with contextlib.suppress(ProcessLookupError): + process.kill() await process.wait()