MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_session_status

Method get_session_status

crates/opencode-tui/src/api.rs:330–339  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

328 }
329
330 pub fn get_session_status(&self) -> anyhow::Result<HashMap<String, SessionStatusInfo>> {
331 let url = format!("{}/session/status", self.base_url);
332 let response = self.client.get(&url).send()?;
333 if !response.status().is_success() {
334 let status = response.status();
335 let text = response.text().unwrap_or_default();
336 anyhow::bail!("Failed to get session status: {} - {}", status, text);
337 }
338 Ok(response.json::<HashMap<String, SessionStatusInfo>>()?)
339 }
340
341 pub fn update_session_title(
342 &self,

Callers 1

Calls 4

sendMethod · 0.45
getMethod · 0.45
statusMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected