MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / cancel_agent

Function cancel_agent

src-tauri/src/commands/agent.rs:84–90  ·  view source on GitHub ↗
(state: State<'_, AppState>, id: String)

Source from the content-addressed store, hash-verified

82
83#[tauri::command]
84pub async fn cancel_agent(state: State<'_, AppState>, id: String) -> AppResult<()> {
85 // Cancel via the real cancellation token
86 state.cancellations.cancel(&format!("agent:{id}"));
87 // Also update DB status
88 let _ = agent_service::update_agent_run_status(state.pool(), &id, "cancelled").await;
89 Ok(())
90}
91
92#[tauri::command]
93pub async fn get_agent_config(

Callers

nothing calls this directly

Calls 3

update_agent_run_statusFunction · 0.85
cancelMethod · 0.80
poolMethod · 0.80

Tested by

no test coverage detected