Skip to main content

handle_shell_input

Function handle_shell_input 

Source
pub(super) async fn handle_shell_input(
    __arg0: State<AppState>,
    __arg1: Json<ShellInputRequest>,
) -> impl IntoResponse
Expand description

POST /api/v1/shell/input — write text to a running shell’s stdin (Phase 3b).

Appends a newline so single answers like “y” work without the caller needing to know the line discipline. Returns { written: false } if the shell is not running or the write fails (e.g. the process closed its stdin).