The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor: use request_hard_interrupt for review cancellation
kshitijk4poor80aef061fe06
diff --git a/agent/background_review.py b/agent/background_review.pyindex 42979f3bd05..f48a3d5200d 100644--- a/agent/background_review.py+++ b/agent/background_review.py@@ -123,7 +123,9 @@ def _interrupt_background_review(review_agent: Any) -> None:def _interrupt() -> None:try:- review_agent.interrupt("superseded by a new live turn")+ from agent.interrupt_compat import request_hard_interrupt++ request_hard_interrupt(review_agent, "superseded by a new live turn")except Exception:logger.debug("Failed to cancel in-flight background review for a new turn",