Skip to content

The agent that grows with you

docs(agent): stop naming handle_api_interrupt as a tail closer

kshitijk4poor299dfd35f36e
diff --git a/agent/session_persistence.py b/agent/session_persistence.py
index 857209cb5b9..15b653806af 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)