Unify iOS shortcut strip background

Closed
AZ
2mo ago
+29-3

Fix the iOS 26 light-mode background mismatch in the terminal shortcut strip.

The horizontal shortcut scroller now stays transparent and suppresses iOS 26 scroll-edge effects, so the pinned controls and scrolling controls share one continuous dock background.

Adds a runtime UIKit regression that verifies the scroller does not draw separate chrome.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


[!NOTE]
Low Risk
Localized UIKit compositing and styling on the terminal input accessory bar; no input routing, networking, or auth changes.

Overview
Fixes a light-mode visual mismatch on iOS where the horizontally scrolling shortcut row looked like it had its own background, separate from the pinned keyboard/dismiss controls and the dock’s backgroundView.

The accessory toolbar’s UIScrollView and inner UIStackView are now clear and non-opaque, with an inline note that UIKit can still composite an opaque stack inside a scroll view as a rectangular fill—so only backgroundView should own the bar color.

Adds accessoryShortcutScrollerDoesNotDrawSeparateChrome in GhosttySurfaceThemeTests to assert those transparency settings at runtime.

Reviewed by Cursor Bugbot for commit 55eb45e9baed67ddbca5464720e89b5aaac82297. Bugbot is set up for automated code reviews on this repo. Configure here.


Summary by cubic

Fixes the iOS 26 light‑mode background mismatch in the terminal shortcut strip. The scroller/stack stay transparent, edge effects are hidden, and iOS 26 buttons use clear glass so pinned and scrolling controls share one continuous dock background.

  • Bug Fixes
    • Made the shortcut UIScrollView and inner UIStackView clear/non‑opaque and hid iOS 26 edge effects; added a UIKit test to assert transparency and no separate chrome.
    • On iOS 26, switched shortcut buttons to .clearGlass() / .prominentClearGlass() to prevent a scroller‑wide backdrop and keep one dock background.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the accessory toolbar’s shortcut scroller and supporting layout to use transparent, non-opaque backgrounds.
    • On iOS 26, accessory buttons now use clear Liquid Glass styling.
    • Preserved existing horizontal scrolling and scroll indicator behavior for a consistent interaction experience.
    • Added coverage to verify the accessory toolbar maintains its transparent appearance.