Your snippets worked yesterday. Now you type the abbreviation and nothing happens, or TextExpander shows "Terminal has disabled TextExpander expansion" (sometimes "Secure Input enabled by loginwindow"). Alfred users see the same thing, sometimes with no message at all.

Why snippets stop expanding

Secure Input is a macOS protection. While one process holds it, other apps can't see your keystrokes, which stops a keylogger from capturing passwords. A text expander works by watching your keystrokes for an abbreviation, so while Secure Input is held it sees nothing and can't expand. Alfred's snippets troubleshooting page describes it the same way.

The causes, most common first:

  • A password field has focus. Secure Input is on while your cursor is in one. Expansion should return once you click out of it.
  • An app leaves Secure Input on. Terminal's Secure Keyboard Entry option does this on purpose. Other apps, including browsers and their extensions such as password managers, can also hold it.
  • macOS itself left it on. This can happen after a login or after waking the Mac and typing your password. It's the usual story behind loginwindow in the message.
  • Stale permissions. Accessibility can look switched on while macOS no longer honors it. This tends to appear after a macOS upgrade or a restore from a backup.
  • Key events too fast (Alfred). Snippets that expand partly, or leave the keyword behind, point to this. Users report it.
What you see Most likely cause Go to
"Terminal has disabled TextExpander expansion" Terminal's Secure Keyboard Entry is on Fix 1
Same message naming another app That app holds Secure Input Fix 1
"Secure Input enabled by loginwindow" The login or lock-screen session Fix 3
No message, expansion just stopped An unnamed app holds it, or permissions are stale Fix 2, then Fix 4
Alfred snippets do nothing Secure Input, permissions, or a disabled setting Fix 5
Alfred keyword stays or expands partly Key-event speed or another app interfering Fix 6

Fix 1: Turn off Secure Input in the app named in the message

Symptom: TextExpander names an app, such as Terminal.

  1. Switch to the app named in the message.
  2. In Terminal, open the Terminal menu in the menu bar and click Secure Keyboard Entry so the checkmark disappears. In iTerm2, the option is in the iTerm2 menu.
  3. Go back to the app where you were typing and try a snippet.

If the app has no such option, quit it completely with ⌘Q (Command-Q), then try again.

Fix 2: Find the app holding Secure Input

Symptom: expansion stopped and no message names a culprit.

This command only reads system state and changes nothing, so there is nothing to undo:

ioreg -l -w 0 | grep SecureInput

If the output contains kCGSSessionSecureInputPID followed by a number, that number is the process ID of the app holding Secure Input. Look up its name, replacing 1234 with your number (also read-only):

ps -p 1234 -o comm=

Quit that app. If the first command prints nothing, no process holds Secure Input right now, so go to Fix 4.

If you can't tell which app it is, work by elimination. Start with browsers: quit Safari, wait 10 seconds and test. If expansion returns, check Safari extensions, especially password managers, and disable them one at a time.

Fix 3: "Secure Input enabled by loginwindow"

Symptom: the message names loginwindow instead of an app.

loginwindow is the macOS component that handles login and the lock screen. Try these in order and test a snippet after each:

  1. Lock the screen with Control-Command-Q, then unlock it.
  2. Log out from the Apple menu and log back in.
  3. Restart the Mac.

The name shown isn't always the real culprit, because a child process can hide the true holder. If the message returns right after login, run the commands from Fix 2 and see which process ID is reported.

Fix 4: Re-grant Accessibility

Symptom: no Secure Input is reported, but expansion stopped.

  1. Quit TextExpander or Alfred.
  2. Open System Settings > Privacy & Security > Accessibility.
  3. Find the app in the list. Switch it off, then on. If that does nothing, select it, click the minus (-) button to remove it, then add it back with the plus (+) button.
  4. Relaunch the app and test a snippet.

Alfred's permissions guide describes the same remove-and-re-add routine for Alfred.

If that still fails, also check Input Monitoring. Alfred's documentation mentions it as another permission that can matter for snippet expansion. Open System Settings, click Privacy & Security, then Input Monitoring, and turn the app on. Apple documents this in its Input Monitoring help page. We haven't confirmed that TextExpander needs this permission, so treat it as a second step, not a first one.

Fix 5: Alfred snippets don't expand at all

Symptom: typing a keyword does nothing and there's no message.

Work through Alfred's snippets troubleshooting guide:

  1. Update Alfred to the latest version.
  2. Turn on auto-expansion. In Alfred's preferences, open the Snippets section and enable automatic expansion by keyword.
  3. Check the snippet and its collection. Both must be enabled.
  4. Check the keyword for stray spaces or typos.
  5. Look for a Secure Input warning in the Snippets preferences. If you see one, use Fixes 1 to 3.
  6. Check your license. As of November 2026, Alfred's clipboard history, Snippets and workflows need the paid Powerpack, while the core app is free.

Fix 6: Snippets expand partly or leave the keyword behind

Symptom: Alfred types part of the snippet, or the abbreviation stays on screen. People on community forums report this being fixed by slowing the simulated key-event speed in Alfred's snippet settings.

  1. Open Alfred's Snippets preferences and look for the auto-expansion tuning options.
  2. Slow the key-event speed, then test.
  3. If another clipboard, snippet or keyboard tool is running, quit it and compare. Two tools expanding the same keyword at once can garble the result.

Checklist before you try again

  • No password field has focus.
  • The app named in the message (or found with ioreg) is quit, or has secure input off.
  • You've logged out and back in at least once since the problem started.
  • The expander is listed and switched on under Privacy & Security > Accessibility.
  • The snippet, its group or collection, and auto-expansion are all enabled.

If nothing works

Restart the Mac. That ends every running process, so it clears Secure Input held by a stuck app. If expansion still fails, contact the developer: TextExpander's support team, or Alfred through its help site. Include:

  • Your macOS version and the app's version.
  • The exact message, for example "Terminal has disabled TextExpander expansion".
  • The output of ioreg -l -w 0 | grep SecureInput.
  • Whether the app is on in Accessibility, and what you already tried.
Hi, snippet expansion stopped working on my Mac.

macOS version: (your version)
App and version: (TextExpander or Alfred, version)
Message shown: "Terminal has disabled TextExpander expansion"
Output of: ioreg -l -w 0 | grep SecureInput
(paste the output, or "no output")

Already tried: quitting the app named in the message, logging out and
back in, removing and re-adding the app under Privacy & Security >
Accessibility, restarting the Mac.

Expansion still fails in: (app names)

Common questions

Is Secure Input a bug?

No. It's a macOS security feature that password fields and some apps turn on deliberately. The problem is that it can stay on longer than you want, or be held by an app you didn't expect.

Why does it only break after I use Terminal?

Terminal's Secure Keyboard Entry keeps Secure Input on while that setting is enabled and Terminal is the active app. That's why the message names Terminal.

Do I need to re-add the app in Accessibility every time?

Not normally. Stale permissions mostly show up after a macOS upgrade or a restore from a backup. If it keeps happening, update the app and contact its developer.

Can I keep Secure Input on and still use snippets?

Not in the app that holds it. Anything that reads your keystrokes, including text expanders, is blocked while it is on. Use a separate app for sensitive typing.