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

Method finish_run

crates/opencode-session/src/prompt.rs:748–755  ·  view source on GitHub ↗
(&self, session_id: &str)

Source from the content-addressed store, hash-verified

746 }
747
748 async fn finish_run(&self, session_id: &str) {
749 let mut state = self.state.lock().await;
750 state.remove(session_id);
751 drop(state);
752
753 let mut session_state = self.session_state.write().await;
754 session_state.set_idle(session_id);
755 }
756
757 pub async fn cancel(&self, session_id: &str) {
758 let mut state = self.state.lock().await;

Callers 2

resume_sessionMethod · 0.80

Calls 2

removeMethod · 0.45
set_idleMethod · 0.45

Tested by

no test coverage detected