From 52557d113785f37257993ef82f05622832300495 Mon Sep 17 00:00:00 2001 From: Rod Boev Date: Tue, 23 Jun 2026 07:44:03 -0400 Subject: [PATCH] Keep isolated sidebar dedupe harnesses aligned with source-map cleanup --- tests/test_sidebar_completion_dedupe.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_sidebar_completion_dedupe.py b/tests/test_sidebar_completion_dedupe.py index 82d26c44..436bb29e 100644 --- a/tests/test_sidebar_completion_dedupe.py +++ b/tests/test_sidebar_completion_dedupe.py @@ -31,6 +31,7 @@ let _allSessions = [ ]; let _sessionStreamingById = new Map([['old', true], ['new', true]]); let _sessionListSnapshotById = new Map([['old', {{message_count: 10}}]]); +let _sessionListSourceById = new Map([['old', 'webui'], ['new', 'webui']]); function _forgetObservedStreamingSession(_sid) {{}} function renderSessionListFromCache() {{}} {fn_src} @@ -40,7 +41,11 @@ _markSessionCompletedInList({{ message_count: 3, parent_session_id: 'old', }}, 'old'); -console.log(JSON.stringify({{rows: _allSessions, oldStreaming: _sessionStreamingById.has('old')}})); +console.log(JSON.stringify({{ + rows: _allSessions, + oldStreaming: _sessionStreamingById.has('old'), + oldSourceTracked: _sessionListSourceById.has('old'), +}})); """ result = subprocess.run(["node", "-e", script], check=True, text=True, capture_output=True) payload = json.loads(result.stdout) @@ -49,3 +54,4 @@ console.log(JSON.stringify({{rows: _allSessions, oldStreaming: _sessionStreaming assert payload["rows"][0]["title"] == "After done" assert payload["rows"][0]["message_count"] == 3 assert payload["oldStreaming"] is False + assert payload["oldSourceTracked"] is False