fix(gateway): timed-out turn abandonment is an explicit hard stop

_abandon_timed_out_gateway_turn landed on main (eb4772ec2) after this
PR's base and still used the soft interrupt(). Every other inactivity-
timeout surface in this change (cron, gateway executor poll, delegate
children) treats a timeout as an explicit stop that may cancel a
protected compression summary — widen the same fix to this sibling.
This commit is contained in:
kshitijk4poor
2026-08-02 21:50:20 +05:30
committed by kshitij
parent d15b638a88
commit 4ea379ca2e
+2 -2
View File
@@ -2780,9 +2780,9 @@ def _abandon_timed_out_gateway_turn(
timeout_fired.set()
agent = agent_holder[0] if agent_holder else None
if agent is not None and hasattr(agent, "interrupt"):
if agent is not None:
try:
agent.interrupt(_INTERRUPT_REASON_TIMEOUT)
request_hard_interrupt(agent, _INTERRUPT_REASON_TIMEOUT)
except Exception:
logger.debug("Timed-out agent interrupt failed", exc_info=True)