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

Method respond

src-tauri/src/state.rs:36–43  ·  view source on GitHub ↗
(&self, agent_run_id: &str, allowed: bool)

Source from the content-addressed store, hash-verified

34 }
35
36 pub fn respond(&self, agent_run_id: &str, allowed: bool) -> bool {
37 self.pending
38 .lock()
39 .ok()
40 .and_then(|mut pending| pending.remove(agent_run_id))
41 .map(|tx| tx.send(allowed).is_ok())
42 .unwrap_or(false)
43 }
44}
45
46/// Registry for cancellation tokens keyed by an arbitrary ID (session_id or agent_run_id).

Callers 1

Calls 2

removeMethod · 0.80
sendMethod · 0.80

Tested by

no test coverage detected