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

Method remove_optimistic_message

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

Source from the content-addressed store, hash-verified

3023 }
3024
3025 fn remove_optimistic_message(&mut self, session_id: &str, msg_id: &str) {
3026 let mut session_ctx = self.context.session.write();
3027 if let Some(msgs) = session_ctx.messages.get_mut(session_id) {
3028 msgs.retain(|m| m.id != msg_id);
3029 }
3030 }
3031
3032 fn sync_session_from_server(&mut self, session_id: &str) -> anyhow::Result<()> {
3033 let Some(client) = self.context.get_api_client() else {

Callers 2

submit_promptMethod · 0.80
submit_shell_commandMethod · 0.80

Calls 1

get_mutMethod · 0.45

Tested by

no test coverage detected