There was an error while loading. Please reload this page.
1 parent 28a0444 commit 1aa9814Copy full SHA for 1aa9814
1 file changed
src/agent/mod.rs
@@ -1992,7 +1992,11 @@ impl ActorLogic<BusMessage> for AgentLogic {
1992
// Keep ownership registered until the reasoning task emits its
1993
// terminal lifecycle event and finalizes. New inbound arriving
1994
// during cancellation must queue behind that acknowledgement.
1995
- if let Some(token) = self.cancellation_tokens.get(&chat_id) {
+ if let Some(token) = self
1996
+ .cancellation_tokens
1997
+ .get(&chat_id)
1998
+ .map(|entry| entry.value().clone())
1999
+ {
2000
token.cancel();
2001
let _ = self.logger_tx.send(BusMessage::Log(
2002
LogEvent::info(
0 commit comments