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

Method current_session_id

crates/opencode-tui/src/app/app.rs:1841–1846  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1839 }
1840
1841 fn current_session_id(&self) -> Option<String> {
1842 match self.context.current_route() {
1843 Route::Session { session_id } => Some(session_id),
1844 _ => self.active_session_id.clone(),
1845 }
1846 }
1847
1848 fn open_session_rename_dialog(&mut self) {
1849 let Some(session_id) = self.current_session_id() else {

Callers 10

handle_share_sessionMethod · 0.80
handle_undoMethod · 0.80
handle_redoMethod · 0.80
handle_copy_sessionMethod · 0.80
handle_open_timelineMethod · 0.80
handle_fork_sessionMethod · 0.80

Calls 2

current_routeMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected