From d6a2114d6e9093778163f50bb80feb4005116fd2 Mon Sep 17 00:00:00 2001 From: Abdulaziz Albahar <67667005+azooz2003-bit@users.noreply.github.com> Date: Fri, 25 Sep 2026 12:52:38 -0700 Subject: [PATCH] fix(ios): keep terminal composer dock at bottom --- .../CmuxMobileTerminal/GhosttySurfaceHostView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Packages/iOS/CmuxMobileTerminal/Sources/CmuxMobileTerminal/GhosttySurfaceHostView.swift b/Packages/iOS/CmuxMobileTerminal/Sources/CmuxMobileTerminal/GhosttySurfaceHostView.swift index ac4df43f0a34..a08318ecd2b1 100644 --- a/Packages/iOS/CmuxMobileTerminal/Sources/CmuxMobileTerminal/GhosttySurfaceHostView.swift +++ b/Packages/iOS/CmuxMobileTerminal/Sources/CmuxMobileTerminal/GhosttySurfaceHostView.swift @@ -236,7 +236,12 @@ public final class GhosttySurfaceHostView: UIView { // chrome must not. surfaceView.moveArtifactChip(to: self) if usesKeyboardGuideSeat { - keyboardLayoutGuide.followsUndockedKeyboard = true + // The terminal dock is a full-width bottom bar. Following an + // undocked/floating iPad keyboard would move the composer into + // the middle of the workspace (and can preserve that stale seat + // across a workspace transition). Keep the dock at the bottom + // safe area, matching the task-composer keyboard dock policy. + keyboardLayoutGuide.followsUndockedKeyboard = false keyboardLayoutGuide.usesBottomSafeArea = true let guide = surfaceView.hostedBottomDockBottomAnchor.constraint( equalTo: keyboardLayoutGuide.topAnchor