Ghostty holding SecureInput when losing focus in 1.3.1 - does not do so in 1.2.3 #12991
Replies: 2 comments
-
|
I’m also seeing this on macOS with Ghostty 1.3.1. Symptom: Ghostty enables macOS Secure Input and does not reliably release it. When this happens, global hotkey tools that depend on keyboard event taps stop seeing normal keypresses. In my setup that breaks my Karabiner/Windows/MouseLayer workflow: What I observed:
I switched to Kitty as a workaround. This is disruptive because once Secure Input gets stuck, global hotkeys stop working and the only reliable recovery seems to be logging out/back in or otherwise resetting the macOS session. I hope I can go back to Ghostty soon as I really love it. |
Beta Was this translation helpful? Give feedback.
-
|
Possibly related issue I'm having: When Ghostty is foreground with Secure Input active, launching another app opens it behind Ghostty and at end of App Switcher stack. I only reproduce this when opening another app while Ghostty with Secure Input is foregrounded. related - #2270 disables Secure Input only after NSApplication.didResignActive. If Ghostty never relinquishes focus, that callback may never run. another possible downstream impact:
related to #5358, but my case is narrower in that Touch ID is not missing, it just backgrounds behind Ghostty. A/B I tested:
PAM/session setup is not the issue because So I think this is within this discussion's Secure Input/focus realm as a second symptom - SecurityAgent/LocalAuthentication doesnt foreground |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
In ghostty 1.3.1 - with secure input enabled - it keeps it even when it loses focus.
Expected Behavior
I expect ghostty to release secureinput when it is not the active window - just as it did in 1.2.3 and earlier and as both iterm and terminal.app do.
Actual Behavior
It keeps secureinput active
Reproduction Steps
Setup
First up - I set up 3 terminal apps to test (these are basically the settings my employer requires me to set):
iterm:
ghostty:
Terminal.app
Menu:
Terminal > Secure Keyboard EntryTesting
Testing what process has SecureInput if any:
Then check what PID is in the
kCGSSessionSecureInputPIDfield and see what that is viapsGhostty 1.3.1
If ghostty 1.3.1 is running at all - then this will show the PID of ghostty in all 3 different terminal windows. Regardless of the order of starting them up.
If ghostty is not running - the in the iterm window it shows the iterm PID and in terminal.app it shows the terminal.app pid.
Ghostty 1.2.3
I grabbed ghostty 1.2.3 and repeated the test.
Ghostty Logs
No response
Ghostty Version
OS Version Information
Mac Tahoe 26.5.1
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
macos-auto-secure-input = trueAdditional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions