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

Method clear

crates/opencode-session/src/todo.rs:100–107  ·  view source on GitHub ↗
(&self, session_id: &str)

Source from the content-addressed store, hash-verified

98 }
99
100 pub async fn clear(&self, session_id: &str) {
101 if let Some(ref db) = self.db {
102 let _ = db.delete_for_session(session_id).await;
103 }
104
105 let mut state = self.state.write().await;
106 state.remove(session_id);
107 }
108
109 pub async fn set_status(&self, session_id: &str, index: usize, status: &str) -> bool {
110 let mut state = self.state.write().await;

Callers 1

Calls 2

delete_for_sessionMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected