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

Method get_session

src/crates/services/terminal/src/api.rs:335–343  ·  view source on GitHub ↗

Get a session by ID

(&self, session_id: &str)

Source from the content-addressed store, hash-verified

333
334 /// Get a session by ID
335 pub async fn get_session(&self, session_id: &str) -> TerminalResult<SessionResponse> {
336 let session = self
337 .session_manager
338 .get_session(session_id)
339 .await
340 .ok_or_else(|| TerminalError::SessionNotFound(session_id.to_string()))?;
341
342 Ok(SessionResponse::from(session))
343 }
344
345 /// List all sessions
346 pub async fn list_sessions(&self) -> TerminalResult<Vec<SessionResponse>> {

Callers 15

update_session_titleFunction · 0.45
compact_sessionFunction · 0.45
activate_session_goalFunction · 0.45
run_init_agents_mdFunction · 0.45
miniapp_agent_runFunction · 0.45
get_session_operationsFunction · 0.45
is_remote_sessionFunction · 0.45
terminal_getFunction · 0.45
terminal_executeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected