diff --git a/Frameworks/Resources/Localizable.xcstrings b/Frameworks/Resources/Localizable.xcstrings index 32a736a3..094d34a4 100644 --- a/Frameworks/Resources/Localizable.xcstrings +++ b/Frameworks/Resources/Localizable.xcstrings @@ -10856,29 +10856,6 @@ } } }, - "Enable Shell Integration to add commands to this session’s history in real time." : { - "extractionState" : "manual", - "localizations" : { - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "Enable Shell Integration to add commands to this session’s history in real time." - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "启用Shell集成以实时添加当前会话的命令历史。" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "啟用Shell整合以即時加入目前工作階段的指令歷史。" - } - } - } - }, "Enable Web Search" : { "extractionState" : "manual", "localizations" : { diff --git a/Frameworks/TermindPresentation/Strings/Terminal.swift b/Frameworks/TermindPresentation/Strings/Terminal.swift index d56e14da..fca5ab04 100644 --- a/Frameworks/TermindPresentation/Strings/Terminal.swift +++ b/Frameworks/TermindPresentation/Strings/Terminal.swift @@ -185,10 +185,6 @@ extension AppStrings { "Write serial port" } - public static var commandHistoryRequirement: LocalizedStringResource { - "Enable Shell Integration to add commands to this session’s history in real time." - } - public static var commandsConfirmedByTheRemoteShellAppearHere: LocalizedStringResource { "Shell history and commands from this session appear here." } diff --git a/TFM/Features/Sidebar/WindowSidebarView.swift b/TFM/Features/Sidebar/WindowSidebarView.swift index f33b5fda..449c9f1e 100644 --- a/TFM/Features/Sidebar/WindowSidebarView.swift +++ b/TFM/Features/Sidebar/WindowSidebarView.swift @@ -831,31 +831,6 @@ private struct SSHCommandHistorySidebar: View { } } - if sshSession?.status.isLive == true, - sshSession?.shellIntegrationAvailable == false - { - // Bounded by a line limit rather than by `fixedSize`. - // - // `fixedSize(horizontal: false, vertical: true)` makes this - // sentence report whatever height it needs at whatever width it - // is asked about — and SwiftUI asks about very narrow ones while - // sizing the column. Ninety characters at a probe width wrap - // into a paragraph, the split view adopts that as the height it - // must offer, and *both* columns get proposed it: measured as - // the detail column being handed 912x1125 instead of 912x688, - // which is what threw the connection journey upward. It only - // ever happened in History because this is the one sidebar mode - // with a child that demands height, and it appears exactly when - // `status.isLive` flips — the instant a connection succeeds. - Text(AppStrings.Terminal.commandHistoryRequirement) - .font(.caption2) - .foregroundStyle(.secondary) - .lineLimit(4) - .frame(maxWidth: .infinity, alignment: .leading) - .padding(.horizontal, Metrics.Space.m) - .padding(.vertical, Metrics.Space.s) - } - SidebarSearchFooter(text: $query, placeholder: String(localized: AppStrings.Common.searchHistory)) } .confirmationDialog(