Skip to content

Commit 795c007

Browse files
committed
fix: use Terminal.app for SSH connections on macOS
Ghostty doesn't reliably handle SSH via 'ghostty ssh ...' command. Use proven Terminal.app + osascript approach for SSH terminals, keep Ghostty for local terminals where it works well. Generated with `mux`
1 parent de01520 commit 795c007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/services/ipcMain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,8 +1750,8 @@ export class IpcMain {
17501750
const logPrefix = isSSH ? "SSH terminal" : "terminal";
17511751

17521752
if (process.platform === "darwin") {
1753-
// macOS - try Ghostty first, fallback to Terminal.app
1754-
const terminal = await this.findAvailableCommand(["ghostty", "terminal"]);
1753+
// macOS - try Ghostty for local, always use Terminal.app for SSH (proven to work)
1754+
const terminal = isSSH ? "terminal" : await this.findAvailableCommand(["ghostty", "terminal"]);
17551755
if (terminal === "ghostty") {
17561756
let cmd: string;
17571757
let args: string[];

0 commit comments

Comments
 (0)