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

Method get_mut

crates/opencode-session/src/session.rs:1028–1030  ·  view source on GitHub ↗

Get a mutable session by ID

(&mut self, id: &str)

Source from the content-addressed store, hash-verified

1026
1027 /// Get a mutable session by ID
1028 pub fn get_mut(&mut self, id: &str) -> Option<&mut Session> {
1029 self.sessions.get_mut(id)
1030 }
1031
1032 /// List all sessions
1033 pub fn list(&self) -> Vec<&Session> {

Callers 15

handle_callbackMethod · 0.45
set_session_titleFunction · 0.45
start_compactionFunction · 0.45
send_messageFunction · 0.45
delete_messageFunction · 0.45
add_message_partFunction · 0.45
delete_partFunction · 0.45
stream_messageFunction · 0.45
update_sessionFunction · 0.45
update_partFunction · 0.45
execute_shellFunction · 0.45
prompt_asyncFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected