MCPcopy Create free account
hub / github.com/GCWing/BitFun / cancel_current_turn

Method cancel_current_turn

src/apps/cli/src/agent/core_adapter.rs:271–283  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

269 }
270
271 async fn cancel_current_turn(&self) -> Result<()> {
272 let session_id_guard = self.session_id.lock().await;
273 let turn_id_guard = self.current_turn_id.lock().await;
274
275 if let (Some(session_id), Some(turn_id)) = (&*session_id_guard, &*turn_id_guard) {
276 tracing::info!("Cancelling turn: session={}, turn={}", session_id, turn_id);
277 self.coordinator
278 .cancel_dialog_turn(session_id, turn_id)
279 .await?;
280 }
281
282 Ok(())
283 }
284
285 async fn create_new_session(&self, agent_type: &str) -> Result<String> {
286 let mut session_id_guard = self.session_id.lock().await;

Callers 3

handle_key_eventMethod · 0.80
handle_palette_actionMethod · 0.80
handle_commandMethod · 0.80

Calls 1

cancel_dialog_turnMethod · 0.45

Tested by

no test coverage detected