Problem
In EmbeddingAnomalyGuard::check_async(), the result of tx.send(result) in the spawned task is silently discarded (let _ = tx.send(result)). If the receiver is dropped (e.g., McpManager shutdown), errors are swallowed with no log output.
Fix
Replace let _ = tx.send(result) with:
if tx.send(result).is_err() {
tracing::warn!("embedding guard: result channel closed, receiver dropped");
}
Priority
P3 — cosmetic / observability issue, does not affect security behavior.
Related: PR #2310
Problem
In
EmbeddingAnomalyGuard::check_async(), the result oftx.send(result)in the spawned task is silently discarded (let _ = tx.send(result)). If the receiver is dropped (e.g.,McpManagershutdown), errors are swallowed with no log output.Fix
Replace
let _ = tx.send(result)with:Priority
P3 — cosmetic / observability issue, does not affect security behavior.
Related: PR #2310