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" }