fix: preempt root loop on context injection

This commit is contained in:
leokun committed 2026-08-27 17:01:03 +08:00
1 parent aa68205735
commit ee915ee760
12 files changed
+1027 -79

No files matched your search

+4
View File
@@ -285,6 +285,10 @@ impl CursorActor {
{
continue;
}
if tool_runtime.is_interrupted(throw.id).await {
tool_runtime.discard_exec(throw.id).await;
continue;
}
match tool_runtime.take_exec(throw.id).await {
Some(pending) => results_tx.send_error(
crate::Error::Protocol(format!(