From e005a67c84e4658ebfb7fc49e6360a7025800c8c Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Tue, 10 Feb 2026 15:22:40 +0800 Subject: [PATCH] fix(api): fix automatically disconnect not working --- api/services/workflow_event_snapshot_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/workflow_event_snapshot_service.py b/api/services/workflow_event_snapshot_service.py index fd7ff33df7..d5d59da589 100644 --- a/api/services/workflow_event_snapshot_service.py +++ b/api/services/workflow_event_snapshot_service.py @@ -137,7 +137,7 @@ def build_workflow_event_stream( "No workflow events received for %s seconds, keeping stream open", idle_timeout, ) - last_msg_time = current_time + return if current_time - last_ping_time >= ping_interval: yield StreamEvent.PING.value last_ping_time = current_time