From c4766dff77d5c11c9279d83b5b3c75fc526279e5 Mon Sep 17 00:00:00 2001 From: Noah Bernsohn Date: Sat, 14 Feb 2026 12:27:03 -0600 Subject: [PATCH] fix: restore terminalTitle variable removed in previous edit --- .../Features/Command Palette/TerminalCommandPalette.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" }