fix: split provider ssh tty modes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user