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

Method cache_session_from_api

crates/opencode-tui/src/app/app.rs:2911–2914  ·  view source on GitHub ↗
(&self, session: &SessionInfo)

Source from the content-addressed store, hash-verified

2909 }
2910
2911 fn cache_session_from_api(&self, session: &SessionInfo) {
2912 let mut session_ctx = self.context.session.write();
2913 session_ctx.upsert_session(map_api_session(session));
2914 }
2915
2916 fn create_optimistic_session(&mut self) -> String {
2917 let now = Utc::now();

Callers 1

handle_dialog_keyMethod · 0.80

Calls 2

map_api_sessionFunction · 0.85
upsert_sessionMethod · 0.80

Tested by

no test coverage detected