Skip to content

Commit 28df03f

Browse files
committed
🤖 macOS: match main for Ghostty terminal opens (avoid regression)
Revert Ghostty invocation to exactly mirror main: use open -a Ghostty <workspacePath> No flags or --args. This avoids any behavior change on macOS and fixes the regression where Ghostty windows didn’t appear. Generated with .
1 parent b142056 commit 28df03f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ipcMain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ export class IpcMain {
620620
// macOS - try Ghostty first, fallback to Terminal.app
621621
const terminal = this.findAvailableCommand(["ghostty", "terminal"]);
622622
if (terminal === "ghostty") {
623-
// Use --args to pass working directory flag to Ghostty
624-
const child = spawn("open", ["-a", "Ghostty", "--args", `--working-directory=${workspacePath}`], {
623+
// Match main: pass workspacePath to 'open -a Ghostty' to avoid regressions
624+
const child = spawn("open", ["-a", "Ghostty", workspacePath], {
625625
detached: true,
626626
stdio: "ignore",
627627
});

0 commit comments

Comments
 (0)