Repository navigation
Backlog
Feature
1 / 61 of 6 issues completed
Copy link
Description
Goal
Smart SSH works with servers that offer only file transfer (SFTP without a shell, e.g. OpenSSH ForceCommand internal-sftp, ProFTPD mod_sftp, SFTP-only hosting and storage services) and with servers that offer a shell but no SFTP subsystem (e.g. Dropbear on routers). The session detects what the server allows, shows a clear placeholder for what is missing, and the AI is only offered what works.
Scope
- Transport: refused or forced exec/shell requests fail fast instead of hanging.
- Session capabilities (shell, command execution, SFTP) detected at connect and when the terminal opens; SFTP over exec as a fallback when the subsystem is missing.
- No connection-lost / auto-reconnect loop when a shell ends right after it opens.
- AI and MCP: tools and prompt match the capabilities.
- Session view: "No shell available" panel instead of the terminal; "File transfer not available" in the file browser.
- Server profile switch "File transfer only".
- Real-server tests: OpenSSH internal-sftp (with chroot) and ProFTPD mod_sftp.
Not in scope: other transports (FTP/FTPS), restricted shells that allow only some commands (they keep a normal session; failing commands fail as today).
Shared decisions
- Capabilities model (IPC):
SessionCapabilitiesDto { shell: "available" | "unavailable" | "unknown", exec: bool, sftp: bool, sftpViaExec: bool }, part ofSessionSummaryDto, plus eventsession-capabilities-changed { sessionId, capabilities }. - Error codes:
SSH_SHELL_UNAVAILABLE(shell request refused, or the shell ended within 5 s of opening without user input),SSH_EXEC_UNAVAILABLE(exec request refused). Neither is retryable for auto-reconnect. exec = false⇒ the shell is not attempted (shell = "unavailable"), the elevated file browser is not offered, the AI gets no command tool.sftp = false⇒ the AI gets no file tools, the file browser shows its placeholder.- A server that allows neither a shell, nor exec, nor SFTP ends the connect with
SERVER_NO_USABLE_CHANNEL. - Texts are decided by the maintainer (see the sub-issues); all locales get translations.
- Profile field:
file_transfer_only: bool, defaultfalse.
Sub-issues
- SSH transport: refused or forced shell and exec requests fail fast instead of hanging #1665 Transport: refused or forced shell/exec fail fast
- Sessions: detect shell, command execution and SFTP per server; SFTP over exec as fallback; no reconnect loop when the shell ends at once #1666 Session capabilities, SFTP over exec fallback, no reconnect loop
- AI and MCP: offer only the tools the server allows and say so in the prompt #1667 AI and MCP: only allowed tools
- Session view: "No shell available" panel and "File transfer not available" in the file browser #1668 Session view placeholders
- Server profile: switch "File transfer only (no terminal)" #1669 Server profile "File transfer only"
- test(ssh-transport): ProFTPD mod_sftp in the real-server suite #1670 ProFTPD mod_sftp real-server test
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Assignees
Type
Fields
Priority
None yet
Activity