From 8eb34449e539fd0fe2152e7be96f2d6d3fdd76a7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 29 Jun 2026 21:02:43 -0500 Subject: [PATCH] refac --- cptr/utils/agents/acp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cptr/utils/agents/acp.py b/cptr/utils/agents/acp.py index b3088b9..7870469 100644 --- a/cptr/utils/agents/acp.py +++ b/cptr/utils/agents/acp.py @@ -164,9 +164,8 @@ class AcpClient: async def _send(self, payload: dict[str, Any]) -> None: assert self.proc is not None and self.proc.stdin is not None - data = json.dumps(payload, separators=(",", ":")).encode() - framed = b"Content-Length: " + str(len(data)).encode() + b"\r\n\r\n" + data - self.proc.stdin.write(framed) + data = json.dumps(payload, separators=(",", ":")).encode() + b"\n" + self.proc.stdin.write(data) await self.proc.stdin.drain() async def _reader_loop(self) -> None: