ADR-0008: Interactive terminal
Status: Accepted (2026-11-28)
Decision
The optional
ssh-terminalmodule is the only generic shell in Ossiframe. It is a narrow exception to "structured commands only" and "no generic shell" over IPC.The shell is a PTY channel opened inside
ossiframe-sshon the server's existing connection. It reuses its authentication and pinned host key, and opens no new SSH connection.It is driven only by the user's keystrokes and pastes in the terminal view. No module, operation, plan, the operation engine or the AI copilot can open it, write to it or read it.
The transport is behind a cargo feature (
terminal) inossiframe-sshandossiframe-desktop. Only apps that opt in enable it: Deploy, and generated apps with--enable-terminal. Doctor never enables it and registers noterminal_*command; drift tests check both.Sessions do not take the per-server operation lock. They are bounded (count, write size, output buffer) and close on disconnect, server removal, host key change or channel close.
Terminal input and output are never logged, stored or forwarded. Clipboard access happens only on the user's own copy and paste actions; the remote side cannot read or write the clipboard.
Revision (2026-11-30): the terminal view adds
<style>elements at run time, which the strict policy blocked in release builds (no monospace font, no colours). Apps that enable the terminal addstyle-src-elem 'self' 'unsafe-inline'to their release policy. Scripts,style-srcand everything else stay as before, and Doctor and apps without the terminal keep the strict policy.
Consequences
- Commands typed in the terminal run as the SSH user without review by Ossiframe, including
sudowhere the user has it. The terminal says so. - An operation started by Ossiframe and a command typed in the terminal can run at the same time. The terminal shows a notice when an operation is running or unresolved on that server.
- All other remote execution stays structured and goes through the Core executor.
