You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(installer): use dev tty redirect so pai handoff works in piped install
Prior gate was [ -t 0 ] && [ -t 1 ], which fails when stdin is a pipe even if
stdout is the user terminal. Result: post-install fell through to the
osascript fallback, which on remote macOS opens a Terminal window the user
cannot see — leaving them thinking nothing happened.
Fix: gate on [ -r /dev/tty ] and exec zsh -i -c with stdin redirected from
/dev/tty. The redirect rebinds stdin to the real terminal, so pai inherits
a usable TTY and the REPL can read keystrokes.
Removed the osascript branch — it was the silent-failure hazard. Headless
case now just prints the explicit command.
0 commit comments