mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 17:32:18 +00:00
* fix(ai): keep AI command execution connected through bastion hosts (#3146) Approving an AI assistant command after jumping to a target through a menu-driven bastion (BHostSSH, QiZhi TERM-SSHD) disconnected the session. Two separate failures were involved: 1. The AI probe/wrapper was written to the interactive PTY as one multi-character channel write. Strict bastions treat one SSH channel write as a single keystroke and silently drop multi-character writes, so the wrapper never ran; the inactivity timeout then sent Ctrl+C, which the bastion read as "exit". Type the probe and wrapper one Unicode code point per write to match human keystrokes. 2. ensureSessionShellKindForExec opened a second SSH channel (exec) to probe the login shell. Bastions bind the transport to the first interactive session and tear it down when a second channel opens. Skip the exec-channel probe for bastion banners and let the PTY live shell probe determine the wrapper instead. * fix(ai): preserve paced delivery and scope bastion keystrokes * fix(ai): pace bastion input for Windows shells too --------- Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com>