From a8ed37a791dae5db4c966efbaeb183a63914ff65 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Thu, 23 Apr 2026 11:28:31 +0200 Subject: [PATCH] macOS: fix command parsing in NewTerminalIntent Fixes #12391, regression from #10765 Signed-off-by: Lukas <134181853+bo2themax@users.noreply.github.com> --- macos/Sources/Features/App Intents/NewTerminalIntent.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macos/Sources/Features/App Intents/NewTerminalIntent.swift b/macos/Sources/Features/App Intents/NewTerminalIntent.swift index 858d5ceb0..cab7fd262 100644 --- a/macos/Sources/Features/App Intents/NewTerminalIntent.swift +++ b/macos/Sources/Features/App Intents/NewTerminalIntent.swift @@ -67,8 +67,8 @@ struct NewTerminalIntent: AppIntent { // We don't run command as "command" and instead use "initialInput" so // that we can get all the login scripts to setup things like PATH. - if let command { - config.initialInput = "\(Ghostty.Shell.quote(command)); exit\n" + if let command, !command.isEmpty { + config.initialInput = "\(command); exit\n" } // If we were given a working directory then open that directory