tty queue loop mismatch fix
frdel committed
Feb 12, 2026 at 14:08 UTC
0582c5199836ac852038c9d67c88b811a7f4c7db
1 file changed
+2
-1
python/helpers/tty_session.py
+2
-1
@@ -22,7 +22,7 @@ class TTYSession:
22
self.encoding = encoding
23
self.echo = echo # ← store preference
24
self._proc = None
25
- self._buf = asyncio.Queue()
25
+ self._buf = None
26
27
def __del__(self):
28
# Simple cleanup on object destruction
@@ -37,6 +37,7 @@ class TTYSession:
37
38
# ── user-facing coroutines ────────────────────────────────────────
39
async def start(self):
40
+ self._buf = asyncio.Queue()
41
if _IS_WIN:
42
self._proc = await _spawn_winpty(
43
self.cmd, self.cwd, self.env, self.echo