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

Method handle_unshare_session

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

Source from the content-addressed store, hash-verified

1936 }
1937
1938 fn handle_unshare_session(&mut self) {
1939 let Some(session_id) = self.current_session_id() else {
1940 self.alert_dialog
1941 .set_message("No active session to unshare.");
1942 self.alert_dialog.open();
1943 return;
1944 };
1945 let Some(client) = self.context.get_api_client() else {
1946 return;
1947 };
1948 match client.unshare_session(&session_id) {
1949 Ok(_) => {
1950 self.alert_dialog
1951 .set_message("Session sharing link revoked.");
1952 self.alert_dialog.open();
1953 }
1954 Err(err) => {
1955 self.alert_dialog
1956 .set_message(&format!("Failed to unshare session:\n{}", err));
1957 self.alert_dialog.open();
1958 }
1959 }
1960 }
1961
1962 fn handle_compact_session(&mut self) {
1963 let Some(session_id) = self.current_session_id() else {

Callers 1

Calls 5

current_session_idMethod · 0.80
set_messageMethod · 0.80
get_api_clientMethod · 0.80
openMethod · 0.45
unshare_sessionMethod · 0.45

Tested by

no test coverage detected