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

Method ensure_session_view

crates/opencode-tui/src/app/app.rs:2899–2909  ·  view source on GitHub ↗
(&mut self, session_id: &str)

Source from the content-addressed store, hash-verified

2897 }
2898
2899 fn ensure_session_view(&mut self, session_id: &str) {
2900 if self.active_session_id.as_deref() == Some(session_id) {
2901 return;
2902 }
2903
2904 self.active_session_id = Some(session_id.to_string());
2905 self.session_view = Some(SessionView::new(
2906 self.context.clone(),
2907 session_id.to_string(),
2908 ));
2909 }
2910
2911 fn cache_session_from_api(&self, session: &SessionInfo) {
2912 let mut session_ctx = self.context.session.write();

Callers 5

newMethod · 0.80
handle_dialog_keyMethod · 0.80
submit_promptMethod · 0.80
submit_shell_commandMethod · 0.80
drawMethod · 0.80

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected