MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_current_session

Method set_current_session

crates/opencode-tui/src/api.rs:721–724  ·  view source on GitHub ↗
(&self, session: SessionInfo)

Source from the content-addressed store, hash-verified

719 }
720
721 pub fn set_current_session(&self, session: SessionInfo) {
722 let mut current = futures::executor::block_on(self.current_session.write());
723 *current = Some(session);
724 }
725
726 pub fn get_current_session(&self) -> Option<SessionInfo> {
727 let current = futures::executor::block_on(self.current_session.read());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected