pub(crate) async fn conn_sessions(
state: &AppState,
data: &Value,
) -> Result<Vec<HostSession>, String>Expand description
A host’s durable sessions, for Connectors → Remotes’ “Sessions…”
(spec §7.6). Listing runs one fixed, read-only command over ssh, as the
UI’s other connection calls do. Ending one is the user’s decision,
made in the host’s own window (ask_user): anything holding srv’s
auth key can send this RPC, an agent included, but none can answer
that window.