[haik]: stop importing TERMINAL_STATUSES from seq_log.py and define it as a local constant in ws_manager.py — seq_log renamed it to P_TERMINAL_STATUSES (private), so ws_manager now owns its own copy to avoid a cross-module coupling on session lifecycle states

This commit is contained in:
haikdc
2026-06-14 00:05:55 -07:00
parent 0a7ae03405
commit 5c99dbbd80
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -15,8 +15,6 @@ logger = logging.getLogger(__name__)
# 500 events covers a 30s drop even at ~20Hz thinking deltas (~50KB/session).
P_BUFFER_LIMIT = 500
P_TERMINAL_STATUSES = {"completed", "stopped", "error"}
class P_SessionSeqLog:
"""Per-session lock + monotonic seq + recent-event ring buffer."""
+3 -1
View File
@@ -3,7 +3,9 @@ import json
import logging
from fastapi import WebSocket
from backend.apps.agents.core.seq_log import TERMINAL_STATUSES, SEQ_LOG
from backend.apps.agents.core.seq_log import SEQ_LOG
TERMINAL_STATUSES = {"completed", "stopped", "error"}
logger = logging.getLogger(__name__)