diff --git a/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift b/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift index d367f1e29..09e369d4a 100644 --- a/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift +++ b/macos/Sources/Features/Command Palette/TerminalCommandPalette.swift @@ -143,11 +143,12 @@ 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 = surface.title.isEmpty ? window.title : surface.title + displayTitle = terminalTitle } else { displayTitle = "Untitled" }