diff --git a/tests/test_cross_session_message_load_isolation.py b/tests/test_cross_session_message_load_isolation.py index 00a3329c3..9f8999c4e 100644 --- a/tests/test_cross_session_message_load_isolation.py +++ b/tests/test_cross_session_message_load_isolation.py @@ -225,6 +225,13 @@ function createEnvironment() { globalThis._clearSameSessionForceReloadHint = () => { clearHintCalls += 1; }; globalThis._clearStuckSessionOnBoot = () => {}; globalThis._setSessionViewedCount = () => {}; + // #4946: loadSession() now routes its viewed-count/unread clear through + // _acknowledgeSessionVisit(). This harness exercises cross-session load + // ordering + stale-reject, not unread-dot state, so stub it (and its + // same-session-guard predicate) to no-ops — mirroring the pre-existing + // _setSessionViewedCount / _clearSessionCompletionUnread stubs it replaced. + globalThis._acknowledgeSessionVisit = () => {}; + globalThis._sessionVisitHasUnreadState = () => false; globalThis.scheduleTodosRefresh = () => {}; globalThis.startSessionStream = () => {}; globalThis.syncTopbar = () => {}; diff --git a/tests/test_session_unread_dot_on_visit.py b/tests/test_session_unread_dot_on_visit.py index 09af3cbd8..e6ec724ca 100644 --- a/tests/test_session_unread_dot_on_visit.py +++ b/tests/test_session_unread_dot_on_visit.py @@ -28,7 +28,6 @@ Two invariants flagged in review are protected here and MUST NOT regress: unread authoritatively rather than doing ad-hoc DOM surgery (concern b). """ import json -import re import subprocess from pathlib import Path