From 299dfd35f36eb58efda9d066de0e77e1e494a68c Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Thu, 24 Sep 2026 15:37:30 +0530 Subject: [PATCH] docs(agent): stop naming handle_api_interrupt as a tail closer The previous commit left the API-interrupt close to the finalizer, so this comment named a closer that no longer exists (pre-arm gate nit). --- agent/session_persistence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/session_persistence.py b/agent/session_persistence.py index 857209cb5b..15b653806a 100644 --- a/agent/session_persistence.py +++ b/agent/session_persistence.py @@ -354,8 +354,8 @@ class SessionPersistenceMixin: from agent.agent_runtime_helpers import note_turn_persisted with _persist_lock(self): # Only the scaffolding goes here. Closing a tool tail this uncovers is the exit - # owner's job (``_close_transcript_tail``, ``abort_turn_on_interrupt``, - # ``handle_api_interrupt``): only it knows the reason to record. + # owner's job (``_close_transcript_tail``, ``abort_turn_on_interrupt``): only it knows + # the reason to record. self._drop_trailing_empty_response_scaffolding(messages) self._session_messages = messages self._flush_messages_to_session_db(messages, conversation_history)