From 62c1d50757218db6e9458a91364bea2e7886d316 Mon Sep 17 00:00:00 2001 From: Noah Bernsohn Date: Tue, 27 Jan 2026 09:01:37 -0600 Subject: [PATCH] Update macos/Sources/Features/Command Palette/TerminalCommandPalette.swift Co-authored-by: Lukas <134181853+bo2themax@users.noreply.github.com> --- .../Features/Command Palette/TerminalCommandPalette.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift b/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift index 09e369d4a..d367f1e29 100644 --- a/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift +++ b/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift @@ -143,12 +143,11 @@ struct TerminalCommandPaletteView: View { let displayColor = color != TerminalTabColor.none ? color : nil return controller.surfaceTree.map { surface in - let terminalTitle = surface.title.isEmpty ? window.title : surface.title let displayTitle: String if let override = controller.titleOverride, !override.isEmpty { displayTitle = override } else if !terminalTitle.isEmpty { - displayTitle = terminalTitle + displayTitle = surface.title.isEmpty ? window.title : surface.title } else { displayTitle = "Untitled" }