fix(terminal): remove TTY allocation, use interactive bash with TERM env var

This commit is contained in:
Fusion
2026-05-21 11:21:51 +02:00
parent a200955ef2
commit a2c3d6877e
+6 -4
View File
@@ -20,11 +20,13 @@ class TerminalSession:
self.process = await asyncio.create_subprocess_exec( self.process = await asyncio.create_subprocess_exec(
"docker", "docker",
"exec", "exec",
"-it", "-i",
"-e",
"TERM=xterm",
self.container_id, self.container_id,
"/bin/sh", "/bin/bash",
"-c", "-i",
"exec bash -l || exec sh -l", "-l",
stdin=asyncio.subprocess.PIPE, stdin=asyncio.subprocess.PIPE,
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.STDOUT, stderr=asyncio.subprocess.STDOUT,