mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 23:50:45 +00:00
When opening the SFTP side panel for a host that already has an active terminal session, reuse the terminal's authenticated SSH connection instead of creating a new one. Changes: - TerminalLayer: compute activeTerminalSessionIdForSftp, matching hostname/port/username against the active session - TerminalLayerView: pass activeSessionId to SftpSidePanel - SftpSidePanel: accept activeSessionId, pass to connect() - useSftpConnections: pass sourceSessionId to bridge.openSftp() - sftpBridge/openConnection: try to find and reuse terminal session's SSH connection via findReusableSession, fall back to fresh connection - sftpBridge: wire up acquireConnectionRef/releaseConnectionRef for shared connection lifecycle Only SSH (non-mosh/et/local) connected sessions are reused. Falls back gracefully to a fresh connection on any reuse failure.