MCPcopy Create free account
hub / github.com/GCWing/BitFun / is_remote_session

Function is_remote_session

src/apps/desktop/src/api/terminal_api.rs:316–323  ·  view source on GitHub ↗

Try to find session in remote terminal manager. Returns true if found.

(session_id: &str)

Source from the content-addressed store, hash-verified

314
315/// Try to find session in remote terminal manager. Returns true if found.
316async fn is_remote_session(session_id: &str) -> bool {
317 if let Some(manager) = get_remote_workspace_manager() {
318 if let Some(terminal_manager) = manager.get_terminal_manager().await {
319 return terminal_manager.get_session(session_id).await.is_some();
320 }
321 }
322 false
323}
324
325#[tauri::command]
326pub async fn terminal_create(

Callers 9

terminal_closeFunction · 0.85
terminal_writeFunction · 0.85
terminal_resizeFunction · 0.85
terminal_signalFunction · 0.85
terminal_ackFunction · 0.85
terminal_executeFunction · 0.85
terminal_send_commandFunction · 0.85
terminal_get_historyFunction · 0.85

Calls 3

get_terminal_managerMethod · 0.80
get_sessionMethod · 0.45

Tested by

no test coverage detected