Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ get_current_session
Method
get_current_session
crates/opencode-tui/src/api.rs:726–729 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
724
}
725
726
pub fn get_current_session(&self) -> Option<SessionInfo> {
727
let current = futures::executor::block_on(self.current_session.read());
728
current.clone()
729
}
730
}
Callers
nothing calls this directly
Calls
2
read
Method · 0.80
clone
Method · 0.45
Tested by
no test coverage detected