Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+23
View File
@@ -0,0 +1,23 @@
import re
from pathlib import Path
def test_stream_render_helpers_are_visible_to_catch_block():
source = Path("static/js/chat.js").read_text(encoding="utf-8")
try_start = source.index(" try {\n // Re-enable auto-scroll")
catch_start = source.index(
" } catch (err) {\n // If a Stop or timeout",
try_start,
)
outer_scope = source[:try_start]
try_body = source[try_start:catch_start]
assert "let _renderStream = () => {};" in outer_scope
assert "let _cancelThinkingTimer = () => {};" in outer_scope
assert "let _removeThinkingSpinner = () => {};" in outer_scope
assert re.search(r"(?m)^\s*_renderStream\s*=", try_body)
assert "_cancelThinkingTimer = () => {" in try_body
assert "_removeThinkingSpinner = () => {" in try_body
assert "function _renderStream()" not in try_body