From 4ca61869cba0514e29853b46071d2701c6b2ca12 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Wed, 8 Jul 2026 00:57:57 +0530 Subject: [PATCH] docs: sharpen bypass comment per review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The live path bypasses the whole _build_gateway_agent_history cleanup pipeline, not just the replay-cleanup pass — say so precisely. --- gateway/run.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gateway/run.py b/gateway/run.py index fdb2a0ff31d..11eff2fd9df 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -18240,11 +18240,12 @@ class GatewayRunner(GatewayAuthorizationMixin, GatewayKanbanWatchersMixin, Gatew "conversation context (possible FTS write corruption)", session_key, len(agent_history), len(_selected), ) - # The live in-memory history bypassed the replay-cleanup - # pass inside _build_gateway_agent_history — re-apply the - # stale-confirmation expiry (#59607) so a dangerous - # confirmation can't slip through this path either. - # Idempotent; messages without timestamps are untouched. + # The live in-memory history bypassed the + # _build_gateway_agent_history cleanup pipeline above — + # re-apply the stale-confirmation expiry (#59607) so a + # dangerous confirmation can't slip through this path + # either. Idempotent; messages without timestamps are + # untouched. agent_history = _strip_stale_dangerous_confirmations( _selected, now=time.time() )