fix: split provider ssh tty modes

This commit is contained in:
Codex
2026-05-07 11:09:16 +00:00
parent 9d8a8e58f3
commit 2aaf0447a6
8 changed files with 28 additions and 15 deletions
+2
View File
@@ -457,6 +457,7 @@ ws.addEventListener("open", () => {
providerId: open.providerId,
command: open.command || undefined,
cwd: open.cwd || undefined,
tty: open.tty === true,
cols: open.cols || 100,
rows: open.rows || 30,
});
@@ -533,6 +534,7 @@ export async function runSsh(config: UniDeskConfig, providerId: string, args: st
const payload = {
providerId,
command: wrapRemoteCommand(parsed.remoteCommand),
tty: parsed.remoteCommand === null,
stdinEotOnEnd: parsed.remoteCommand !== null,
openTimeoutMs,
cols: size.cols,