From c2114c340b70fbc6627989bad50b22008572165d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:31:16 +0000 Subject: [PATCH 1/2] Initial plan From beacbcff0786f571374d9235b8163dcfe1e71faf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:34:44 +0000 Subject: [PATCH 2/2] Fix ty type checker error in client.py readline decode Handle both bytes and str types for readline output to satisfy type checker while maintaining correct runtime behavior Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com> --- python/copilot/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/copilot/client.py b/python/copilot/client.py index 3693378b..522a2f2b 100644 --- a/python/copilot/client.py +++ b/python/copilot/client.py @@ -855,7 +855,7 @@ async def read_port(): if not line: raise RuntimeError("CLI process exited before announcing port") - line_str = line.decode() + line_str = line.decode() if isinstance(line, bytes) else line match = re.search(r"listening on port (\d+)", line_str, re.IGNORECASE) if match: self._actual_port = int(match.group(1))