fix(wrapper): don't let fish's alt-screen probe permanently hide the overlay (#141)

fixes #139  
fish's own startup terminal probe was misread as a full screen app
taking over, permanently suppressing suggestions
This commit is contained in:
VERSE
2026-08-12 20:03:55 +07:00
committed by GitHub
parent c3bd8f149f
commit 9c00f6eb30
+6 -1
View File
@@ -317,7 +317,12 @@ func runWrapper() {
})
isExecuting := func() bool {
if isAltScreenActive.Load() {
return true
pgrp, pgrpErr := unix.IoctlGetInt(int(ptmx.Fd()), unix.TIOCGPGRP)
if pgrpErr == nil && pgrp == shellPGID {
isAltScreenActive.Store(false)
} else {
return true
}
}
if isCommandActive.Load() {
// for bash: no preexec/precmd hooks, so fall back to TIOCGPGRP to detect when shell returns